From: hickert Date: Wed, 11 Jul 2007 06:08:30 +0000 (+0000) Subject: Update posixAccount check hook. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=928c93fd11674263d3db1e801efdeef845c7e304;p=gosa.git Update posixAccount check hook. Added group membership to check hook git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6820 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/personal/posix/class_posixAccount.inc b/plugins/personal/posix/class_posixAccount.inc index 1578b8592..f2155b2f1 100644 --- a/plugins/personal/posix/class_posixAccount.inc +++ b/plugins/personal/posix/class_posixAccount.inc @@ -59,6 +59,7 @@ class posixAccount extends plugin var $GroupRegex = "*"; var $GroupUserRegex = "*"; var $SubSearch = false; + var $memberGroup = array(); /* attribute list for save action */ var $CopyPasteVars = array("grouplist","groupMembership","use_shadowMin","use_shadowMax","use_shadowWarning","use_shadowInactive","use_shadowExpire","must_change_password","grouplist","savedGidNumber","savedUidNumber"); @@ -902,8 +903,18 @@ class posixAccount extends plugin /* Include global link_info */ $ldap= $this->config->get_ldap_link(); + /* Append groups as memberGroup: to check hook + */ + $tmp_attributes = $this->attributes; + $this->attributes[] = "memberGroup"; + $this->memberGroup = array(); + foreach($this->groupMembership as $dn => $name){ + $this->memberGroup[] = $name; + } + /* Call common method to give check the hook */ $message= plugin::check(); + $this->attributes = $tmp_attributes; /* must: homeDirectory */ if ($this->homeDirectory == ""){