fix: Allow using LDAP passwords in UIAA #1226
No reviewers
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
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
continuwuation/continuwuity!1226
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "jade/fix-ldap-uiaa"
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?
Fixes #1131
816f487766fb09b700ceDo any of us have a way to test this?
Nope, but it looks like it should work to me. ideally @Clubs or one of the otehr users who reported this could test it
Attempted to make a dockerfile to give it a check, and still getting the error. I can check back when I'm less sleepy to see if my steps for setting up the image and compose files were flawed. However as of right now, it seems like there may still be an issue. I can also double check to make sure I didn't configure something wrong with LDAP either, and see if I can't figure out some more on my end
Okay scratch that kinda, it works if the LDAP name and mxid local part are an exact match. The configuration being used over here with LDAP has uppercase characters in the names used at login, but that are lowercase with the mxids, which means one of the checks fails, and that leads to an m_forbidden due to an access token and user id mismatch. Changing the name of a user to lowercase in the LDAP setup fixes the issue and it works as intended. I'm unsure if thats considered a misconfiguration of the LDAP config, or if thats something that user id/access token validation is supposed to take into account
@Clubs wrote in #1226 (comment):
There's not really a way for Continuwuity's validation to take this into account because it always searches for the lowercase mxid and can't guess how it might be capitalized on the LDAP side.
@ginger wrote in #1226 (comment):
Yeah, definitely feels like more of a configuration issue than a Continuwuity issue at this point. I'll do some reconfiguring of our LDAP setup on my end, which should let me check in with some other users as well. The only thing I'd suggest on this front is maybe a note about case being important somewhere, but I also don't know how much that would occur in the wild to begin with. Thank y'all so much for this
Can confirm that changing the casing has made it work for me and some of the other users with our ldap setup that were having the issue under this fix. Thank y'all so much
fb09b700cecdc53b3421