开发者

Sharepoint Active directory forms authentication

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 webs开发者_StackOverflow社区ite . I am still facing login issues. Any help or insight would be highly grateful.Thanking in anticipation.


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜