[PATCH] mod_auth_internal_plain: Fix user creation done via mod_admin_shell

37 views
Skip to first unread message

vkvo...@vivaldi.net

unread,
Mar 20, 2023, 6:47:57 PM3/20/23
to proso...@googlegroups.com
Following the behavior in auth_internal_hashed, the account will be created and
disabled, instead of returning an error telling password being nil when calling
saslprep().


prosody-contrib.patch

Matthew Wild

unread,
Mar 21, 2023, 7:29:41 AM3/21/23
to proso...@googlegroups.com
Hi,
Thanks for the patch! I've merged it with a couple of tweaks (if you
pull and evolve, it should fix any conflicts between your patch and my
changes).

- I added a reference in the commit message to the specific commit
where mod_admin_shell's behaviour changed (e.g. so it's easy to
discover exacly when the bug was introduced)
- I noted in the message that mod_auth_internal_plain doesn't actually
fully support "disabled" accounts currently
- I fixed some minor style things - we generally only use semicolons
as separators when they are at the end of a line

Congrats on your first merged contribution :)

Regards,
Matthew

Vitaly Orekhov

unread,
Mar 21, 2023, 7:40:04 AM3/21/23
to prosody-dev
Thanks, Matt!

Regarding incomplete support of enabling and disabling accounts, I was going to submit another patch that adds the missing functions right after I pushed this one, but I needed to have some sleep. :)
The patch to add them will be ready in next hour or so.

Vitaly Orekhov

unread,
Mar 21, 2023, 9:23:31 AM3/21/23
to proso...@googlegroups.com
[PATCH] mod_auth_internal_plain: Add functions to enable/disable/check
user activation

Followup to 2cb5994e3f94. Implementaion taken from auth_internal_hashed
is fully
compatible with plain one.
mod_auth_internal_plain.lua_12987.patch

Vitaly Orekhov

unread,
Dec 27, 2023, 6:10:49 AM12/27/23
to prosody-dev
[PATCH] mod_auth_internal_plain: Add functions to enable/disable/check user activation
Can this patch get merged into trunk? It's still hanging as a draft in contrib.
Reply all
Reply to author
Forward
0 new messages