-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Re-Activating account fails when using SSO/SAML (with local passwords disabled) #8393
Comments
Looks like the code around here needs to be updated to handle the case of an account not needing a password. I'm unsure there's a good way to check if an account is an SSO account or not, although we do have a table of external IDs to internal IDs. Maybe existing in there is a reasonable solution? |
Note that this seems separate from #8359 in that it only affects SSO users. |
Hi, anything going on here? Or is there a workaround? |
No current plans to address this on the Element side; we would gladly accept patches. |
@clokep Hi, have the same problem. I'm ussing SSO (Shibboleht) and want to reactivate a user. Error is
Is there a workaround like changing |
hmm ... it set |
@localguru Try restarting Synapse and see if the results of the Admin API call are correct. |
@anoadragon453 okay, I will try that, can't restart a live server now. Is there another way to NULL a users password? I tried
with curl
but get an error (may be because of SSO config): And the user is still listed in |
Hmmm ... now the entry for that user in |
The cache timed out and the user got re-pulled from the database. This is what @anoadragon453 described above. |
@clokep right, after a restart of synapse the password_hash is NULL via API too. Thanks. It would be nice to have a way to set password to NULL on SSO systems or better to reactivate an account without having to set a password, if SSO is used. |
Description
Using a self-hosted server, and using SAML2/SSO for authentication with local password DB is disabled. When you deactivate an account this works, but when you try to reactivate an account via API
_synapse/admin/v2/users
by setting "deactivated" to "false" API returns error:{
"errcode": "M_UNKNOWN",
"error": "Must provide a password to re-activate an account."
}
and when you try to include a password API returns error:
{
"errcode": "M_FORBIDDEN",
"error": "Password change disabled"
}
Steps to reproduce
Version information
If not matrix.org:
Version: 1.20.0
Install method: docker images from matrixdotorg
The text was updated successfully, but these errors were encountered: