Converts a namemapped dn into LDAP format.
#include <ldapx.h> int ldap_nds_to_x500_dn ( LDAP *ld, unsigned short *namemappeddn, char **ldapName);
(IN) Points to the handle for the LDAP session.
(IN) Points to the namemapped distinguished name of the object.
(OUT) Points to the entry's distinguished name in LDAP format.
0x00 |
LDAP_SUCCESS |
0x01 |
LDAP_OPERATIONS_ERROR: A string is returned with this error code that indicates the source of the error. |
0x53 |
LDAP_ENCODING_ERROR |
0x5A |
LDAP_NO_MEMORY |
0x5C |
LDAP_NOT_SUPPORTED |
Non-zero |
Non-zero values indicate errors. See |
This function is provided for applications which need to get the LDAP format of the distinguished name instead of namemapped format.
The requestName is set to the OID (2.16.840.1.113719.1.27.100.101) and the requestValue is a BER encoding of the following:
RequestBer dn LDAPDN
The responseName is set to the OID (2.16.840.1.113719.1.27.100.102) and the responseValue is a BER encoding of the following:
ResponseBer ldapName OCTET STRING