X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=include%2Fclass_password-methods.inc;h=97571da7900f3e6d51f3190319cc0ba9508d6e64;hb=87a10c71fc4a79af78f6648f0dc25df415baf892;hp=cfa7b8aed8fdd830d42ab380c14e8bbac1d9dd91;hpb=91002093104478981171b9a58ded2248bd296b08;p=gosa.git diff --git a/include/class_password-methods.inc b/include/class_password-methods.inc index cfa7b8aed..97571da79 100644 --- a/include/class_password-methods.inc +++ b/include/class_password-methods.inc @@ -63,7 +63,7 @@ class passwordMethod // this function returns all loaded classes for password encryption - static function get_available_methods() + function get_available_methods() { $ret =false; $all = get_declared_classes(); @@ -95,11 +95,14 @@ function change_password ($dn, $password, $mode=0, $hash= "") $newpass= ""; // Get all available encryption Methods - $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