validaing security using AD groups... in web.config
- From: "Nalaka" <nalaka12@xxxxxxxxxxxxx>
- Date: Mon, 5 Nov 2007 17:14:09 -0800
Hi,
I am testing with an asp.net 2.0 app.... has only one page Default.aspx.
I want to deny all users except for a certain AD group.
I did the following... but app keeps allowing everyone in.
What am I doing wrong?
<configuration>
<connectionStrings>
<add name="ADConnectionString"
connectionString="LDAP://gtwds7eap01" />
</connectionStrings>
<system.web>
<identity impersonate="true"/>
<authentication mode="Windows"/>
<membership defaultProvider="MembershipADProvider">
<providers>
<add name="MembershipADProvider"
type="System.Web.Security.ActiveDirectoryMembershipProvider"
connectionStringName="ADConnectionString"
connectionUsername=""
connectionPassword=""/>
</providers>
</membership>
</system.web>
<location path="Default.aspx">
<system.web>
<authorization>
<allow roles=" bctgtwdom\someADSecurityGroup"/>
<deny users="*"/>
</authorization>
</system.web>
</location>
</configuration>
Any help is deeply appreciated
Thanks
Nalaka
.
- Follow-Ups:
- RE: validaing security using AD groups... in web.config
- From: Steven Cheng[MSFT]
- RE: validaing security using AD groups... in web.config
- Prev by Date: Re: Button problem
- Next by Date: Re: Sharing a Validator
- Previous by thread: hitting enter or shift+enter in asp.net designer messes up html code?
- Next by thread: RE: validaing security using AD groups... in web.config
- Index(es):
Loading