blob: b1789d42148c5d470b847edd8ffeeb61f717a779 [file] [log] [blame] [edit]
<?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-3.1.xsd">
<bean id="connectionFactory"
class="org.ldaptive.DefaultConnectionFactory"
p:connectionConfig-ref="connectionConfig"
/>
<bean id="connectionConfig"
class="org.ldaptive.ConnectionConfig"
p:ldapUrl="${ldapTestHost}"
p:useStartTLS="true"
p:sslConfig-ref="sslConfig"
p:connectionInitializer-ref="bindConnectionInitializer"
/>
<bean id="bindConnectionInitializer"
class="org.ldaptive.BindConnectionInitializer"
p:bindDn="${ldapBindDn}"
p:bindCredential="${ldapBindCredential}"
/>
<bean id="sslConfig"
class="org.ldaptive.ssl.SslConfig"
p:credentialConfig-ref="credentialConfig"
/>
<bean id="credentialConfig"
class="org.ldaptive.ssl.KeyStoreCredentialConfig"
p:keyStore="classpath:/ldaptive.keystore"
p:keyStoreType="BKS"
p:keyStorePassword="changeit"
p:trustStore="classpath:/ldaptive.truststore"
p:trustStoreType="BKS"
p:trustStorePassword="changeit"
/>
</beans>