ldap_dn_to_url
char *ldap_dn_to_url(LDAP *ld, char *dn, int nameparts);
if ((url = ldap_dn_to_url(ld, dn, nameparts)) == NULL) {