ldap_dn2ufn

Converts a distinguished name into the user friendly format.

LDAP Version:v2 or higher
Library:*ldapsdk.*
NDS Version:7.xx or higher
Platform:NLM, Windows (NT, 95, 98, 2000, XP, Vista 32-bit and 64-bit ), Linux (32-bit and 64-bit), Solaris, AIX, and HP-UX

Syntax

  #include <ldap.h>
  
  char *ldap_dn2ufn (
     const char   *dn);
  
  

Parameters

dn

(IN) Points to the distinguished name to be converted.

Return Values

>0

Pointer to the converted name

NULL

Failure

Remarks

The user friendly format is defined in RFC 1781. The format strips off the types and places a comma between the components of the name. Components which have commas in their names are placed in quotation marks.

The memory for the user friendly format is newly allocated and should be freed with a call to the ldap_memfree function.

See Also

ldap_get_dn, ldap_explode_dn, ldap_explode_rdn