Click here to Skip to main content
15,889,992 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Newbie here.... I'm trying to build a simple page that would do a lookup from a users email address (attribute) from AD and check a group membership - validate the membership and then redirect - if not a member then redirect.

Authentication would happen on the redirected app pages. User would not auth until they hit the redirected page (keep from auth twice)

Example: open workspace.mycompany.com - enter UPN/email address - check that UPN against RSA group. If member of RSA group redirect to rsaworkspace.mycompany.com (F5 SSL VPN). If not member of RSA group - redirect to mydesktop.mycompany.com (NetScaler - published VDI).

any assistance / links to possible solutions?

What I have tried:

using Visual studio to build out - can build basic login page but again, newbie here, so I'm trying to figure out how to do with possible service account for initial lookup.
Posted
Comments
Foothill 1-Mar-16 17:09pm    
You start your search in the System.DirectoryServices namespace.
F-ES Sitecore 1-Mar-16 18:47pm    
Google "c# search active directory email address", "c# active directory is in role", "c# asp.net redirect to different page" and you'll find solutions to the individual components of your issue. If you then have specific questions about specific issues then feel free to ask them.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900