...
Connecter un CAS Externe et LDAP
| Info |
|---|
La configuration d'un annuaire LDAP sur un serveur CAS externe est décrite sur le wiki Jasig : https://wiki.jasig.org/display/CASUM/LDAP |
Afin de connecter un CAS externe et LDAP, il faut procéder aux modifications suivantes (exemple de configuration - le FastBind ne fonctionne pas avec tous les LDAP) :
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> <groupId>org.jasig.cas</groupId> <artifactId>inspektr-core<<artifactId>cas-server-support-ldap</artifactId> </exclusion> </exclusions><version>${cas.version}</version> </dependency>
Ajouts dans le fichier deployerConfigContext.xml du cas bundle :
Bloc de code title uportalcas-portletsserver-overlaywebapp\cas\src\main\webapp\WEB-INF\deployerConfigContextINFdeployerConfigContext.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 uportalcas-portletsserver-overlay\caswebapp\src\main\webapp\WEB-INF\deployerConfigContextINFdeployerConfigContext.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>
...