Re: ASP.NET with ADirectory role based authentication

From: Mohamed Sharaf (Mohamed.Sharaf_at_egdsc.microsoft.com)
Date: 08/29/04


Date: Sun, 29 Aug 2004 09:11:04 GMT

Hi,
         You need to do two things
1) Write a function to retrieve the groups of the user
(you can find a sample here
http://www.wwwcoder.com/main/parentid/260/site/2208/68/default.aspx)

2)In the Application_AuthenticateRequest, you need to build your user data
by adding the groups you got from the previous step to the principal object.
All the steps you can find it in this MSDN article.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sds/sds/act
ive_directory_authentication_from_asp__net.asp

I hope that helps
Mohamed Sharaf
MEA Developer Support Center
ITWorx on behalf Microsoft EMEA GTSC