Query for LDAP users, but don't include built-in user accounts. Iterate over all users, regardless of the paging size control built into the LDAP server.
Signature
public function getUsersWithIterator([string|null
$baseDn = NULL,
[array
$attributes = ]] )
Parameters
$baseDn
—
object
The DN to search within. Defaults to the base DN applied to the connection.
$attributes
—
array
Specify user attributes to be returned. Defaults to returning all attributes.