use additional LDAP filter for search

This commit is contained in:
Roland Gruber 2020-07-18 20:36:08 +02:00
parent 4158ebb91d
commit ffb3ed9357
1 changed files with 0 additions and 7 deletions

View File

@ -1330,13 +1330,6 @@ class posixGroup extends baseModule implements passwordService {
if ($this->isWindows()) {
$filter = '(&(objectClass=user)(gidNumber=*))';
}
$typeFilter = $type->getAdditionalLdapFilter();
if (!empty($typeFilter)) {
if (strpos($typeFilter, '(') !== 0) {
$typeFilter = '(' . $typeFilter . ')';
}
$filter = '(&' . $filter . $typeFilter . ')';
}
$result = searchLDAPByFilter($filter, array('uid', 'gidNumber', 'cn'), array('user'));
$resultCount = sizeof($result);
for ($i = 0; $i < $resultCount; $i++) {