diff --git a/inc/sccmdb.class.php b/inc/sccmdb.class.php
index ef47a26..32a7cf2 100644
--- a/inc/sccmdb.class.php
+++ b/inc/sccmdb.class.php
@@ -41,7 +41,7 @@ function connect() {
$user = $PluginSccmConfig->getField('sccmdb_user');
$password = $PluginSccmConfig->getField('sccmdb_password');
- $password = Toolbox::decrypt($password, GLPIKEY);// TODO Use sodium encryption
+ $password = Toolbox::sodiumDecrypt($password);
$connectionOptions = [
"Database" => $dbname,
diff --git a/sccm.xml b/sccm.xml
index 222e21f..ca423fc 100644
--- a/sccm.xml
+++ b/sccm.xml
@@ -5,11 +5,11 @@
https://raw.githubusercontent.com/TECLIB/sccm/master/screenshots/iconmonstr-database-10-icon-128.png
- Synchronisation des données avec l'outil Microsoft SCCM 2012 R2
- Data synchronization with Microsoft SCCM 2012 R2 tool
+ Synchronisation des données avec l'outil Microsoft SCCM
+ Data synchronization with Microsoft SCCM
- Synchronisation des données avec l'outil Microsoft SCCM 2012 R2
+ Synchronisation des données avec l'outil Microsoft SCCM
Plugin permettant de synchroniser les ordinateurs présents dans SCCM avec GLPI.
@@ -26,8 +26,8 @@ Pré-requis :
* Plugin FusionInventory for GLPI : http://www.fusioninventory.org/documentation/fi4g/installation/
* PHP curl_init : http://php.net/manual/fr/function.curl-init.php
* PHP mssql_connect : http://php.net/manual/fr/function.mssql-connect.php
-* Microsoft System Center 2012 R2 Configuration Manager : http://www.microsoft.com/fr-fr/server-cloud/products/system-center-2012-r2/default.aspx
- Data synchronization with Microsoft SCCM 2012 R2 tool
+* Microsoft System Center Configuration Manager
+ Data synchronization with Microsoft SCCM
Plugin to synchronize computers from SCCM to GLPI.
@@ -44,7 +44,7 @@ Prerequisite :
* FusionInventory for GLPI : http://www.fusioninventory.org/documentation/fi4g/installation/
* PHP curl_init : http://php.net/manual/en/function.curl-init.php
* PHP mssql_connect : http://php.net/manual/en/function.mssql-connect.php
-* Microsoft System Center 2012 R2 Configuration Manager : http://www.microsoft.com/en-gb/server-cloud/products/system-center-2012-r2/default.aspx
+* Microsoft System Center Configuration Manager
https://pluginsglpi.github.io/sccm/
@@ -55,6 +55,11 @@ Prerequisite :
TECLIB'
+
+ 2.2.1
+ ~9.5.0
+ https://github.com/pluginsGLPI/sccm/releases/download/2.2.1/glpi-sccm-2.2.1.tar.bz2
+
2.2.0
~9.5.0
diff --git a/setup.php b/setup.php
index d887f0e..b756212 100644
--- a/setup.php
+++ b/setup.php
@@ -23,7 +23,7 @@
* ------------------------------------------------------------------------
*/
-define("PLUGIN_SCCM_VERSION", "2.2.0");
+define("PLUGIN_SCCM_VERSION", "2.2.1");
// Minimal GLPI version, inclusive
define("PLUGIN_SCCM_MIN_GLPI", "9.5");
@@ -45,6 +45,9 @@ function plugin_init_sccm() {
$PLUGIN_HOOKS["menu_toadd"]['sccm'] = ['config' => 'PluginSccmMenu'];
}
}
+
+ // Encryption
+ $PLUGIN_HOOKS['secured_fields']['sccm'] = ['glpi_plugin_sccm_configs.sccmdb_password'];
}
/**