Link to home
Start Free TrialLog in
Avatar of ExtremeFitness
ExtremeFitness

asked on

Using the MS CreateUserWizard and Login Control with Active Directory

I am using the MS Login control to allow users to login using the Acrive Directory to Authenticate
My connection String is connectionString="LDAP://extremefitness.local/DC=extremefitness,DC=local"

I want to use the CreateUserWizzard to allow new people to log in, but I want the users to be inserted into a given organizational unit in my active directory.  In which case I need to use connectionString="LDAP://extremefitness.local/OU=WebUsers,DC=extremefitness,DC=local" as the connections string...

How can I combine thes two connections strings?  How do I have the controls use the one it needs?  or is there another way?
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

Does this article help?

Leveraging Active Directory As A Membership and Role Management Data Store in ASP.NET 2.0
http://blog.oppositionallydefiant.com/PermaLink,guid,5fc23db7-db7e-4ba3-a744-19216df93b9a.aspx

Bob
Avatar of ExtremeFitness
ExtremeFitness

ASKER

Ok I looked at that, but its not all that clear....

As per the document where does this go....

<add name="ActiveDirectoryAnonymous" connectionString=LDAP://dc1.myorg.com/OU=Web,DC=myorg,DC=com/>

<add name="ADMembershipProviderAnonymous" type="System.Web.Security.ActiveDirectoryMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="ActiveDirectoryAnonymous" connectionUsername="userName" connectionPassword="password" attributeMapUsername="sAMAccountName" enableSearchMethods="false" requiresUniqueEmail="true"/>

First of all, are you using the ActiveDirectoryMembershipProvider?

Bob
Yep
Ok never mind....

Got that figured out...
ASKER CERTIFIED SOLUTION
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial