mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
LdapConnnection: Don't pass param $serverCtrls
to ldap_search
prior php 7.3
refs #4013
This commit is contained in:
parent
16a7cb77ac
commit
7bb9c8e25f
@ -1294,7 +1294,6 @@ class LdapConnection implements Selectable, Inspectable
|
||||
throw new LogicException('LDAP scope %s not supported by ldapSearch', $scope);
|
||||
}
|
||||
|
||||
$serverctrls = [];
|
||||
if ($pageSize !== null) {
|
||||
$serverctrls[] = [
|
||||
'oid' => LDAP_CONTROL_PAGEDRESULTS,
|
||||
@ -1306,19 +1305,30 @@ class LdapConnection implements Selectable, Inspectable
|
||||
'cookie' => ''
|
||||
]
|
||||
];
|
||||
}
|
||||
|
||||
return @$function(
|
||||
$this->getConnection(),
|
||||
$baseDn,
|
||||
$queryString,
|
||||
$attributes,
|
||||
$attrsonly,
|
||||
$sizelimit,
|
||||
$timelimit,
|
||||
$deref,
|
||||
$serverctrls
|
||||
);
|
||||
return @$function(
|
||||
$this->getConnection(),
|
||||
$baseDn,
|
||||
$queryString,
|
||||
$attributes,
|
||||
$attrsonly,
|
||||
$sizelimit,
|
||||
$timelimit,
|
||||
$deref,
|
||||
$serverctrls
|
||||
);
|
||||
} else {
|
||||
return @$function(
|
||||
$this->getConnection(),
|
||||
$baseDn,
|
||||
$queryString,
|
||||
$attributes,
|
||||
$attrsonly,
|
||||
$sizelimit,
|
||||
$timelimit,
|
||||
$deref
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user