Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make SearchControls configurable per authorization plugin #2283

Open
vladak opened this issue Aug 9, 2018 · 0 comments
Open

make SearchControls configurable per authorization plugin #2283

vladak opened this issue Aug 9, 2018 · 0 comments

Comments

@vladak
Copy link
Member

vladak commented Aug 9, 2018

When thinking about how to make the LDAP searches more efficient w.r.t. server resources, I noticed that
LdapFacade#prepareSearchControls() uses SUBTREE_SCOPE which means it will return all object in the subtree. For searches coming from withing LdapUserPlugin it is expected that the base of the search will be set to fully qualified DN of the object therefore returning only one object, however the object might still have sub-nodes. In such case, it would be nice if the plugin can be configurable to use OBJECT_SCOPE instead (as per https://docs.oracle.com/javase/7/docs/api/javax/naming/directory/SearchControls.html).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant