Commit graph

26 commits

Author SHA1 Message Date
Kim Alvefur
43531740f9 util: Prefix module imports with prosody namespace 2023-03-17 16:23:16 +01:00
Kim Alvefur
c11d121c06 util.sasl.{scram,plain}: Pass authzid to SASL profile callback
For potential future use.

Used for logging into a different account than the one used for
authentication.
2023-03-16 13:57:30 +01:00
Kim Alvefur
a7083d1ded util.sasl.plain: Apply saslprep to stored password
Fixes something like #1560 here too.

The password sent by the user already had saslprep applied.
2020-05-22 21:05:45 +02:00
Kim Alvefur
43b814a83b vairious: Add annotation when an empty environment is set [luacheck] 2018-02-28 20:06:26 +01:00
Kim Alvefur
c510e41dc8 util.sasl.plain,scram: Record username in sasl state earlier 2017-04-19 06:47:02 +02:00
Kim Alvefur
eaa823a597 util.*: Remove use of module() function, make all module functions local and return them in a table at the end 2015-02-21 10:36:37 +01:00
Waqas Hussain
c0d4c641f3 util.sasl.{plain,scram,digest-md5}: nodeprep username before passing to callbacks, so callbacks don't have to. 2013-01-22 08:21:05 +05:00
Waqas Hussain
2634362718 util.sasl.plain: Reduce some code. 2012-12-15 07:06:45 +05:00
Marco Cirillo
48b375eb09 util.sasl.plain: make it return "not-authorized" in case of non-existant accounts instead of "account-disabled" to avoid enumeration. 2012-05-28 15:59:10 +00:00
Matthew Wild
42e80ba893 util.sasl.*: Add 'sasl.' prefix to module names 2011-01-11 05:30:55 +00:00
Waqas Hussain
1865c2454b util.sasl.*, mod_auth_*, mod_saslauth: Pass SASL handler as first parameter to SASL profile callbacks. 2010-12-27 19:57:04 +05:00
Waqas Hussain
14b609e6ee SASL: Minor cleanup. 2010-06-03 17:48:50 +05:00
Jeff Mitchell
990ed0f0b3 Check in mod_hashpassauth -- works! 2010-05-26 18:16:58 -04:00
Tobias Markmann
1402a76285 util.sasl.plain: Typo. 2010-05-22 20:34:32 +02:00
Tobias Markmann
efc4573a0f util.sasl.plain: Removing plain_hashed authentication provider. Just do hashing and comparison yourself in a plain_test authentication provider. 2010-05-21 23:40:29 +02:00
Tobias Markmann
3a972b1742 util.sasl: 2009 -> 2010 in copyright header. 2010-03-12 18:37:51 +01:00
Tobias Markmann
965aa9476a util.sasl.plain: Adding plain_hashed authentication backend support. 2010-02-28 22:50:25 +01:00
Tobias Markmann
cb3a0cad21 util.sasl: Moving SASL authentication backends documentation to the mechanism files. 2010-02-28 22:32:12 +01:00
Waqas Hussain
7e555e0bd9 util.sasl.plain: Allow empty authzid (thanks bjc). 2009-12-01 22:32:37 +05:00
Waqas Hussain
8fcbba4b0f util.sasl.plain: A little refactoring. 2009-11-29 18:30:33 +05:00
Matthew Wild
9f1852c763 util.sasl.plain: Fail gracefully on empty <auth/> tag 2009-11-28 15:12:43 +00:00
Tobias Markmann
b32b0e118d Adding some human readable error messages. 2009-11-19 17:17:52 +01:00
Tobias Markmann
547b733736 Fail if username or password don't pass SASLprep. 2009-11-19 17:08:58 +01:00
Tobias Markmann
fd57560a96 SASLprep authentication and password in SASL PLAIN implementation. 2009-11-18 22:02:32 +01:00
Tobias Markmann
72e185fa03 Getting PLAIN mechanism work with the new API. 2009-11-13 09:21:19 +01:00
Tobias Markmann
5554c33417 Move each mechanism in an own file. 2009-11-12 21:57:37 +01:00