ldap_getdn

The ldap_getdn() function returns the DN for the specified LDAP entry.

result = ldap_getdn (LDAPEntry);
LDAPEntry Required. An LDAP entry. ldap_firstentry(), ldap_nextentry(), and ldap_search() generate LDAP entries.
string

A DN.

Empty string Error condition.
result = ldap_getdn (LDAPEntry);

For more information, please see the following: