You are here

function retrieveAttribute in Lightweight Directory Access Protocol (LDAP) 6

LDAP attribute Functions

These functions operate on the attribute class while not quite fitting within the class.

File

includes/ldap.attribute.inc, line 101
Attribute Class and Manipulation Functions

Code

function retrieveAttribute($dn, $attrname) {
  $entries = $this
    ->retrieveAttributes($dn);
  return isset($entries[strtolower($attrname)]) ? $entries[strtolower($attrname)][0] : NULL;
}