fixed problem on delete if same suffix for users and groups

This commit is contained in:
Roland Gruber 2011-11-16 17:38:59 +00:00
parent 4efeb596ea
commit 2559502738
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ class posixGroup extends baseModule implements passwordService {
*/ */
function delete_attributes() { function delete_attributes() {
$return = array(); $return = array();
$result = searchLDAPByFilter('gidNumber=' . $this->attributes['gidNumber'][0], array('dn'), array('user', 'host')); $result = searchLDAPByFilter('(&(objectClass=posixAccount)(gidNumber=' . $this->attributes['gidNumber'][0] . '))', array('dn'), array('user', 'host'));
if (sizeof($result) > 0) { if (sizeof($result) > 0) {
$max = 5; $max = 5;
if (sizeof($result) < 5) { if (sizeof($result) < 5) {