Syntax
list ldap_get_attributes(int ldapid, ldapentry entry[, boolean trace] )
Description
ldap_get_attributes returns the full list of attribute names in an ldapentry returned by a previous call to ldap_first_entry or ldap_next_entry.
If none are present, it returns an empty list. If the optional trace parameter is set to true, any errors or warnings from the LDAP function are written to stdout.
Example
allattributes=ldap_get_attributes(ldapid, entry); if (selected_attribute in allattributes) { #process matching attribute }