[New auth] - User status (blocked/deleted/live) #1371

Open
opened 2026-04-05 06:49:45 +02:00 by muppeth · 1 comment
Owner

We need to be able to switch between username status as we have currently on LDAP. Since we don't recycle usernames we need to be able to keep used up usernames but with purged data and information about the user (just a ghosted username). When blocking user account we should be able to disable access for the user to login but have the possibility to regain access.
Currently we implent this by creating multiple ou's and assigning users to them. This works a bit different in keycloak and so we should find better way to handle this.

We need to be able to switch between username status as we have currently on LDAP. Since we don't recycle usernames we need to be able to keep used up usernames but with purged data and information about the user (just a ghosted username). When blocking user account we should be able to disable access for the user to login but have the possibility to regain access. Currently we implent this by creating multiple ou's and assigning users to them. This works a bit different in keycloak and so we should find better way to handle this.
muppeth self-assigned this 2026-04-05 06:49:45 +02:00
Author
Owner

One of the ideas I have is rather change LDAP setup to reflect the Keycloak. Since all live users are in one realm (moving to other realms does not prevent the usernames to be re-used), we should just use attributes instead. Just like we handle legacy auth attributes, we could have both keycloak and ldap check against attribute likeuserstatus. Depending on the value the user account could be live, blocked or deleted.
This means we would need to change the following on current setup prior the switch:

  • Modify LDAP attributes for all usersnames (in all ou's)
  • Modify all auth config files for all services to check against this attribute upon login
  • Adjust scripts used for user deletion, blocking to switch the value of the attribute rather then moving to ou
  • Adjust documentation.
One of the ideas I have is rather change LDAP setup to reflect the Keycloak. Since all live users are in one realm (moving to other realms does not prevent the usernames to be re-used), we should just use attributes instead. Just like we handle legacy auth attributes, we could have both keycloak and ldap check against attribute like`userstatus`. Depending on the value the user account could be `live`, `blocked` or deleted. This means we would need to change the following on current setup prior the switch: - Modify LDAP attributes for all usersnames (in all ou's) - Modify all auth config files for all services to check against this attribute upon login - Adjust scripts used for user deletion, blocking to switch the value of the attribute rather then moving to ou - Adjust documentation.
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Disroot/Disroot-Project#1371
No description provided.