Commit a65afce1 authored by Fredrik Roubert's avatar Fredrik Roubert Committed by Howard Chu
Browse files

ITS#9835 Always dereference LDAP aliases.

No software connecting to an LDAP database through JDBC can be expected
to know anything at all about LDAP, so no such software can be expected
to be able to do anything useful with an LDAP alias entry. LDAP aliases
must therefore always be dereferenced in the JDBC driver.
parent 245495e9
......@@ -304,6 +304,11 @@ public class JndiLdapConnection implements java.sql.Connection {
} else {
con = new LDAPConnection();
}
LDAPSearchConstraints constraints = con.getSearchConstraints();
constraints.setDereference(LDAPSearchConstraints.DEREF_ALWAYS);
con.setConstraints(constraints);
LDAPUrl ldapUrl;
......
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