Code

Updated comment
[gosa.git] / gosa-core / include / functions.inc
index 4f7236ae5ca02b5e6d145a2752aeef9a5789e1d4..736db99cf295c868f0089ad5ae7d1cded0446568 100644 (file)
@@ -2458,9 +2458,9 @@ function change_password ($dn, $password, $mode=0, $hash= "")
 
     /* Extract used hash */
     if ($hash == ""){
-      $test = passwordMethod::get_method($attrs['userPassword'][0]);
+      $test = passwordMethod::get_method($attrs['userPassword'][0],$dn);
     } else {
-      $test = new $available[$hash]($config);
+      $test = new $available[$hash]($config,$dn);
       $test->set_hash($hash);
     }