1
0
mirror of synced 2026-05-22 21:33:16 +00:00

Set LDAP Samples to Use Zero Port

Issue gh-8762
This commit is contained in:
Josh Cummings
2020-09-26 15:17:52 -06:00
parent bcfbd2dee5
commit c0378b9d35
2 changed files with 4 additions and 3 deletions
@@ -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