Set LDAP Samples to Use Zero Port
Issue gh-8762
This commit is contained in:
+3
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user