mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-06 09:13:19 +03:00
🐛 Bug Report: LDAP user uuid not matching PocketID user sub . #117
Reference in New Issue
Block a user
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 @hqo998 on GitHub.
Reproduction steps
I have a user that exists in LLDAP with a uuid of
e27fea52-10ad-3430-b465-67bb43a02280 when I sync the users to PocketID, the sub token has changed to
66791b7d-035a-47b4-947e-48e595291368. I've tried changing the variable for the User Unique Identifier Attribute to different attributes but had no luck in getting them to match.
Not sure if this is even intended behaviour, quite new to SSO systems.
Expected behavior
I would expect the UUID to match the sub token.
Actual Behavior
Pocket ID sub doesn't match LDAP uuid.
Version and Environment
Pocket ID 1.6.2
Log Output
Pocket ID has pre-existing local user Charles that conflicts with LDAP, believed to be unrelated but that user as you see in the logs doesn't get updated to match LDAP
@stonith404 commented on GitHub:
Yes, this behavior is intended. The ID returned by Pocket ID gets generated by Pocket ID and doesn't get imported from LDAP.
@kmendell commented on GitHub:
This is most likley because it uses the Pocket ID
Idattribute vs theldapIDattribute. The ldapId one is what is used to identify the user from ldap in pocket id. Otherwise the ID generated by pocket id is used for the authentication.