yammer / dropwizard-auth-ldap

Dropwizard Authentication Module for LDAP using JNDI.
Apache License 2.0
36 stars 17 forks source link

Be able to define the search scope #21

Closed pjchartre closed 6 years ago

pjchartre commented 6 years ago

Just parametrizing the SearchControls used in com.yammer.dropwizard.authenticator.LdapAuthenticator

        SearchControls searchControls = new SearchControls();
        searchControls.setSearchScope(SearchControls.SUBTREE_SCOPE);

Bad luck, I cannot override easily the class com.yammer.dropwizard.authenticator.LdapAuthenticator because all methods are private :( I had to clone quite all of this class...