LDAPGateway::getUserByUsername
Get a specific user's data from LDAP
Signature
public function getUserByUsername(string
$username,
[null|string
$baseDn = NULL,
[int
$scope = Zend\Ldap\Ldap::SEARCH_SCOPE_SUB,
[array
$attributes = ]]] )
Parameters
$username
—
string
$baseDn
—
object
- The DN to search from. Default is the baseDn option in the connection if not given
$scope
—
int
- The scope to perform the search. Zend_Ldap::SEARCH_SCOPE_ONE, Zend_LDAP::SEARCH_SCOPE_BASE. Default is Zend_Ldap::SEARCH_SCOPE_SUB
$attributes
—
array
- Restrict to specific AD attributes. An empty array will return all attributes
Returns
- array
Errors/Exceptions
-
Exception