newbie help - Active Directory Membership Provider



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
.



Relevant Pages

  • Re: Defining Groups with AD users
    ... For ASP.NET authentication and role based authorization, ... you can configure the membership to use AD ... membership provider and Rolemanager to use SQL server provider. ... Microsoft MSDN Online Support Lead ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Defining Groups with AD users
    ... For ASP.NET authentication and role based authorization, ... you can configure the membership to use AD ... membership provider and Rolemanager to use SQL server provider. ... Microsoft MSDN Online Support Lead ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: MS ADAM: How strategic is a) MS ADAM and b) Authorizaion Manager?
    ... I'm not really sure on all of the details on the AD membership provider as I ... > I hadn't found ActiveDirectoryMembershipProvider in any of the TechEd ... I think the issue here is that AzMan is a much ...
    (microsoft.public.windows.server.active_directory)
  • Re: Replacing VS .NETs SQL Server Express Edition Integration
    ... You could write a custom membership provider. ... You could add the tables you need to your existing database table. ... As for configuring ASP.NET 2.0 membership to connect SQL Server 2000, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Help with ASP.NET Memberships
    ... Jonathan Wood ... It took me a good bit of research and study to get the ideas behing the ASP.Net Provider Model, and some of the implementations of it which come packaged in the framework, but once I "got it" it became fairly simple to use, and I even ended up writing a Provider of my own which I used for email with Memberships and Roles in an application. ... The difference between Membership and Roles is only one of specificity. ... The Provider pattern dictates that a static class of static methods is the "intermediary" between the application and the actual Provider class implementation. ...
    (microsoft.public.dotnet.framework.aspnet)