facing an issue querying AD using C#

S

Suhas Vengilat

Hello,

I am facing an issue while querying Active directory using C# code with
system.DirectoryServices namespace.

Here is the path for my LDAP -
"LDAP://CN=XY - C++/Unix and other, OU=Automatic,OU=DLs,DC=domain,DC=com";

I have replaced the / character with\/- but still is giving error while
querying. Please help me to resolve this.

Also is there any way to query on the distribution lists from a given active
directory path?

Thank you.
Suhas Vengilat
 
F

Frank Werner-Krippendorf

Hello Suhas,
"LDAP://CN=XY - C++/Unix and other,
OU=Automatic,OU=DLs,DC=domain,DC=com";

have you tried "LDAP://CN=\"XY - C++/Unix and other\", OU=Automatic,OU=DLs,DC=domain,DC=com";

Regards

Frank
 
J

jp2msft

We have Active Directory here, and I am curious as to what all I could do
with it as a developer. I'm not really sure what AD is or what it is for, and
our IT guy doesn't know too much about it either other than how to install
programs on it.

What do you do with AD?
 
M

Mark

jp2msft,

Everything you can do in the AD tools for managing accounts can pretty
much be done in code.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top