mirror of
https://github.com/lldap/lldap.git
synced 2026-04-25 00:05:50 +03:00
[PR #1254] [MERGED] Add memberOf attribute definition to LDAP schema #1212
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#1212
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/1254
Author: @nitnelave
Created: 8/20/2025
Status: ✅ Merged
Merged: 8/21/2025
Merged by: @nitnelave
Base:
main← Head:copilot-ldap📝 Commits (1)
5e2a850Add memberOf attribute definition to LDAP schema📊 Changes
1 file changed (+7 additions, -6 deletions)
View changed files
📝
crates/ldap/src/search.rs(+7 -6)📄 Description
From https://github.com/lldap/lldap/pull/1250 :
The memberOf attribute was missing from the LDAP schema definition returned by LLDAP, causing some LDAP clients (like Python's ldap3 library) to reject searches using the memberOf attribute with an LDAPAttributeError.
While the memberOf functionality worked correctly for searches and filters, the attribute was not declared in the schema's attributeTypes section, leading to client-side validation failures.
This change adds the memberOf attribute definition to the hardcoded attributes list in the LDAP schema response with:
The fix ensures LDAP clients can properly validate and use the memberOf attribute in search filters and attribute requests without schema validation errors.
Example that now works:
Fixes https://github.com/lldap/lldap/issues/1249.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.