SEC-941: Embedded ldap-server uses hard-coded ldap url for importing ldif files

http://jira.springframework.org/browse/SEC-941. Changed LdapUtils.parseRootDnFromUrl to use URI.getRawPath() so the returned root value still contains the escaping. I think this should be Ok.
This commit is contained in:
Luke Taylor 2008-07-31 19:50:08 +00:00
parent 3393ea7aaa
commit e5d86b13b7
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ public final class LdapUtils {
if (url.startsWith("ldap:") || url.startsWith("ldaps:")) {
URI uri = parseLdapUrl(url);
urlRootDn = uri.getPath();
urlRootDn = uri.getRawPath();
} else {
// Assume it's an embedded server
urlRootDn = url;