SEC-2308: DefaultSpringSecurityContextSource allow empty baseUrl

This commit is contained in:
Rob Winch
2013-09-13 15:53:35 -07:00
parent f6587c8697
commit b4cbcee7f0
2 changed files with 14 additions and 3 deletions

View File

@@ -123,9 +123,6 @@ public class DefaultSpringSecurityContextSource extends LdapContextSource {
if ("".equals(trimmedUrl)) {
continue;
}
if (trimmedUrl.contains(trimmedBaseDn)) {
throw new IllegalArgumentException("LDAP URL string must not include the base DN! '" + trimmedUrl + "'");
}
providerUrl.append(trimmedUrl);
if (! trimmedUrl.endsWith("/")) {