#include <ldap.h> char *ldap_get_dn( LDAP *ld, LDAPMessage *entry)
The ldap_get_dn() function takes an entry as returned by ldap_first_entry() or ldap_next_entry() and returns a copy of the entry's Distinguished Name (DN). Memory for the DN will have been allocated and should be freed by a call to ldap_memfree().
No i5/OS authority is required.
If ldap_get_dn() is not successful, ld_errno will be set to indicate the error. See LDAP Client API Error Conditions for possible LDAP error code values. Use ldap_get_errno() function to retrieve the error information.
The following message may be sent from this function.
Message ID | Error Message Text |
---|---|
CPF3CF2 E | Error(s) occurred during running of ldap_get_dn API. |
Top | LDAP APIs | APIs by category |