summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 50e2eab)
raw | patch | inline | side by side (parent: 50e2eab)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 28 Nov 2005 07:12:04 +0000 (07:12 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 28 Nov 2005 07:12:04 +0000 (07:12 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2086 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/personal/samba/class_sambaAccount.inc | patch | blob | history |
diff --git a/plugins/personal/samba/class_sambaAccount.inc b/plugins/personal/samba/class_sambaAccount.inc
index d9d659e8ba2e4c926785ffbb4740cb0d07d93478..ad748f3d72ca52dccc2ddec9f526acd7e458c045 100644 (file)
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);
+ }
+
+
}
}