-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Activating a user without setting a password is a valid user case #39
Conversation
Activating users in an SSO environment is a valid operation even when not providing a password. We shouldn't require a password to be set in those cases.
Hi, thanks a lot for the pull.
So what you are suggesting is actually well documented here. My bad. Thanks a lot for the hint! I did not test it yet and also not investigate thoroughly but maybe you know already: On reactivation, does the password that was set prior to deactivation still exist and is valid after the activation? Or would we now have a user that has no password set, and is also allowed to login without one? The latter would be a case I'd like to prevent/warn about. |
A new password is required as the password hash is wiped on deactivation: https://github.com/matrix-org/synapse/blob/c1ddbbde4fb948cf740d4c59869157943d3711c6/synapse/handlers/deactivate_account.py#L122 |
Please be so kind and spit out a warning to the user when no password is set on re-activation. State that this usually is ok in SSO environments. Or something like that. |
hi @andir maybe you didn't get notified because of github notification setting, thus direct mention. |
I got the notification and I'll get to it as as soon as I can.
On 25 July 2021 17:15:11 CEST, J0J0 T ***@***.***> wrote:
hi @andir maybe you didn't get notified because of github notification setting, thus direct mention.
HTH
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#39 (comment)
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
|
Hi @andir, can I assist with anything to get this patch merged? |
Hi @andir I hope you don't mind if I merge this and add a warning as suggested? Thanks for the pull. |
On 22:22 04.10.21, J0J0 T wrote:
Hi @andir I hope you don't mind if I merge this and add a warning as suggested? Thanks for the pull.
Yes, please go ahead. I currently don't have the resources to pick this
back up.
|
- Log a warning when 'user modify --activate' is issued without setting a password (but don't quit synadm). - This fixes allowing silently activating passwordless users, instroduced in PR #39. - In batch mode though, the warning is not logged and the command still is silently accepted!
@andir Never got back to this. Wanted to note: I noticed that on my prod Synapse (latest stable) the API itself spits out an error/a note that a user can't be activate when no password is passed. Thus I didn't merge commit 333166d because it's redundant. On your systems, where SSO is enabled, what is the behaviour there? |
Activating users in an SSO environment is a valid operation even when not providing a password. We shouldn't require a password to be set in those cases.