LDAP Admin Checks Only Done on Login #1307
Labels
No labels
Blocked
Bug
Cherry-picking
Database
Dependencies
Dependencies/Renovate
Difficulty
Easy
Difficulty
Hard
Difficulty
Medium
Documentation
Enhancement
Good first issue
Help wanted
Inherited
Matrix/Administration
Matrix/Appservices
Matrix/Auth
Matrix/Client
Matrix/Core
Matrix/Federation
Matrix/Hydra
Matrix/MSC
Matrix/Media
Meta
Meta/CI
Meta/Packaging
Priority
Blocking
Priority
High
Priority
Low
Security
Status
Confirmed
Status
Duplicate
Status
Invalid
Status
Needs Investigation
Support
To-Merge
Wont fix
old/ci/cd
old/rust
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
continuwuation/continuwuity#1307
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?
Admin checks with LDAP users appear to be inconsistent at present. Specifically, there is a check in
/src/api/client/session.rson lines 149-153 which appear to be universally applied even when the configuration file mentions that manually assigning admin permissions would be required. This check is done and enforced even if it appears it should not be, and it is also only done on log-in. This means that manually granting a user admin permissions on continuwuity will always be temporary and revoked the next time that user logs into a new device, instead of preventing them from being elevated to admin initially, or keeping their adminship if the configuration file allows for manual assignment. Specifically:In both cases, the end result is the server stripping all existing continuwuity admins of admin power when they log in, requiring the server console or "admin execute" commands to undo the check.