Code

Updated posix user add
[gosa.git] / include / class_password-methods.inc
index d633749fcaff450f27a23fb13e2b245595157571..c0ffba2b673fa44bdf3889d204122204e05679cd 100644 (file)
@@ -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();