ldap_attributes

The ldap_attributes() function returns a list that contains all of the attributes that are associated with the specified LDAP entry. Each element in result contains an attribute name.

result = ldap_attributes (LDAPEntry);
LDAPEntry Required. A unique LDAP entry that is generated by ldap_firstentry(), ldap_nextentry(), or ldap_search().

A list in which each element contains an attribute name. On error, it returns an empty list.

result = ldap_attributes (LDAPEntry);

In this example, result might look like the following:

{"firstname", "lastname", "department", "jobcode"}

For more information, please see the following: