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

Multiple search-base-dn entries #890

Open
bitchkat opened this issue Sep 21, 2022 · 2 comments
Open

Multiple search-base-dn entries #890

bitchkat opened this issue Sep 21, 2022 · 2 comments

Comments

@bitchkat
Copy link

bitchkat commented Sep 21, 2022

Our ldap config is a bit weird and our users are in two distinct base trees. Would it be possible to specify multiple search-base-dn entries to avoid having the entire ldap hierarchy (which is a performance problem) scanned?

@bitchkat bitchkat changed the title Multiple group filters Multiple search-base-dn entries Sep 21, 2022
@bitchkat
Copy link
Author

Also, it looks like when ldap is enabled that the basic auth username is disabled so we can't use that as fallback for the handful of users in the second base tree.

@kringalf
Copy link

kringalf commented Dec 20, 2022

Hi,

I'm not sure if that is what you needed but for us this works:

we are using something like the following as the basicAuthentication.ldap.search-filter in the application.conf:
(&(objectClass=user)(sAMAccountName=$capturedLogin$)(|(memberof=CN=DevGroup,OU=Roles,OU=Groups,OU=MYORG,DC=MYCOMPANY,DC=COUNTRY)(memberof=CN=OpsGroup,OU=Roles,OU=Groups,OU=MYORG,DC=MYCOMPANY,DC=COUNTRY)))

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

No branches or pull requests

2 participants