This sample code generates an output / string that seems incorrect:
Snippet ======================= #include <stdio.h> #include <ldap.h>
int main (int argc, const char * argv[]) { const char *testDN = "cn=LastName\\, FirstName,dc=test,dc=com"; char **dn = ldap_explode_dn( testDN, 1 );
printf( "rdn = %s\n", dn[0] );
return 0; }
Outputs: ========================== rdn = LastName\2C FirstName
Expected: ========================== rdn = LastName, FirstName
Thanks, -Jason
Attachment:
smime.p7s
Description: S/MIME cryptographic signature