mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-01 09:42:13 +00:00
SEC-851: Fix port number in LDAP sample.
This commit is contained in:
parent
25ba269db0
commit
859e99edf4
@ -17,20 +17,20 @@
|
|||||||
|
|
||||||
<!-- Simple namespace-based configuration -->
|
<!-- Simple namespace-based configuration -->
|
||||||
|
|
||||||
<s:ldap-server ldif="classpath:users.ldif" />
|
<s:ldap-server ldif="classpath:users.ldif" port="33389"/>
|
||||||
|
|
||||||
<s:ldap-authentication-provider
|
<s:ldap-authentication-provider
|
||||||
group-search-filter="member={0}"
|
group-search-filter="member={0}"
|
||||||
group-search-base="ou=groups"
|
group-search-base="ou=groups"
|
||||||
user-search-base="ou=people"
|
user-search-base="ou=people"
|
||||||
user-search-filter="uid={0}"
|
user-search-filter="uid={0}"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<!-- Traditional Bean version of the same configuration -->
|
<!-- Traditional Bean version of the same configuration -->
|
||||||
|
|
||||||
<!-- This bean points at the embedded directory server created by the ldap-server element above -->
|
<!-- This bean points at the embedded directory server created by the ldap-server element above -->
|
||||||
<bean id="contextSource" class="org.springframework.security.ldap.DefaultSpringSecurityContextSource">
|
<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>
|
||||||
|
|
||||||
<bean id="secondLdapProvider" class="org.springframework.security.providers.ldap.LdapAuthenticationProvider">
|
<bean id="secondLdapProvider" class="org.springframework.security.providers.ldap.LdapAuthenticationProvider">
|
||||||
@ -60,6 +60,4 @@
|
|||||||
</constructor-arg>
|
</constructor-arg>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</beans>
|
</beans>
|
Loading…
x
Reference in New Issue
Block a user