Commit 45fb7ff9 authored by Dave Cridland's avatar Dave Cridland Committed by GitHub

Merge pull request #681 from akrherz/of355

OF-355 ldap.authorizeField is ignored in LdapAuthorizationPolicy
parents 6ab854f0 052fe318
......@@ -95,7 +95,7 @@ public class LdapAuthorizationPolicy implements AuthorizationPolicy {
};
ctx = manager.getContext();
Attributes attrs = ctx.getAttributes(userDN, attributes);
Attribute authorizeField_a = attrs.get(manager.getNameField());
Attribute authorizeField_a = attrs.get(authorizeField);
if (authorizeField_a != null) {
for (Enumeration e = authorizeField_a.getAll(); e.hasMoreElements();) {
authorized.add((String)e.nextElement());
......
Markdown is supported
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