You are here

function LDAPInterface::retrieveAttributes in LDAP integration 5.2

Same name and namespace in other branches
  1. 5 ldap_integration/LDAPInterface.php \LDAPInterface::retrieveAttributes()
  2. 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

LDAPInterface

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]);
}