fixed search_domains

This commit is contained in:
Roland Gruber 2016-05-26 19:40:37 +02:00
parent 7870f0babb
commit d47438d4a8
1 changed files with 2 additions and 1 deletions

View File

@ -391,7 +391,8 @@ function search_domains($server = null, $suffix = null) {
if ($server == null) {
$server = $_SESSION['ldap']->server();
}
$units = searchLDAPByAttribute(null, null, 'sambaDomain', $attr, array('smbDomain'));
$filter = '(objectclass=sambaDomain)';
$units = searchLDAPPaged($server, $suffix, $filter, $attr, false, 0);
// extract attributes
for ($i = 0; $i < sizeof($units); $i++) {
$ret[$i] = new samba3domain();