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

Don't apply the group filter when listing LDAP group membership if it is empty #23745

Merged

Conversation

zeripath
Copy link
Contributor

When running listLdapGroupMemberships check if the groupFilter is empty before using it to list memberships.

Fix #23615

…is non-empty

When running listLdapGroupMemberships check if the groupFilter is empty
before using it to list memberships.

Fix go-gitea#23615

Signed-off-by: Andrew Thornton <[email protected]>
@zeripath zeripath added type/bug outdated/backport/v1.19 This PR should be backported to Gitea 1.19 labels Mar 27, 2023
@zeripath zeripath added this to the 1.20.0 milestone Mar 27, 2023
@GiteaBot GiteaBot added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label Mar 28, 2023
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Mar 28, 2023
@lunny lunny added the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label Mar 28, 2023
@lunny lunny enabled auto-merge (squash) March 29, 2023 00:19
@lunny lunny disabled auto-merge March 29, 2023 09:54
@lunny lunny merged commit ed5e7d0 into go-gitea:main Mar 29, 2023
@lunny lunny removed the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label Mar 29, 2023
GiteaBot pushed a commit to GiteaBot/gitea that referenced this pull request Mar 29, 2023
… is empty (go-gitea#23745)

When running listLdapGroupMemberships check if the groupFilter is empty
before using it to list memberships.

Fix go-gitea#23615

Signed-off-by: Andrew Thornton <[email protected]>
@GiteaBot GiteaBot added the backport/done All backports for this PR have been created label Mar 29, 2023
jolheiser pushed a commit that referenced this pull request Mar 29, 2023
… is empty (#23745) (#23788)

Backport #23745 by @zeripath

When running listLdapGroupMemberships check if the groupFilter is empty
before using it to list memberships.

Fix #23615

Signed-off-by: Andrew Thornton <[email protected]>
Co-authored-by: zeripath <[email protected]>
zjjhot added a commit to zjjhot/gitea that referenced this pull request Mar 31, 2023
* upstream/main:
  [skip ci] Updated translations via Crowdin
  Fix dropdown direction behavior (go-gitea#23806)
  Fix incorrect/Improve error handle in edit user page (go-gitea#23805)
  Fix "Updating branch by merge" bug in "update_branch_by_merge.tmpl" (go-gitea#23790)
  Fix incorrect visibility dropdown list in add/edit user page (go-gitea#23804)
  Convert issue list checkboxes to native (go-gitea#23596)
  Fix checks for `needs` in Actions (go-gitea#23789)
  Diff improvements (go-gitea#23553)
  [Patch] Fix closed PR also triggers Webhooks and actions (go-gitea#23782)
  Improve backport-locales.go (go-gitea#23807)
  [skip ci] Updated translations via Crowdin
  Refactor commit status for Actions jobs (go-gitea#23786)
  Add ONLY_SHOW_RELEVANT_REPOS back, fix explore page bug, make code more strict (go-gitea#23766)
  Don't apply the group filter when listing LDAP group membership if it is empty (go-gitea#23745)
@go-gitea go-gitea locked and limited conversation to collaborators May 3, 2023
@zeripath zeripath deleted the fix-23615-only-apply-group-filter-if-non-empty branch May 10, 2023 17:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport/done All backports for this PR have been created lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. outdated/backport/v1.19 This PR should be backported to Gitea 1.19 type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't filter groups in Windows Active Directory (LDAP BindDN Authentication)
4 participants