You are here

function retrieveMultiAttribute in Lightweight Directory Access Protocol (LDAP) 6

File

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

Code

function retrieveMultiAttribute($dn, $attrname) {
  $entries = $this
    ->retrieveAttributes($dn);
  $result = array();
  $retrieved = $entries[strtolower($attrname)];
  $retrieved = $retrieved ? $retrieved : array();
  foreach ($retrieved as $key => $value) {
    if ($key !== 'count') {
      $result[] = $value;
    }
  }
  return $result;
}