newbie help - Active Directory Membership Provider
- From: SpaceMarine <spacemarine@xxxxxxxxxxxxxx>
- Date: Tue, 20 May 2008 12:57:07 -0700 (PDT)
hello,
i am testing out forms-based authentication using the AD membership
provider. i have limited AD experience.
i have setup an AD connection street and AD membership provider in my
web.config. however, doing some simple tests in code-behind i cannot
validate user accounts like so:
Dim isValid As Boolean =
Membership.ValidateUser("someUser@xxxxxxxxxxxxx", "somePassword")
Response.Write("is valid user: " & isValid.ToString() & "<br/>")
....is there more to this than meets the eye? something i havent set
up?
my web.config:
<connectionStrings>
<add name="ADConnectionString" connectionString="LDAP://machineName/
OU=Our Org,DC=ourDomain,DC=com" />
</connectionStrings>
<membership defaultProvider="MembershipADProvider">
<providers>
<add
name="MembershipADProvider"
type="System.Web.Security.ActiveDirectoryMembershipProvider,
System.Web, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="ADConnectionString"
connectionUsername="ourDomain\SomeAccount"
connectionPassword="somePassword"
enableSearchMethods="true" />
</providers>
</membership>
thanks!
sm
.
- Follow-Ups:
- Re: newbie help - Active Directory Membership Provider
- From: SpaceMarine
- Re: newbie help - Active Directory Membership Provider
- Prev by Date: Re: restricting access based on Org Unit (OU)
- Next by Date: Re: newbie help - Active Directory Membership Provider
- Previous by thread: OpenLDAP --- accessing to verify Username, Password, Organization and one or two other credentials. Does someone have an example, please?
- Next by thread: Re: newbie help - Active Directory Membership Provider
- Index(es):
Relevant Pages
|