By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,918 Members | 1,557 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,918 IT Pros & Developers. It's quick & easy.

Get the roles of a given user in Active directory

P: 36
hope someone can help 'cause i'm having a lot of trouble in this one.
What i need to do is to get the roles to which a user belons to, in the active directory. But can't even get the user information.
To get te user, i have something like this
DirectoryEntry root = new DirectoryEntry("LDAP://Server/user", @"damain\user", password);
I'm almost sure now that my error is because i don't fully understand the parameters in the Directoryentry constructor.
What is the right way to make the LDAP path, "LDAP://..." to get an user in the domain, i think the problem is there.

Any idea, suggest?
Apr 19 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.