PDA

View Full Version : Authentication & Authorization using Active Directory Groups


melissa820
05-08-2006, 03:46 PM
Authentication & Authorization using Active Directory Groups

Is this possible?

I made a web application and I just want a certain active directory group to be able to access it.

I tried this but it didn't work:


<authorization>
<allow users="MYGROUP" />
<deny users="*"/>
</authorization>


Also this didn't work:


<authorization>
<allow roles="MYGROUP" />
<deny users="*"/>
</authorization>


Any ideas??

melissa820
07-06-2006, 05:11 PM
If anyone's interested, I found some help on this issue here (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/SecNetHT02.asp) (retrieving roles from AD) and here (http://msdn2.microsoft.com/en-us/library/system.web.ui.webcontrols.webparts.webpartmanager.onauthorizewebpart.aspx) (adding authorization filters to check against these roles).