#include <ldap.h> char *ldap_dn2ufn( const char *dn)
The ldap_dn2ufn() function takes a distinguished name (DN) and converts into a "friendlier" representation by removing the attribute type that is associated with each relative distinguished name (RDN). For example, the DN "cn=John Doe,ou=Widget Division,ou=Austin,o=IBM,c=US" would be returned in its "friendlier" form as "John Doe, Widget Division, Austin, IBM, US". Space for the user-friendly name will have been obtained by the API, and should be freed by the caller with a call to ldap_memfree().
No i5/OS authority is required.
If ldap_dn2ufn() is not successful, then there was no memory available for the character string.
The following message may be sent from this function.
Message ID | Error Message Text |
---|---|
CPF3CF2 E | Error(s) occurred during running of ldap_dn2ufn API. |
Top | LDAP APIs | APIs by category |