function LDAPInterface::retrieveAttributes in LDAP integration 5.2
Same name and namespace in other branches
- 5 ldap_integration/LDAPInterface.php \LDAPInterface::retrieveAttributes()
- 6 includes/LDAPInterface.inc \LDAPInterface::retrieveAttributes()
2 calls to LDAPInterface::retrieveAttributes()
- LDAPInterface::retrieveAttribute in ldap_integration/
LDAPInterface.php - LDAPInterface::retrieveMultiAttribute in ldap_integration/
LDAPInterface.php
File
- ldap_integration/
LDAPInterface.php, line 189
Class
Code
function retrieveAttributes($dn) {
set_error_handler(array(
'LDAPInterface',
'void_error_handler',
));
$result = ldap_read($this->connection, $dn, 'objectClass=*');
$entries = ldap_get_entries($this->connection, $result);
restore_error_handler();
return call_user_func($this->attr_filter, $entries[0]);
}