Closed davidcoutadeur closed 4 months ago
A new function search_with_scope() could be defined as a proxy to ldap_search, ldap_list or ldap_read, depending on a new argument passed: the scope.
search_with_scope()
The signature would be:
search_with_scope( array|string $base, array|string $filter, string $scope = "subtree", array $attributes = [], int $attributes_only = 0, int $sizelimit = -1, int $timelimit = -1, int $deref = LDAP_DEREF_NEVER, ?array $controls = null ): LDAP\Result|array|false
same signature as for ldap_search, but without LDAP\Connection|array $ldap,, and with $scope.
LDAP\Connection|array $ldap,
It is more convenient to have a function signature with variable arguments.
Function signature being:
function search_with_scope(string $scope = "sub", ...$searchargs): LDAP\Result|array|false
A new function
search_with_scope()
could be defined as a proxy to ldap_search, ldap_list or ldap_read, depending on a new argument passed: the scope.The signature would be:
same signature as for ldap_search, but without
LDAP\Connection|array $ldap,
, and with $scope.