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 am setting up claims auth for a site which needs to use LDAP. The connection needs to be made using a certain user account so I need to pass in the password. Does anybody has an example of a connection string that includes a password? I am using the following example to setup the ldap auth:

http://blogs.technet.com/b/speschka/archive/2009/11/05/configuring-forms-based-authentication-in-sharepoint-2010.aspx

And the similar membership and role provider info on that link. Sorry cant copy the info on this post, the editor won't allow it maybe because of the XML format.

Thanks!  

share|improve this question
    
Found this technet forum post(social.technet.microsoft.com/Forums/en-US/sharepoint2010setup/… the OP posted his configuration which has the username and password format, will try that out and let you guys know. –  Emon Apr 7 '12 at 23:01
1  
That would be the correct way of doing it. –  Trevor Seward Apr 8 '12 at 2:01
add comment

1 Answer

It looks like the link provided by Emon is broken, so I thought I'd provide a configuration here:

<add name="ldapmembership" 
type="Microsoft.Office.Server.Security.LdapMembershipProvider, Microsoft.Office.Server, Version=14.0.0.0, Culture=neutral,          PublicKeyToken=71e9bce111e9429c"  
    server="xxxx"
    port="389" 
    useSSL="false" 
    userDNAttribute="uid" 
    userNameAttribute="uid" 
    userContainer="DC=xxxxx" 
    userObjectClass="person" 
    userFilter="(ObjectClass=person)" 
    scope="Subtree"
    useDNAttribute="false"  
    otherRequiredUserAttributes="uid,cn"
    connectionUsername="uid=xxxxx,OU=xxx,OU=xxxx,DC=xxxx"
    connectionPassword="xxxxx" />
share|improve this answer
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.