Skip to content
This repository has been archived by the owner on Jan 27, 2021. It is now read-only.

Extend query if searchBaseDN already is a user/group #32

Merged
merged 2 commits into from
Sep 9, 2020
Merged

Conversation

kulmann
Copy link
Contributor

@kulmann kulmann commented Sep 8, 2020

In case of the searchBaseDN already referencing a user or group, the search query was ignoring the user/group name entirely, because the searchBaseDN is not part of the LDAP filters. We fixed this by including an additional query part if the searchBaseDN contains a CN.

As a result we were fetching ALL users in glauth when trying to login a single user, because the search query was empty. This is fixed now.

@update-docs

This comment has been minimized.

Copy link
Member

@butonic butonic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@butonic butonic merged commit 796c8be into master Sep 9, 2020
@delete-merged-branch delete-merged-branch bot deleted the fix-search branch September 9, 2020 06:36
@butonic butonic added the bug Something isn't working label Sep 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants