mirror of
https://github.com/lldap/lldap.git
synced 2026-04-25 08:15:52 +03:00
[PR #1297] [MERGED] ldap: normalize base DN in LdapInfo, reduce memory usage #1241
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#1241
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/1297
Author: @nitnelave
Created: 9/16/2025
Status: ✅ Merged
Merged: 9/16/2025
Merged by: @nitnelave
Base:
main← Head:ldap_info📝 Commits (1)
b86501dldap: normalize base DN in LdapInfo, reduce memory usage📊 Changes
5 files changed (+63 additions, -59 deletions)
View changed files
📝
crates/ldap/src/core/utils.rs(+27 -0)📝
crates/ldap/src/handler.rs(+14 -24)📝
crates/ldap/src/lib.rs(+1 -1)📝
crates/ldap/src/search.rs(+1 -2)📝
server/src/ldap_server.rs(+20 -32)📄 Description
By making it a &'static, we can have a single allocation for all the threads/async contexts.
This also normalizes the whitespace from the user input; a trailing \n can cause weird issues with clients
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.