|
@@ -17,20 +17,20 @@
|
|
|
|
|
|
<!-- Simple namespace-based configuration -->
|
|
|
|
|
|
- <s:ldap-server ldif="classpath:users.ldif" />
|
|
|
-
|
|
|
+ <s:ldap-server ldif="classpath:users.ldif" port="33389"/>
|
|
|
+
|
|
|
<s:ldap-authentication-provider
|
|
|
group-search-filter="member={0}"
|
|
|
group-search-base="ou=groups"
|
|
|
user-search-base="ou=people"
|
|
|
user-search-filter="uid={0}"
|
|
|
/>
|
|
|
-
|
|
|
+
|
|
|
<!-- Traditional Bean version of the same configuration -->
|
|
|
|
|
|
<!-- This bean points at the embedded directory server created by the ldap-server element above -->
|
|
|
<bean id="contextSource" class="org.springframework.security.ldap.DefaultSpringSecurityContextSource">
|
|
|
- <constructor-arg value="ldap://localhost:389/dc=springframework,dc=org"/>
|
|
|
+ <constructor-arg value="ldap://localhost:33389/dc=springframework,dc=org"/>
|
|
|
</bean>
|
|
|
|
|
|
<bean id="secondLdapProvider" class="org.springframework.security.providers.ldap.LdapAuthenticationProvider">
|
|
@@ -60,6 +60,4 @@
|
|
|
</constructor-arg>
|
|
|
</bean>
|
|
|
|
|
|
-
|
|
|
-
|
|
|
</beans>
|