<?xml version="1.0" encoding="UTF-8"?>

<!--
  - LDAP Provider configuration snippet
  -
  -->

<beans:beans xmlns="http://www.springframework.org/schema/security"
    xmlns:beans="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
                        http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security.xsd">

    <ldap-server ldif="classpath*:test-server.ldif"/>

    <authentication-manager alias="authenticationManager">
        <ldap-authentication-provider user-search-filter="(uid={0})" group-role-attribute="ou" />
    </authentication-manager>

    <ldap-user-service user-search-filter="(uid={0})" group-role-attribute="ou"/>

</beans:beans>
