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
No known key found for this signature in database
GPG Key ID: 49EF60DD7FF83443
2 changed files with 4 additions and 3 deletions

View File

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

View File

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