0
Answer

DirectoryEntry and comma in LDAP path

Majunbu

Majunbu

19y
4k
1
The user accounts in the AD I am dealing with where created in the following fashion. Last Name,First Name I am having trouble connecting directly to a user account due to the comma in the name and the lack of success of escaping it out of the DirectoryEntry.path line. Example. DirectoryEntry de = new DirectoryEntry(); de.path = "LDAP:///CN=, , , "; I can not resolve the comman name of the user account since the agrument for the path is comma delimited and there is a comma contained in the CN of the user account. Any help would greatly be appreciated in figuring out the syntax needed to successfully bind to AD. thanks,