mirror of
https://github.com/lldap/lldap.git
synced 2026-04-25 08:15:52 +03:00
Labels
No labels
backend
blocked
bug
cleanup
dependencies
docker
documentation
duplicate
enhancement
enhancement
frontend
github_actions
good first issue
help wanted
help wanted
integration
invalid
ldap
pull-request
question
rust
rust
tests
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/lldap-lldap#1104
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/lldap/lldap/pull/1074
Author: @broeng
Created: 1/12/2025
Status: ✅ Merged
Merged: 1/22/2025
Merged by: @nitnelave
Base:
main← Head:attrval-search-fix📝 Commits (2)
ce0e4e7server: include preserved case in user attribute value search (#1073)0a44d79Merge branch 'main' into attrval-search-fix📊 Changes
3 files changed (+132 additions, -34 deletions)
View changed files
📝
server/src/domain/ldap/group.rs(+26 -15)📝
server/src/domain/ldap/user.rs(+27 -14)📝
server/src/infra/ldap_handler.rs(+79 -5)📄 Description
Extends the generated UserRequestFilter with an OR'ed clause for the attribute value in both it's original case and lowercased.
So, where the search was previously
(attr=LOWERCASE(value))it is now basicly(|(attr=LOWERCASE(value))(attr=value)). This matters, because the DB search is case sensitive, so it was only possible to resolve attributes with lowercase values. Original behavior is still compatible.The
value => value_lcchanges are just variable renaming. Thevaluevariable, was redefined as a lowercased version of the originalvaluevariable, and was therefore shadowing the original. As I need the original unmodified value, I thought it best to restore that, and avoid the shadowing.Fixes issue #1073.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.