ldap_attributes

Description

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.

Not supported in Endpoint Privilege Management for Linux (EPM-L).

Syntax

result = ldap_attributes (LDAPEntry);

Arguments

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

Return Values

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, see the following: