1
votes

I am devloping a sharepoint website in Forms authentication mode. I am trying to authenticate myself/ my company users against company's active directory. The ldap path I received from my technical team is

LDAP://infinmumcfac.inf.com OU=Infotech,DC=inf,DC=com

I got this piece of code from microsoft site.

<membership defaultProvider="LdapMembershipProvider"> 
<providers> 
<add 
name="LdapMembership" 
type="Microsoft.Office.Server.Security.LDAPMembershipProvider, Microsoft.Office.Server, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C" 
server="DC"  
 port="389" 
useSSL="false" 
userDNAttribute="distinguishedName" 
userNameAttribute="sAMAccountName" 
userContainer="CN=Users,DC=userName,DC=local"  
userObjectClass="person" 
userFilter="(|(ObjectCategory=group)(ObjectClass=person))" 
scope="Subtree" 
otherRequiredUserAttributes="sn,givenname,cn" 
/> 
</providers> 
</membership>

The site asked me to change the Server and Usercontainer attribute. I have modified the code to

<membership defaultProvider="LdapMembershipProvider"> 
<providers> 
<add 
name="LdapMembership" 
type="Microsoft.Office.Server.Security.LDAPMembershipProvider, Microsoft.Office.Server, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C" 
server=” infinmumcfac.inf.com”
port="389" 
useSSL="false" 
userDNAttribute="distinguishedName" 
userNameAttribute="sAMAccountName" 
userContainer=" OU=Infotech,DC=inf,DC=com "   
userObjectClass="person" 
userFilter="(|(ObjectCategory=group)(ObjectClass=person))" 
scope="Subtree" 
otherRequiredUserAttributes="sn,givenname,cn" 
/> 
</providers> 
</membership>

I placed this code in web.config file of central administration site and my sharepoint website . I am still facing login issues. Any help or insight would be highly grateful.Thanking in anticipation.

1

1 Answers

0
votes

You also need to set up zones, authentication providers and alternate access mappings in central administration.