Commit cf9fb319 authored by wannes's avatar wannes
Browse files

Escape special chars in DN

parent 72c5145d
......@@ -111,7 +111,7 @@ public class LDAP {
if (result == 1) return true;
LDAPConnection connection = new LDAPConnection(socketFactory, host.get(), Integer.parseInt(Config.get("ldap/port", "636")));
BindResult bind = connection.bind(dn, password);
BindResult bind = connection.bind(new RDN(dn).toString(), password);
boolean success = bind.getResultCode().equals(ResultCode.SUCCESS);
return success;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment