Initial Release 6

Function : LDAP
ldap_get_dn - Retrieve the name of an entry.
----------------------------------------------------------------------------------------------------------

#include <ldap.h>

char *LNPUBLIC ldap_get_dn(
LDAP *ld,
LDAPMessage *entry);

Description :

This function is used to retrieve the distinguished name of an entry.
Parameters :

Sample Usage :


      if ( (sdn = ldap_get_dn( ld, e )) != NULL )
      {
          printf( "\tdn: %s\n", sdn );
          ldap_memfree( sdn );
      }


See Also :

ldap_dn2ufn
----------------------------------------------------------------------------------------------------------