a401352e51891b092a7266635396791206535e17
Benjamin Renard Added ldap-auth.xml file fr...

Benjamin Renard authored 9 years ago

1) <?xml version="1.0" encoding="UTF-8"?>
2) <!--
3) 	| deployerConfigContext.xml centralizes into one file some of the declarative configuration that
4) 	| all CAS deployers will need to modify.
5) 	|
6) 	| This file declares some of the Spring-managed JavaBeans that make up a CAS deployment.  
7) 	| The beans declared in this file are instantiated at context initialization time by the Spring 
8) 	| ContextLoaderListener declared in web.xml.  It finds this file because this
9) 	| file is among those declared in the context parameter "contextConfigLocation".
10) 	|
11) 	| By far the most common change you will need to make in this file is to change the last bean
12) 	| declaration to replace the default SimpleTestUsernamePasswordAuthenticationHandler with
13) 	| one implementing your approach for authenticating usernames and passwords.
14) 	+-->
15) <beans xmlns="http://www.springframework.org/schema/beans"
16)        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
17)        xmlns:p="http://www.springframework.org/schema/p"
18)        xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
19) 	
20) 	<!--
21) 		|    LDAP authentication.
22) 	+-->
Benjamin Renard Created independent bean fo...

Benjamin Renard authored 9 years ago

23) 	<bean id="contextSource" class="org.springframework.ldap.core.support.LdapContextSource">
24) 		<property name="anonymousReadOnly" value="false" />
25) 		<property name="pooled" value="false" />
26) 		<property name="urls">
27) 			<list>
28) 				<value>${ldap.host.1}</value>
29) 				<value>${ldap.host.2}</value>
30) 			</list>
31) 		</property>
32) 		<property name="baseEnvironmentProperties">
33) 			<map>
34) 				<!-- 
35) 				<entry>
36) 				    <key><value>java.naming.security.protocol</value></key>
37) 				<value>ssl</value>
38) 			</entry>
39) 			-->
40) 				<entry>
41) 					<key><value>java.naming.security.authentication</value></key>
42) 					<value>simple</value>
43) 				</entry>
44) 			</map>
45) 		</property>
46) 	</bean>
Benjamin Renard Added ldap-auth.xml file fr...

Benjamin Renard authored 9 years ago

47) 	<bean id="ldapHandler" class="org.jasig.cas.adaptors.ldap.FastBindLdapAuthenticationHandler" lazy-init="true">
48) 		<property name="filter" value="${ldap.basedn}" />
Benjamin Renard Created independent bean fo...

Benjamin Renard authored 9 years ago

49) 		<property name="contextSource" ref="contextSource" />
Benjamin Renard Added ldap-auth.xml file fr...

Benjamin Renard authored 9 years ago

50) 	</bean>