From c921b370a90f94d2efb26e707345fb0f8bb2b0d0 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 21 Jul 2010 07:52:34 +0000 Subject: [PATCH] Updated user management -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 --- gosa-core/plugins/admin/users/class_userManagement.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gosa-core/plugins/admin/users/class_userManagement.inc b/gosa-core/plugins/admin/users/class_userManagement.inc index 807634a64..c323b5af1 100644 --- a/gosa-core/plugins/admin/users/class_userManagement.inc +++ b/gosa-core/plugins/admin/users/class_userManagement.inc @@ -377,8 +377,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(); } } -- 2.30.2