From 3422af2a7aa36dc304517255a436a708d5afe985 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 1 Sep 2005 12:42:02 +0000 Subject: [PATCH] leading 0 caused ldap errors in attribute Posixy-account git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1287 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/personal/posix/class_posixAccount.inc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/personal/posix/class_posixAccount.inc b/plugins/personal/posix/class_posixAccount.inc index 4cf648013..6a66a4f6c 100644 --- a/plugins/personal/posix/class_posixAccount.inc +++ b/plugins/personal/posix/class_posixAccount.inc @@ -669,6 +669,7 @@ class posixAccount extends plugin /* Save data to LDAP, depending on is_account we save or delete */ function save() { + /* include global link_info */ $ldap= $this->config->get_ldap_link(); @@ -787,6 +788,10 @@ class posixAccount extends plugin $thid->attrs['gosaDefaultPrinter']=array(); } + foreach(array("shadowMin","shadowMax","shadowWarning","shadowInactive") as $attr){ + $this->attrs[$attr] = (int) $this->attrs[$attr]; + } + /* Save data to LDAP */ $ldap->cd($this->dn); $ldap->modify($this->attrs); -- 2.30.2