summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 646308b)
raw | patch | inline | side by side (parent: 646308b)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 21 Jul 2010 07:52:34 +0000 (07:52 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 21 Jul 2010 07:52:34 +0000 (07:52 +0000) |
-Fixed problem with enforced password changes.
-Samba flags wasn't set correctly.
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@19028 594d385d-05f5-0310-b6e9-bd551577e9d8
-Samba flags wasn't set correctly.
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@19028 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/plugins/admin/users/class_userManagement.inc | patch | blob | history |
diff --git a/gosa-core/plugins/admin/users/class_userManagement.inc b/gosa-core/plugins/admin/users/class_userManagement.inc
index 807634a645631c39a5b10f51a380bbe08a383aac..c323b5af1a00259bacfa386cdfe4a85eadd7bee9 100644 (file)
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();
}
}