Kim Alvefur
04f45b1afa
mod_auth_internal_{hashed,plain}: Respect flag for disabled accounts in test_password()
...
This API method is used e.g. in HTTP modules which also should respect
disabled accounts.
1 year ago
Kim Alvefur
98922d54b1
plugins: Prefix module imports with prosody namespace
3 years ago
Vitaly Orekhov
6d526798bf
mod_auth_internal_plain: Fix user creation done via mod_admin_shell
...
Following the new behavior in auth_internal_hashed (c8f59ce7d3cf), the account
will be created and disabled, instead of returning an error telling password
being nil when calling saslprep().
Note that mod_auth_internal_plain does not have full support for
enabled/disabled accounts, but that may be fixed in subsequent commits.
3 years ago
Matthew Wild
4db3d15723
usermanager, mod_auth_*: Add get_account_info() returning creation/update time
...
This is useful for a number of things. For example, listing users that need to
rotate their passwords after some event. It also provides a safer way for code
to determine that a user password has changed without needing to set a handler
for the password change event (which is a more fragile approach).
4 years ago
Matthew Wild
6a54d2d2c4
mod_auth_internal_{plain,hashed}: Use constant-time string comparison for secrets
5 years ago
Kim Alvefur
71c6728e69
mod_auth_internal_*: Apply saslprep to passwords
...
Related to #1560
6 years ago
Kim Alvefur
6132b1f72e
mod_auth_internal_plain: Rename unused self argument [luacheck]
9 years ago
Kim Alvefur
69adf36132
mod_auth_internal_plain: Remove "initializing" log message, hostmanager logs this too
13 years ago
Kim Alvefur
692e6d1221
mod_auth_internal_plain: Log a debug message when changing password to be consistent with the other methods
13 years ago
Kim Alvefur
5dc7169a08
mod_auth_internal_plain: Remove redundant hostname from log messages
13 years ago
Florian Zeitz
1d833bb807
Remove all trailing whitespace
13 years ago
Matthew Wild
3f91421f0c
mod_auth_internal_plain: Don't log passwords, even at debug level
13 years ago
Kim Alvefur
61e1281073
mod_auth_internal_hashed, mod_auth_internal_plain, mod_privacy, mod_private, mod_register, mod_vcard, mod_muc: Use module:open_store()
13 years ago
Waqas Hussain
b1f22daa93
mod_auth_internal_plain, mod_auth_internal_hashed: No need to nodeprep here.
13 years ago
Kim Alvefur
ce8ed66881
mod_auth_internal_{plain,hashed}: Add support for iterating over accounts
13 years ago
Waqas Hussain
92515e7aa6
mod_auth_*: Use module:provides().
13 years ago
Waqas Hussain
e7c19c5cb6
mod_auth_{internal_plain,cyrus,anonymous}: Get rid of useless wrapper function new_default_provider.
13 years ago
Matthew Wild
5abd2aa3e7
mod_auth_internal_plain: Remove unused imports
14 years ago
Matthew Wild
afebf2da34
mod_auth_internal_{plain,hashed}: Clarify log messages on initialization
14 years ago
Waqas Hussain
aa144af70e
util.sasl.*, mod_auth_*, mod_saslauth: Pass SASL handler as first parameter to SASL profile callbacks.
15 years ago
Waqas Hussain
9c85f1fccd
mod_auth_*: Get rid of undocumented and broken 'sasl_realm' config option.
15 years ago
Waqas Hussain
b3cc9f42df
mod_auth_*: Get rid of undocumented and broken 'sasl_realm' config option.
15 years ago
Matthew Wild
90562d1b6e
mod_auth_internal_*: Support for delete_user method
15 years ago
Matthew Wild
2e28b24183
mod_auth_internal_*: Support for delete_user method
15 years ago
Waqas Hussain
1865c2454b
util.sasl.*, mod_auth_*, mod_saslauth: Pass SASL handler as first parameter to SASL profile callbacks.
15 years ago
Waqas Hussain
348414f595
mod_auth_internal_plain: Get rid of all checks for Cyrus SASL.
16 years ago
Waqas Hussain
3d402d422e
mod_auth_*: Fixed copyright headers.
16 years ago
Matthew Wild
43f0ee7e21
mod_auth_internal, usermanager: Rename to mod_auth_internal_plain, and update usermanager to still use it as the default
16 years ago
Matthew Wild
c60ae1fda2
mod_auth_internal, mod_auth_internal_hashed: Remove checking for nil or empty password and pretending it means the user doesn't exist. Hopefully with more success than Custer.
16 years ago
Matthew Wild
067898649a
mod_auth_internal, mod_auth_internal_hashed: Remove is_admin method from providers
16 years ago
Waqas Hussain
4887ca1117
mod_auth_internal: Log as "auth_internal", not as "usermanager".
16 years ago
Matthew Wild
79fcb39d49
mod_auth_internal{,_hashed}: Update is_admin to only report the admin status of the current host (ignores global admin rights), fixes global access traceback
16 years ago
Waqas Hussain
4e378598de
mod_auth_internal, mod_auth_internal_hashed: Fixed a global access.
16 years ago
Waqas Hussain
e42b058b2b
mod_auth_internal, mod_auth_internal_hashed: Updated to provide get_sasl_handler.
16 years ago
Matthew Wild
3846f08f09
Rename mod_defaultauth -> mod_auth_internal, mod_hashpassauth -> mod_auth_internal_hashed, and the providers to internal and internal_hashed respectively. Also no longer auto-load defaultauth, but instead auto-load the plugin selected for each host at startup based on the provider name.
16 years ago
Jeff Mitchell
753e5f839b
Working defaultauth
16 years ago
Jeff Mitchell
35157928fb
Added mod_auth_default
16 years ago