mirror of
https://github.com/lldap/lldap.git
synced 2026-04-25 16:25:55 +03:00
[GH-ISSUE #1231] meta: Inconsistent user/group IDs #435
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#435
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 @selfhoster1312 on GitHub (Jul 22, 2025).
Original GitHub issue: https://github.com/lldap/lldap/issues/1231
When reading through the code, i was confused with
UserIdandGroupId:UserIdis a stringy value with a unique constraint… it can contain anything including spacesGroupIdis an incrementing counterBoth Group and User also have a
display_nameand auuid.I first encountered this when i created a user with an id containing
@likeuser@foo.com. What's confusing about it:User nameto set the IDDisplay nameinput in the form for free-form text ; the only difference is that Display name has no indexThe problem becomes more apparent when messing around:
foo @ mywtf.net/whuthttp://localhost:17170/user/foo%20@%20mywtf.net/whutbut nothing happens/usersI'm not sure what the best action is but some notes:
@nitnelave commented on GitHub (Oct 4, 2025):
The short story is that users cannot be renamed, but groups can. The UUIDs were added later on for compatibility with systems who require that as a marker of identity of the entity (e.g. when renaming groups), because they assume that anything can be renamed.
There are some issues handling "complex" user IDs in the frontend, and there are some open issues to tighten the range of names allowed as user IDs (https://github.com/lldap/lldap/issues/239 for instance).
Though email addresses are perfectly fine, so if the frontend doesn't handle them correctly, that's a bug. Could you open a separate issue for this? I don't intend to address the underlying concern that the IDs should be of the same type, but the routing issue is indeed a bug.