Skip to content

Serverless LDAP connection strings are not supported

ToBe

Asked Apr 3, 2013, 12:32 AM EDT1 answer
Share
LinkedInX
Hi Everybody 

I'm using Visual Studio 2010 and I'm getting this error when trying to run my login page 

Serverless LDAP connection strings are not supported by the Active Directory membership provider

this is my webconfig :

<?xml version="1.0"?>

<!--
  For more information on how to configure your ASP.NET application, please visit
  -->

<configuration>
  <connectionStrings>
    <add name="ApplicationServices"
Code
         connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true"
                providerName="System.Data.SqlClient" />
    <add name="ADConnectionString"
      connectionString="LDAP://ADMM.mom.com"/>
    
  </connectionStrings>

  <system.web>
    <compilation debug="true" targetFramework="4.0" />

       <authentication mode="Forms">
      <forms name=".ADAuthCookie" timeout="43200"/>
    </authentication>
    <authorization>
      <deny users="?"/>
      <allow users="*"/>
    </authorization>
    
       
    <membership defaultProvider="MyADMembershipProvider">
      <providers>

        <clear/>
        <add name="MyADMembershipProvider"
        type="System.Web.Security.ActiveDirectoryMembershipProvider,
        System.Web, Version=2.0.0.0, Culture=neutral,
        PublicKeyToken=b03f5f7f11d50a3a"
        connectionStringName="ADConnectionString"
        attributeMapUsername="MOMUserName"/>
        
        
        
      </providers>
    </membership>

    <profile>
      <providers>
        <clear/>
        <add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/"/>
      </providers>
    </profile>

    <roleManager enabled="false">
      <providers>
        <clear/>
        <add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/" />
        <add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/" />
      </providers>
    </roleManager>

  </system.web>

  <system.webServer>
     <modules runAllManagedModulesForAllRequests="true"/>
  </system.webServer>
</configuration>

 can you help me in how can I configure the user Credentials in the Active Directory 

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    Hi It worked For me now I just change the 

      attributeMapUsername="MOMUserName" to 

      attributeMapUsername="sAMAccountName"

    but I need now to Access a particular Group of the Active directory how can I do it ?


    0