From: hickert Date: Wed, 5 Dec 2007 14:35:29 +0000 (+0000) Subject: Ensure that password methods do correct cleanup X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=86cfe7aa720eb5295d15b9d30197bedc03d3a905;p=gosa.git Ensure that password methods do correct cleanup git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8018 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/personal/generic/class_user.inc b/plugins/personal/generic/class_user.inc index fbb55c12a..8e35f8b1a 100644 --- a/plugins/personal/generic/class_user.inc +++ b/plugins/personal/generic/class_user.inc @@ -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(); } }