Come configurare un’autenticazione claims e forms con un provider LDAP su Sharepoint 2010

Ultimamente ho dovuto configurare una sorgente ldap su Sharepoint 2010 per far sì che il profilo utente fosse disponibile sia in autenticazione form che in windows.

Ovviamente come sorgente LDAP ho usato Active Directory su una macchina Windows 2008 R2.

Una volta configurato il sistema di accesso (vediamo fra poco come), la pagina di login diverrà una solamente, con la possibilità di selezionare come identificarsi:

signin_6209cff5-0cb4-4fca-82be-bc3b5369b7f1

 

PREREQUISITO

E’ necessario che la vostra applicazione sia configurata in Integrated Windows Authentication NTLM e che  sia abilitato l’FBA

 

00089841-82F5-4012-9E93-B37576580D52


Fatto quanto sopra dovremo modificare 3 web.config:

  1. Central Administration
  2. Security Token Service
  3. Web application

 

  1. Apriamo il web.config del Central Administration e aggiungiamo i dati inerenti al provider da usare sotto il tag system.web:
<membership>
<providers>
<add name="LdapMember"
type="Microsoft.Office.Server.Security.LdapMembershipProvider,
Microsoft.Office.Server, Version=14.0.0.0, Culture=neutral,
PublicKeyToken=71e9bce111e9429c"

server="dc.myldapserver.com"
port="389"
useSSL="false"
userDNAttribute="distinguishedName"
userNameAttribute="sAMAccountName"
userContainer="OU=SPUsers,DC=myldapserver,DC=com"
userObjectClass="person"
userFilter="(ObjectClass=person)"
scope="Subtree"
otherRequiredUserAttributes="sn,givenname,cn" />
</providers>
</membership>

<roleManager enabled="true" defaultProvider="AspNetWindowsTokenRoleProvider" >
<providers>
<add name="LdapRole"
type="Microsoft.Office.Server.Security.LdapRoleProvider,
Microsoft.Office.Server, Version=14.0.0.0, Culture=neutral,
PublicKeyToken=71e9bce111e9429c"

server="dc.myldapserver.com"
port="389"
useSSL="false"
groupContainer="OU=SPUsers,DC=sharepoint,DC=com"
groupNameAttribute="cn"
groupNameAlternateSearchAttribute="samAccountName"
groupMemberAttribute="member"
userNameAttribute="sAMAccountName"
dnAttribute="distinguishedName"
groupFilter="(ObjectClass=group)"
userFilter="(ObjectClass=person)"
scope="Subtree" />
</providers>
</roleManager>

sotto il tag <PeoplePickerWildcards>

<clear />
<add key="AspNetSqlMembershipProvider" value="%" />
<add key="LdapMember" value="*"/>
<add key="LdapRole" value="*"/>

adesso ripetiamo la stessa cosa negli altri due web.config

2.  Nel tag system.web del Security Token Service e nella web application riscriviamo nel provider LdapMember e il roleManager inserito sopra

unica differenza, il PeoplePickerWildcards non dovete inserirlo nel Security Token Service ma solamente nella web application (ovviamente come detto prima anche sul Central Administration)

Fatto questo dovrebbe essere tutto funzionante.

Rebitting Tags: |

posted @ Tuesday, November 29, 2011 1:00 PM

Print

Comments on this entry:

# tory bruch outlet

Left by Tory Burch Outlet at 8/8/2012 2:48 AM
Gravatar
Creep before you walk.TORY

# Roger Vivier

Left by Roger Vivier at 4/11/2013 3:11 AM
Gravatar
Great and nice post thank you.

# No survey hacks

Left by No survey hacks at 9/7/2014 5:55 AM
Gravatar
Come configurare un'autenticazione claims e forms con un provider LDAP su Sharepoint 2010

# A new adidas nmd r2 online appearance again!Adidas NMD R2 "white shoe"

Left by BobbyDes at 3/20/2018 11:44 AM
Gravatar
March sale of hypoallergenic Curry some champions suit sales abnormally hot, a lot of men and women with money to buy long ago chuai, there is no snap up. But recently, this title set in platinum color version are going to be released in this thirty day period alone, made the new round from the opportunity to give the actual fans

Tag: kyrie irving shoes calvin klein curry 2 kyrie 4 confetti air jordan 32 Lebron Shoes kyrie 4 kyrie 4 curry 4 Nike Soccer Cleats kyrie 3 shoes curry 4 Cristiano Ronaldo CR7 adidas yeezy adidas ultra boost Nike CR7 Nike Lebron James Shoes adidas supreme yeezys

kd shoes nike air presto lebron james shoes john wall shoes air jordan 32 birkenstock shoes lebron 15 ashes nike air vapormax michael jordan shoes nike zoom vaporfly elite puma fenty kyrie 4 puma fenty adidas yeezy boost 350 v2 zebra curry 4 lebron james shoes nike sock racer ugg 5815 lebron 14 shoes adidas terrex curry shoes yeezy supreme nike huarache pg shoes nike kyrie 4 calvin klein underwear adidas eqt Nike Soccer Cleats nike sb dunk asics shoes

# erectile therapist

Left by erectile pills at 6/7/2018 9:12 PM
Gravatar
erectile with long time
erectile dysfunction
erectile tissue function
best drugs for ed
erectile therapy jordan http://eddrugsgeneric.com/

# where can i buy viagra without a prescription buy.c.ia.lis.o.n.l.ine

Left by CoreyRox at 6/8/2018 10:45 PM
Gravatar
buy cialis soft tadalafil in kitchenercialis how much in thailanddifference entre cialis viagra et levitrachinese cialis 50 mgimpotence pill cialis softcheap cialis online canadian pharmacyalternatives to viagra and cialiscialis generic tadalafil best price comparesubaction showcomments cialis optional onlinecialis zonder recept bestellencialis cuantos mg haycialis online kaufen gunstigconstruction automobile presse sp cialis ecialis for sale south africaapproved cialis fdacialis testamonialscialis en vrouwencialis generic 32 tabletsdreampharmaceuticals order cialis online
what is cialis Cialis 5mg
cialis tadalafil online Buy cialis
cialis free trial http://babecolate.com/
cialis soft supplies ukchinese cialiscialis usa pharmacyworks better viagra cialishow does cialis workcialis providercialis 20 mg cenacialis ohne rezept in hollandhow much cialis can you takecialis preis apotheke schweiznitroglycerin cialis interactionarginine nitric oxide viagra levitra cialiscialis in frankreich ohne rezeptcialis works better than expectedcialis advice

# where can i buy viagra cheap b.uyc.i.a.lis.on.l.ine

Left by CoreyRox at 7/18/2018 2:00 AM
Gravatar
viagra uk where can i buy viagra over the counter viagraiy.com
viagra uk price http://viagraiy.com/
buy viagra now http://viagraiy.com/#viagra-uk
best online drugstore viagrahow long do boners last with viagraviagra with health menforum cialis ou viagraque pasa si me tomo una viagrais viagra a statinviagra e hemorroidaandere mittel als viagraviagra generico bariel viagra ayuda contra la eyaculacion precozviagra precio farmacia cruz verde

# viagra alternatives b.u.yc.i.al.is.on.li.n.e.

Left by CoreyRox at 7/19/2018 12:00 AM
Gravatar
where to buy viagra viagra purchase online viabiovit.com
where to order viagra online http://viabiovit.com/
get prescription for viagra http://viabiovit.com/#viagra-generic
is viagra good for blood circulationcounterfeit viagra pillsbuying viagra in perthbuy cheap viagra online without prescriptionviagra y diabetes tipo 2viagra conseil d'utilisationwhere to buy viagra in uaecrema effetto viagraviagra and blood clotsgeneric viagra for pulmonary hypertensionwhere to get viagra in lagosalternative medicine for viagrahow to put viagraviagra patent verlopen

Your comment:



 (will not be displayed)


 
 
 
Please add 2 and 2 and type the answer here:
 

Live Comment Preview: