iis - Active Directory authorization -
i have windows authentication. when user access application need check username windows , compare active directory group username , if username exists should show landing page else should redirect error page through web.config only. can me this. , impersonate in web.config?
worked after couple of trails.
to allow users under active directory groups should given within authorization tag.
<authentication mode="windows"/> <authorization> <allow roles="activedirectory1"/> <allow roles="activedirectory2"/> <deny users="*"/> </authorization>
Comments
Post a Comment