1,105,546 Community Members

Active Directory

Member Avatar
Junior Poster in Training
55 posts since Nov 2011
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]

Hi Guys,

I have a asp.net web form that takes in a local user email address, on page onload i want to query active directory using that email address, and a specific group in active directory. if the user is found in the group i show the remaining controls on the page or else i prevent the user from seeing the remainder of the controls.

Any idea how i can accomplish this?

Member Avatar
IT Addict
6,421 posts since Dec 2011
Reputation Points: 581 [?]
Q&As Helped to Solve: 963 [?]
Skill Endorsements: 172 [?]

I dont have the code handy at this particular moment, but have done work in this area prior. I'd recommend you start looking at System.DirectoryServices. DirectoryEntry and DirectorySearcher are the objects I would typical use to connect to get and search for info in AD.

You can also use Directory Entry to determine if a user account is a member of a group.

This article has been dead for over three months: Start a new discussion instead
Start New Discussion
Tags Related to this Article