mirror of
https://github.com/lldap/lldap.git
synced 2026-04-25 08:15:52 +03:00
[GH-ISSUE #1202] [BUG] Attributes with the same name can be created with different types #430
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#430
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?
Originally created by @nitnelave on GitHub (Jul 6, 2025).
Original GitHub issue: https://github.com/lldap/lldap/issues/1202
When creating a user and group attribute, they can have different types. However, the LDAP spec requires each named attribute to have a single associated type.
To Reproduce
Create a "foo" attribute of type "string" for users.
Create a "foo" attribute of type "int" for groups.
Request the LDAP schema: the attribute will be listed twice with different names.
Expected behavior
Each attribute name should have a single associated type, across users and groups.
Additional context
https://ldap.com/attribute-types/
Proposed solution
The LDAP schema generation should check for validity of attribute types across users and groups. In case of agreement, deduplicate. In case of conflict, return an error instead of generating the schema.
In addition, we should have a startup warning on conflicting attribute, and prevent users from creating them.
@nitnelave commented on GitHub (Jul 6, 2025):
@broeng @T0byV