Issue gh-8762
@@ -29,7 +29,8 @@ public class SecurityConfig {
auth
.ldapAuthentication()
.userDnPatterns("uid={0},ou=people")
- .groupSearchBase("ou=groups");
+ .groupSearchBase("ou=groups")
+ .contextSource().port(0);
}
// @formatter:on
-}
+}
@@ -17,7 +17,7 @@
<!-- Simple namespace-based configuration -->
- <s:ldap-server ldif="classpath:users.ldif"/>
+ <s:ldap-server ldif="classpath:users.ldif" port="0"/>
<s:authentication-manager>
<s:ldap-authentication-provider