S
SpaceMarine
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("(e-mail address removed)", "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
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("(e-mail address removed)", "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