Code

skipping . .. when deleting smarty spool dir
[gosa.git] / include / class_password-methods.inc
index cfa7b8aed8fdd830d42ab380c14e8bbac1d9dd91..c0ffba2b673fa44bdf3889d204122204e05679cd 100644 (file)
@@ -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,7 +95,10 @@ 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();