1,105,427 Community Members

Active Directory

Member Avatar
GTTravis
Junior Poster in Training
55 posts since Nov 2011
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
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
JorgeM
IT Addict
6,421 posts since Dec 2011
Reputation Points: 581 [?]
Q&As Helped to Solve: 963 [?]
Skill Endorsements: 172 [?]
Moderator
Featured
Sponsor
 
0
 

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.

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