spring-ldap-test.xml 949 B

12345678910111213141516171819202122
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <beans xmlns="http://www.springframework.org/schema/beans"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xmlns:ldap="http://www.springframework.org/schema/ldap"
  5. xsi:schemaLocation="http://www.springframework.org/schema/beans
  6. https://www.springframework.org/schema/beans/spring-beans.xsd
  7. http://www.springframework.org/schema/ldap
  8. https://www.springframework.org/schema/ldap/spring-ldap.xsd">
  9. <ldap:context-source
  10. url="ldap://localhost:10389"
  11. base="ou=yiidata,dc=yiidata,dc=com"
  12. username="uid=admin,ou=system"
  13. password="secret" />
  14. <ldap:ldap-template id="ldapTemplate" />
  15. <bean id="personRepo" class="com.primeton.poctag.service.ldap.impl.PersonRepoImpl">
  16. <property name="ldapTemplate" ref="ldapTemplate" />
  17. </bean>
  18. </beans>