From ca2c94e50e8f67b6c366b27f68d432ad01e2b084 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 28 Nov 2005 07:12:04 +0000 Subject: [PATCH] Fixed adaption git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2086 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/personal/samba/class_sambaAccount.inc | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/plugins/personal/samba/class_sambaAccount.inc b/plugins/personal/samba/class_sambaAccount.inc index d9d659e8b..ad748f3d7 100644 --- a/plugins/personal/samba/class_sambaAccount.inc +++ b/plugins/personal/samba/class_sambaAccount.inc @@ -978,6 +978,48 @@ class sambaAccount extends plugin plugin::adapt_from_template($dn); $this->sambaSID= ""; $this->sambaPrimaryGroupSID= ""; + + /* Fill mungedDial field */ + if ($this->samba3 && isset($this->attrs['sambaMungedDial'])){ + $this->mungedObject->load($this->sambaMungedDial); + } + + /* Password expiery */ + if(isset($this->attrs['sambaPwdMustChange']) && + $this->attrs['sambaPwdMustChange'][0] != 0){ + $this->password_expires= 1; + } + + if(isset($this->attrs['sambaLogonTime']) && ! ( + $this->attrs['sambaLogonTime'][0] == 0 || + $this->attrs['sambaLogonTime'][0] == 2147483647 + )){ + $this->logon_time_set= 1; + } + if(isset($this->attrs['sambaLogoffTime']) && ! ( + $this->attrs['sambaLogoffTime'][0] == 0 || + $this->attrs['sambaLogoffTime'][0] == 2147483647 + )){ + $this->logoff_time_set= 1; + } + + /* Account expiery */ + if(isset($this->attrs['sambaKickoffTime']) && ! ( + $this->attrs['sambaKickoffTime'][0] == 0 || + $this->attrs['sambaKickoffTime'][0] == 2147483647 + )){ + $this->kickoff_time_set= 1; + } + + /* Get global filter config */ + if (!is_global("sambafilter")){ + $ui= get_userinfo(); + $base= get_base_from_people($ui->dn); + $sambafilter= array( "depselect" => $base, "regex" => "*"); + register_global("sambafilter", $sambafilter); + } + + } } -- 2.30.2