Code

Updated samba flag handling.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 21 Jul 2010 07:55:18 +0000 (07:55 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 21 Jul 2010 07:55:18 +0000 (07:55 +0000)
- Set flags correctly,

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

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

index e62358c7e45a4910d65ecc5f77e7be0823434d88..87c008f54862b916bc6b43a676aba3905abc665b 100644 (file)
@@ -378,8 +378,10 @@ class userManagement extends management
                     if($samba){
                         $sambaAccount = new sambaAccount($this->config, $this->dn);
                         $sambaAccount->is_modified=TRUE;
-                        $sambaAccount->kickoff_time_set  = "1";
-                        $sambaAccount->sambaKickoffTime= date('d.m.Y', time() - (1 * 24 * 60 *60));
+                        $sambaAccount->enforcePasswordChange=TRUE;
+                        $sambaAccount->cannotChangePassword=FALSE;
+                        $sambaAccount->sambaPwdCanChange=0;
+                        $sambaAccount->sambaAcctFlags = preg_replace("/X/i","",$sambaAccount->sambaAcctFlags);
                         $sambaAccount->save();
                     }
                 }