Code

Updated password methods to include target dn
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 12 Apr 2010 12:11:20 +0000 (12:11 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 12 Apr 2010 12:11:20 +0000 (12:11 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17588 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/functions.inc
gosa-core/include/password-methods/class_password-methods.inc

index dec99bbc2122eb6c8a77f587efdf0aae06637eae..0bf8608a95fe55ce1bf2c8ffbd9589a4f6c039c1 100644 (file)
@@ -2973,7 +2973,7 @@ function change_password ($dn, $password, $mode=0, $hash= "")
   // Get all available encryption Methods
 
   // NON STATIC CALL :)
-  $methods = new passwordMethod(session::get('config'));
+  $methods = new passwordMethod(session::get('config'),$dn);
   $available = $methods->get_available_methods();
 
   // read current password entry for $dn, to detect the encryption Method
@@ -3003,7 +3003,7 @@ function change_password ($dn, $password, $mode=0, $hash= "")
   } else {
     // User MD5 by default
     $hash= "md5";
-    $test = new  $available['md5']($config);
+    $test = new  $available['md5']($config, $dn);
   }
 
   if($test instanceOf passwordMethod){
index cde47c38ee56f835040f0626c086058172ea29f1..e1c348f2d300a874d9114bcd1eaa404f7389d61c 100644 (file)
@@ -29,7 +29,7 @@ class passwordMethod
   var $lockable = TRUE;
 
   // Konstructor
-  function passwordMethod($config)
+  function passwordMethod($config, $dn)
   {
   }