Catch Users in mutiple OU

Last post 09-26-2007 11:51 AM by johram. 1 replies.

Sort Posts:

  • Catch Users in mutiple OU

    08-21-2007, 4:19 AM
    • Loading...
    • SuperSpike
    • Joined on 01-25-2007, 3:35 PM
    • Posts 37

    Hi friends

    My problem is this:

    I have a Web Application in Asp.net.


    I use membership class for work with the users authentication by active directory.

    I must catch all users that are in multiple OU.

    How I can make it?

    I've already tried to insert multiple connectionsString and  my web config have this:

    <membership>
                <providers>
                    <clear/>
                    <add connectionStringName="LDAP1" connectionUsername="domain\user" enableSearchMethods="true" connectionPassword="password" name="Provider1" type="System.Web.Security.ActiveDirectoryMembershipProvider, System.Web, &#xA;            Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
            <add connectionStringName="LDAP2" connectionUsername="domain\user"" enableSearchMethods="true" connectionPassword="password" name="Provider2" type="System.Web.Security.ActiveDirectoryMembershipProvider, System.Web, &#xA;            Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
                </providers>
    </membership>

     but I have this error "Default Membership Provider could not be found. "

    please help me!!!
  • Re: Catch Users in mutiple OU

    09-26-2007, 11:51 AM
    • Loading...
    • johram
    • Joined on 06-13-2006, 6:36 AM
    • Sweden
    • Posts 3,352
    • Moderator

    Haven't done this myself, but I found an article that might be useful to you:

    How To: Use Forms Authentication with Active Directory in Multiple Domains in ASP.NET 2.0

    The technique should be the same for different OUs in the same domain I would guess.

     

    If this post was useful to you, please mark it as answer. Thank you!
Page 1 of 1 (2 items)
Microsoft Communities
Page view counter