Selaa lähdekoodia

SEC-851: Fix port number in LDAP sample.

Luke Taylor 17 vuotta sitten
vanhempi
commit
859e99edf4

+ 4 - 6
samples/ldap/src/main/webapp/WEB-INF/applicationContext-security.xml

@@ -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>