-
Notifications
You must be signed in to change notification settings - Fork 5
/
extraConfigContext.xml.sample
39 lines (32 loc) · 1.34 KB
/
extraConfigContext.xml.sample
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
<!--
Extra configuration that may be needed for particular directory environments.
-->
<bean id="authnConnectionConfig" parent="baseConnectionConfig" />
<bean id="resolverConnectionConfig" parent="baseConnectionConfig"
p:sslConfig-ref="resolverSslConfig"
p:bindSaslConfig-ref="resolverSaslConfig" />
<bean id="resolverSslConfig" class="org.ldaptive.ssl.SslConfig">
<property name="credentialConfig">
<bean class="org.ldaptive.ssl.KeyStoreCredentialConfig"
p:keyStore="file:/path/to/keystore"
p:keyStoreType="JKS"
p:keyStorePassword="changeit" />
</property>
</bean>
<bean id="resolverSaslConfig" class="org.ldaptive.sasl.SaslConfig"
p:mechanism="EXTERNAL" />
<util:list id="resolverAttributeList">
<value>uid</value>
<value>eduPersonAffiliation</value>
<value>member</value>
</util:list>
<util:map id="resolverAttributeMapping">
<entry key="eduPersonAffiliation" value="ePA" />
</util:map>
</beans>