i m trying to enable FBA mode in my sharepoint. Followed all tutorials from msdn and blogs. but i am still not able to make it working. here is how my web.config looks like

<add name="ADConnectionString" connectionString="LDAP://sharepoint2" />

<trust level="Full" originUrl="" />

<authentication mode="Forms">
  <forms loginUrl="/_layouts/login.aspx" />
<identity impersonate="true" />
  <allow users="*" />

<membership defaultProvider="ADMembershipProvider">
    <add name="ADMembershipProvider" type="System.Web.Security.ActiveDirectoryMembershipProvider" connectionStringName="ADConnectionString" connectionUsername="cn=sharepoint2\administrator" connectionPassword="*******" enableSearchMethods="true" attributeMapUsername="sAMAccountName" />

please help me to resolve this issue. thanks in advance.

  • What happens? Any errors?
    – Shoban
    Commented Oct 5, 2011 at 12:07
  • this is the error which i get when i try to login as admin of site Unable to establish secure connection with the server (C:\Inetpub\wwwroot\wss\VirtualDirectories\****\web.config line 123)
    – Saghir A. Khatri
    Commented Oct 6, 2011 at 3:42

2 Answers 2


Try this one:

   <add name="AspNetActiveDirectoryMembershipProvider"


Hope this helps

  • same error :( i used "/" instead of "adtest in applicationName
    – SAK
    Commented Oct 11, 2011 at 8:31
  • Check your LDAP string connectons
    – naijacoder
    Commented Oct 12, 2011 at 7:44

Not sure if your connection string needs to be a little more specific (point to a container with users in it). However, it sounds like you're not even getting that far. Try removing the 'cn=' from the connectionUsername attribute (i.e. make it <domain>\<username>).

  • i tried it. but same error :(
    – SAK
    Commented Oct 11, 2011 at 8:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.