Hi, I have successfully got things working with one of my servers. Now I'm trying to hit multiple ldap servers and having no luck.
Here is my spring context:
Am I doing something wrong with my urls property of the contextSource?Code:<!-- Define the ldap context source --> <bean id="contextSource" class="org.springframework.ldap.support.LdapContextSource"> <property name="urls" value="ldap://10.71.200.11:389, ldap://10.91.200.11:389"/> <property name="authenticationSource" ref="authenticationSource"/> </bean> <!-- Define our authentication source --> <bean id="authenticationSource" class="org.springframework.ldap.support.authentication.DefaultValuesAuthenticationSourceDecorator"> <property name="target" ref="threadLocalAuthenticationSource"/> <property name="defaultUser" value="manager"/> <property name="defaultPassword" value="secret"/> </bean> <bean id="threadLocalAuthenticationSource" class="com.edlending.spring.ThreadLocalAuthenticationSource"/> <!-- Define the LdapTemplate --> <bean id="ldapOperations" class="org.springframework.ldap.LdapTemplate"> <constructor-arg ref="contextSource"/> <property name="ignorePartialResultException" value="true"/> </bean>
Thanks in advance.


Reply With Quote