Code

Updated multiple edit
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 25 Feb 2010 09:03:17 +0000 (09:03 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 25 Feb 2010 09:03:17 +0000 (09:03 +0000)
-When the password hash type is changed then enforce password change for the user(s)

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15707 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/admin/users/class_userManagement.inc

index 62eb064a547b2af94fdd2c7d43be2a0d5a2203a6..0eb5197f37b368e8948ae5c0aa8bb582b5324224 100644 (file)
@@ -295,8 +295,19 @@ class userManagement extends management
   function saveChanges()
   {
     $str = management::saveChanges();
+  
     if(!empty($str)) return($str);
 
+    if($this->last_tabObject instanceOf multi_plug){
+      foreach($this->last_tabObject->a_handles as $user){
+        if($user->password_change_needed()){
+          $this->force_hash_type[$user->dn] = $user->by_object['user']->pw_storage;
+          $this->pwd_change_queue[] = $user->dn;
+        }
+      }
+      return($this->handlePasswordQueue());
+    }
+
     if(isset($this->last_tabObject->by_object['user']) && $this->last_tabObject->by_object['user']->password_change_needed()){
       $this->force_hash_type[$this->last_tabObject->dn] = $this->last_tabObject->by_object['user']->pw_storage;
       $this->pwd_change_queue[] = $this->last_tabObject->dn;