...
| Remarque | ||
|---|---|---|
| ||
La même manipulation est à effectuer pour chacun des répliquas de l'annuaire LDAP. |
Connecter CAS et LDAP
Afin de connecter CAS et LDAP, il faut procéder aux modifications suivantes :
Ajout dans le fichier pom.xml du cas bundle :
Bloc de code title uportal-portlets-overlay\cas\pom.xml firstline 160 linenumbers true <dependency> <groupId>org.jasig.cas</groupId> <artifactId>cas-server-support-ldap</artifactId> <version>${cas-server.version}</version> <scope>compile</scope> <exclusions> <exclusion> <groupId>org.inspektr</groupId> <artifactId>inspektr-core</artifactId> </exclusion> </exclusions> </dependency>Ajouts dans le fichier deployerConfigContext.xml du cas bundle :
Bloc de code title uportal-portlets-overlay\cas\src\main\webapp\WEB-INF\deployerConfigContext.xml firstline 120 linenumbers true <bean class="org.jasig.cas.adaptors.ldap.FastBindLdapAuthenticationHandler" > <property name="filter" value="${environment.build.ldap.uidAttr}=%u,${environment.build.ldap.baseDn}" /> <property name="contextSource" ref="contextSource" /> </bean>Bloc de code title uportal-portlets-overlay\cas\src\main\webapp\WEB-INF\deployerConfigContext.xml firstline 222 linenumbers true <bean id="contextSource" class="org.springframework.ldap.core.support.LdapContextSource"> <property name="urls"> <list> <value>${environment.build.ldap.url}</value> </list> </property> </bean>
...
| Info | ||
|---|---|---|
| ||
https://wiki.jasig.org/display/UPM40/LDAP https://wiki.jasig.org/display/UPM40/LDAP+User+Attribute+Sources https://www.cru.fr/documentation/supann/2009/classesattributs |