Code

Ensure that password methods do correct cleanup
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 5 Dec 2007 14:35:29 +0000 (14:35 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 5 Dec 2007 14:35:29 +0000 (14:35 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8018 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/personal/generic/class_user.inc

index fbb55c12a99d7be0b70cf277fc47f04eb9ff65ec..8e35f8b1a0064e61de6ebe9cbcd1d3703bf921df 100644 (file)
@@ -1036,10 +1036,9 @@ class user extends plugin
     if ($this->pw_storage != $this->last_pw_storage){
       $tmp = new passwordMethod($_SESSION['config']);
       $available = $tmp->get_available_methods();
-      if (in_array_ics($this->pw_storage, $available['name'])){
-        $test= new $available[$this->pw_storage]($this->config);
+      if (in_array_ics($this->last_pw_storage, $available['name'])){
+        $test= new $available[$this->last_pw_storage]($this->config,$this->dn);
         $test->attrs= $this->attrs;
-        $test->dn= $this->dn;
         $test->remove_from_parent();
       }
     }