locked
Active Directory LDAP RRS feed

  • Question

  • User2130512799 posted

    Hi Guys I am trying to use ActiveDirectory/Windows Authentication.  However I am having problems with the connection string for this

    <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" />

    </providers>

    </membership>

    It seems as if the Connection String is the Problem

    <add name="ADConnectionString" connectionString=LDAP://Server/DC=Server/OU=Users />

    Note that Server is an alasis for the actual server name (www.someurl.com) and I am attempting to get this solution to run on localhost/visual studio.  The error I seem to be getting is "A referral was returned from the server."  Not sure if I need to specify a username/password (how?), if the URL syntax is wrong, that I'm trying to connect to the server remotely, the fact that 'server' is an alias or what.

    Any help is much appriciated :)

     

    Monday, March 15, 2010 8:28 PM

All replies

  • User-1636183269 posted

    Just go through, is your problem solve if not then contact us again.

    http://www.codeproject.com/KB/system/everythingInAD.aspx


    Tuesday, March 16, 2010 2:35 AM
  • User-1200560727 posted

    Hi,

    If you are using Login page then you need to set MembershipProvider property which you have already define "MembershipADProvider" in web.config.

    Connection String -

    <add name="ADConnectionString" connectionString="LDAP://someurl.com/CN=UserName,DC=someurl,DC=com" providerName="System.Data.SqlClient"/>

    Please let me know if you still find any problem.

    Regards,

    Tapan


    Monday, March 22, 2010 2:32 AM