spring-ldap.xml 793 B

123456789101112131415161718192021
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
  3. <beans>
  4. <bean id="contextSource" class="org.springframework.ldap.core.support.LdapContextSource">
  5. <property name="url" value="ldap://192.168.16.XXX:389" />
  6. <property name="base"
  7. value="OU=XXX,OU=XXX,OU=XXX,OU=XXX,DC=XXX,DC=XXX,DC=XXX" />
  8. <property name="userDn" value="XXX@headquarter" />
  9. <property name="password" value="XXX" />
  10. </bean>
  11. <bean id="ldapTemplate" class="org.springframework.ldap.core.LdapTemplate">
  12. <constructor-arg ref="contextSource" />
  13. </bean>
  14. <bean id="userDao" class="com.fsm.platform.si.ldap.UserDaoLdapImpl">
  15. <property name="ldapTemplate">
  16. <ref bean="ldapTemplate" />
  17. </property>
  18. </bean>
  19. </beans>