From: cajus Date: Thu, 18 May 2006 13:11:12 +0000 (+0000) Subject: Even show empty groups X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=51caac513f96b7ddcd1c038f9ea2d14b48a0707b;p=gosa.git Even show empty groups git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3431 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/personal/posix/class_posixAccount.inc b/plugins/personal/posix/class_posixAccount.inc index 47675b503..2af3bc0fa 100644 --- a/plugins/personal/posix/class_posixAccount.inc +++ b/plugins/personal/posix/class_posixAccount.inc @@ -1074,9 +1074,12 @@ class posixAccount extends plugin $attrs = array("cn", "description", "gidNumber"); /* Get groups */ - $filter = - $res= get_list("(&(objectClass=posixGroup)(cn=".$this->GroupRegex.")(memberUid=".$this->GroupUserRegex."))", - $this->ui->subtreeACL, $base,$attrs, GL_SIZELIMIT); + if ($this->GroupUserRegex == '*'){ + $filter = "(objectClass=posixGroup)"; + } else { + $filter= "(&(objectClass=posixGroup)(cn=".$this->GroupRegex.")(memberUid=".$this->GroupUserRegex."))"; + } + $res= get_list($filter, $this->ui->subtreeACL, $base,$attrs, GL_SIZELIMIT); /* check sizelimit */ if (preg_match("/size limit/i", $ldap->error)){