LDAPGateway::getUserByDN
Return a particular LDAP user by DN value.
Signature
public function getUserByDN(string
$dn,
[null|string
$baseDn = NULL,
[int
$scope = Zend\Ldap\Ldap::SEARCH_SCOPE_SUB,
[array
$attributes = ]]] )
Parameters
$dn
—
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