From 58f408e9f2a8a9deb69bb1dce4338aa45cf1fcc0 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 11 Jul 2007 06:09:52 +0000 Subject: [PATCH] Update posixAccount check hook. Added group membership to check hook git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6821 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/personal/posix/class_posixAccount.inc | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/plugins/personal/posix/class_posixAccount.inc b/plugins/personal/posix/class_posixAccount.inc index 999cf1665..10d575bcb 100644 --- a/plugins/personal/posix/class_posixAccount.inc +++ b/plugins/personal/posix/class_posixAccount.inc @@ -57,7 +57,7 @@ class posixAccount extends plugin var $secondaryGroups= array(); var $primaryGroup= 0; var $was_trust_account= FALSE; - + var $memberGroup = array(); var $grouplist = array(); var $ui = array(); @@ -925,8 +925,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 == ""){ -- 2.30.2