Skip to content

Commit 26d7087

Browse files
committed
Merge branch 'release/2.2.1'
2 parents 5a0d5b9 + 2d9d7f6 commit 26d7087

File tree

3 files changed

+16
-8
lines changed

3 files changed

+16
-8
lines changed

inc/sccmdb.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function connect() {
4141
$user = $PluginSccmConfig->getField('sccmdb_user');
4242

4343
$password = $PluginSccmConfig->getField('sccmdb_password');
44-
$password = Toolbox::decrypt($password, GLPIKEY);// TODO Use sodium encryption
44+
$password = Toolbox::sodiumDecrypt($password);
4545

4646
$connectionOptions = [
4747
"Database" => $dbname,

sccm.xml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
<logo>https://raw.githubusercontent.com/TECLIB/sccm/master/screenshots/iconmonstr-database-10-icon-128.png</logo>
66
<description>
77
<short>
8-
<fr>Synchronisation des données avec l'outil Microsoft SCCM 2012 R2</fr>
9-
<en>Data synchronization with Microsoft SCCM 2012 R2 tool</en>
8+
<fr>Synchronisation des données avec l'outil Microsoft SCCM</fr>
9+
<en>Data synchronization with Microsoft SCCM</en>
1010
</short>
1111
<long>
12-
<fr>Synchronisation des données avec l'outil Microsoft SCCM 2012 R2
12+
<fr>Synchronisation des données avec l'outil Microsoft SCCM
1313

1414
Plugin permettant de synchroniser les ordinateurs présents dans SCCM avec GLPI.
1515

@@ -26,8 +26,8 @@ Pré-requis :
2626
* Plugin FusionInventory for GLPI : http://www.fusioninventory.org/documentation/fi4g/installation/
2727
* PHP curl_init : http://php.net/manual/fr/function.curl-init.php
2828
* PHP mssql_connect : http://php.net/manual/fr/function.mssql-connect.php
29-
* Microsoft System Center 2012 R2 Configuration Manager : http://www.microsoft.com/fr-fr/server-cloud/products/system-center-2012-r2/default.aspx</fr>
30-
<en>Data synchronization with Microsoft SCCM 2012 R2 tool
29+
* Microsoft System Center Configuration Manager</fr>
30+
<en>Data synchronization with Microsoft SCCM
3131

3232
Plugin to synchronize computers from SCCM to GLPI.
3333

@@ -44,7 +44,7 @@ Prerequisite :
4444
* FusionInventory for GLPI : http://www.fusioninventory.org/documentation/fi4g/installation/
4545
* PHP curl_init : http://php.net/manual/en/function.curl-init.php
4646
* PHP mssql_connect : http://php.net/manual/en/function.mssql-connect.php
47-
* Microsoft System Center 2012 R2 Configuration Manager : http://www.microsoft.com/en-gb/server-cloud/products/system-center-2012-r2/default.aspx</en>
47+
* Microsoft System Center Configuration Manager</en>
4848
</long>
4949
</description>
5050
<homepage>https://pluginsglpi.github.io/sccm/</homepage>
@@ -55,6 +55,11 @@ Prerequisite :
5555
<author>TECLIB'</author>
5656
</authors>
5757
<versions>
58+
<version>
59+
<num>2.2.1</num>
60+
<compatibility>~9.5.0</compatibility>
61+
<download_url>https://github.com/pluginsGLPI/sccm/releases/download/2.2.1/glpi-sccm-2.2.1.tar.bz2</download_url>
62+
</version>
5863
<version>
5964
<num>2.2.0</num>
6065
<compatibility>~9.5.0</compatibility>

setup.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* ------------------------------------------------------------------------
2424
*/
2525

26-
define("PLUGIN_SCCM_VERSION", "2.2.0");
26+
define("PLUGIN_SCCM_VERSION", "2.2.1");
2727

2828
// Minimal GLPI version, inclusive
2929
define("PLUGIN_SCCM_MIN_GLPI", "9.5");
@@ -45,6 +45,9 @@ function plugin_init_sccm() {
4545
$PLUGIN_HOOKS["menu_toadd"]['sccm'] = ['config' => 'PluginSccmMenu'];
4646
}
4747
}
48+
49+
// Encryption
50+
$PLUGIN_HOOKS['secured_fields']['sccm'] = ['glpi_plugin_sccm_configs.sccmdb_password'];
4851
}
4952

5053
/**

0 commit comments

Comments
 (0)