diff --git a/www/class/centreonLDAP.class.php b/www/class/centreonLDAP.class.php
index 8b9924dd29aa6baef8d3b1d11ef715fb51eb0395..d094c32a9ee84d438688284d0f80d6bad72cd975 100644
--- a/www/class/centreonLDAP.class.php
+++ b/www/class/centreonLDAP.class.php
@@ -922,6 +922,10 @@ class CentreonLdapAdmin
             $this->db->query($query);
         }
         $this->updateLdapServers($arId);
+
+        /* Remove contact passwords if store password option is disabled */
+        $this->manageContactPasswords($arId);
+
         return $arId;
     }
 
@@ -1229,4 +1233,29 @@ class CentreonLdapAdmin
         }
         return $arr;
     }
+
+    /**
+     * Remove contact passwords if password storage is disabled
+     *
+     * @param  int $arId | Auth resource id
+     * @return void
+     */
+    private function manageContactPasswords($arId)
+    {
+        $result = $this->db->query(
+            'SELECT ari_value ' .
+            'FROM auth_ressource_info ' .
+            'WHERE ar_id = ' . $this->db->escape($arId) . ' ' .
+            'AND ari_name = "ldap_store_password" '
+        );
+        if ($row = $result->fetchRow()) {
+            if ($row['ari_value'] == '0') {
+                $this->db->query(
+                    "UPDATE contact " .
+                    "SET contact_passwd = NULL " .
+                    "WHERE ar_id = " . $this->db->escape($arId)
+                );
+            }
+        }
+    }
 }