[JETTY-1530] refine search control on ldap login module

This commit is contained in:
Jesse McConnell 2012-07-02 07:58:12 -05:00
parent b9fd07be77
commit b243d7e419
1 changed files with 1 additions and 0 deletions

View File

@ -327,6 +327,7 @@ public class LdapLoginModule extends AbstractLoginModule
SearchControls ctls = new SearchControls();
ctls.setDerefLinkFlag(true);
ctls.setSearchScope(SearchControls.SUBTREE_SCOPE);
ctls.setReturningAttributes(new String[]{_roleNameAttribute});
String filter = "(&(objectClass={0})({1}={2}))";
Object[] filterArguments = {_roleObjectClass, _roleMemberAttribute, userDn};