index cfa7b8aed8fdd830d42ab380c14e8bbac1d9dd91..97571da7900f3e6d51f3190319cc0ba9508d6e64 100644 (file)
// this function returns all loaded classes for password encryption
// this function returns all loaded classes for password encryption
- static function get_available_methods()
+ function get_available_methods()
{
$ret =false;
$all = get_declared_classes();
{
$ret =false;
$all = get_declared_classes();
$newpass= "";
// Get all available encryption Methods
$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();
// 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
$attrs = $ldap->fetch ();
// Set encryption type to clear if required