Code

Updated class user, do not set password for templates.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 2 Dec 2008 15:02:07 +0000 (15:02 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 2 Dec 2008 15:02:07 +0000 (15:02 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13124 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/personal/generic/class_user.inc

index e23798d505def1313320302c6ac1f65f578b8605..adb14ec187f78990f27c46501a61455a6cafebcc 100644 (file)
@@ -1057,6 +1057,7 @@ class user extends plugin
       foreach($temp as $id => $data){
         if(isset($data['name']) && $data['name'] == $this->pw_storage){
           $tmp = new  $temp[$this->pw_storage]($this->config,$this->dn);
+          $tmp->set_hash($this->pw_storage);
           $this->attrs['userPassword'] = $tmp->create_template_hash($this->attrs);
           break;
         }
@@ -1289,7 +1290,7 @@ class user extends plugin
     if(in_array("pw_storage",$this->multi_boxes)){
       return(TRUE);
     }
-    return($this->pw_storage != $this->last_pw_storage);
+    return($this->pw_storage != $this->last_pw_storage && !$this->is_template);
   }