Code

Updated config object and convert_department dn.
[gosa.git] / gosa-core / include / password-methods / class_password-methods.inc
index 2f5c9cf7e6ccfe3f3c40dae93eef9343a3eebdb1..039886d5679257b9e2468b9903811fab6ecafe3d 100644 (file)
@@ -64,10 +64,12 @@ class passwordMethod
               $ret['class'][$i]=$class;
               $ret['is_configurable'][$i]= $cfg;
               $ret['object'][$i]= $test;
+              $ret['desc'][$i] = $test->get_description();
               $ret[$i]['name']  = $plugname;
               $ret[$i]['class'] = $class;
               $ret[$i]['object']= $test;
               $ret[$i]['is_configurable']= $cfg;
+              $ret[$i]['desc'] = $test->get_description();
               $ret[$plugname]=$class;                    
               $i++;
             }
@@ -80,6 +82,12 @@ class passwordMethod
   }
   
 
+  function get_description()
+  {
+    return("");
+  }
+
+
   // Method to let password backends remove additional information besides
   // the userPassword attribute
   function remove_from_parent()
@@ -91,6 +99,7 @@ class passwordMethod
   // besides the userAttribute entry
   function set_password($password)
   {
+    return(TRUE);
   }
 
 
@@ -124,7 +133,8 @@ class passwordMethod
     foreach ($methods['class'] as $class){
 
         $test = new $class($config,$dn);
-        if(!$test->is_available())continue;
+#        All listed methods are available. 
+#        if(!$test->is_available())continue;
         $method= $test->_extract_method($password_hash);
         if ($method != ""){
           $test->set_hash($method);