Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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

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

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

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


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

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

share|improve this question

migrated from stackoverflow.com Oct 6 '11 at 13:24

This question came from our site for professional and enthusiast programmers.

    
What happens? Any errors? –  Shoban Oct 5 '11 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 Oct 6 '11 at 3:42
add comment

2 Answers 2

up vote 0 down vote accepted

Try this one:

   <add name="AspNetActiveDirectoryMembershipProvider"
         type="System.Web.Security.ActiveDirectoryMembershipProvider" 
         applicationName="adtest"
         connectionUsername="cn=actualUser"
         connectionPassword="actualUsersPassword"
         connectionStringName="LocalAD">

   </add>

Hope this helps

share|improve this answer
    
same error :( i used "/" instead of "adtest in applicationName –  SAK Oct 11 '11 at 8:31
    
Check your LDAP string connectons –  naijacoder Oct 12 '11 at 7:44
add comment

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>).

share|improve this answer
    
i tried it. but same error :( –  SAK Oct 11 '11 at 8:29
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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