Code

Updated acl/actions
[gosa.git] / include / class_password-methods.inc
index 7c00dccdeed159db862e2853bdf8c00a0e9bfa8d..97571da7900f3e6d51f3190319cc0ba9508d6e64 100644 (file)
@@ -96,16 +96,13 @@ function change_password ($dn, $password, $mode=0, $hash= "")
 
   // Get all available encryption Methods 
 
-  // STATIC : :(   
-  // $available = passwordMethod::get_available_methods();
-
   // NON STATIC CALL :)
   $tmp = new passwordMethod($_SESSION['config']);
   $available = $tmp->get_available_methods();
 
   // read current password entry for $dn, to detect the encryption Method
   $ldap       = $config->get_ldap_link();
-  $ldap->cat ($dn);
+  $ldap->cat ($dn, array("shadowLastChange", "userPassword"));
   $attrs      = $ldap->fetch ();
 
   // Set encryption type to clear if required