Commit graph

61 commits

Author SHA1 Message Date
Matthew Wild
43ff43e594 mod_saslauth: Fix traceback on attempted login for non-existent users 2009-08-05 16:31:56 +01:00
nick
f842b8417a Switch to using a more generic credentials_callback/handler for SASL auth.
Not all authentication mechanisms have the same requirements; it makes sense
to provide them only with the information they require (and for them to
depend on that) so that as many auth mechanisms as possible can be supported
with a variety of credentials-storing schemes. This commit patches that together
2009-07-24 01:34:25 +01:00
Nick Thomas
e8ed97e6d6 mod_saslauth, usermanager: Fetch list of mechanisms from usermanager 2009-07-23 22:15:06 +01:00
Matthew Wild
118883d655 Remove version number from copyright headers 2009-07-10 03:11:45 +01:00
Tobias Markmann
4ce313959b Remove to-unicode conversion because it's done in sasl.lua now. 2009-07-05 19:05:03 +02:00
Tobias Markmann
f80cf5ff59 Fixed decoding of parameters. 2009-07-05 18:59:46 +02:00
Tobias Markmann
ea7181e5b2 Making sure the node is in unicode when passing it to password lookup function. 2009-07-01 15:14:44 +02:00
Tobias Markmann
968abac469 Adding a parameter for realm to the password_callback. 2009-06-20 19:34:30 +02:00
Matthew Wild
3c73c21bfc mod_saslauth: Don't offer bind/session when they aren't authenticated yet :) [thanks albert, again...] 2009-05-29 18:03:48 +01:00
Matthew Wild
4e00f6c8b5 mod_saslauth, mod_legacyauth: Deny logins to unsecure sessions when require_encryption config option is true 2009-05-29 14:33:55 +01:00
Matthew Wild
4c6d6e419f mod_saslauth: Fix logic error which prevented SASL ANONYMOUS from working 2009-05-18 04:48:35 +01:00
Matthew Wild
5095f23e5d mod_saslauth: Remove 2 instances of raising errors and replacing with more graceful handling 2009-04-30 01:46:36 +01:00
Matthew Wild
a2b3659dd8 mod_saslauth: Various logging fixes 2009-04-30 01:39:39 +01:00
Matthew Wild
b29f3b94b8 mod_saslauth: Use module logger instead of creating a new one 2009-04-30 01:38:52 +01:00
Matthew Wild
e241b85a56 mod_*: Fix many unnecessary global accesses in modules (already committed to main repo) 2009-04-29 02:08:12 +01:00
Waqas Hussain
2365831f7d Fixed: Some nil access bugs 2009-03-30 05:26:10 +05:00
Waqas Hussain
178fbe509c Fixed: mod_saslauth: "anonymous_login" currently makes SASL ANONYMOUS an exclusive mechanism. Corrected advertised mechanisms and error replies. 2009-03-30 03:51:37 +05:00
Waqas Hussain
e48219e159 Fixed: mod_saslauth: Changed anonymous host option from "sasl_anonymous" to "anonymous_login" 2009-03-30 03:42:47 +05:00
Matthew Wild
c80f91dc02 0.3->0.4 2009-03-20 20:16:25 +00:00
Matthew Wild
90fa7296e4 mod_saslauth: Disable SASL ANONYMOUS unless explicitly enabled with sasl_anonymous = true 2009-03-07 20:17:09 +00:00
Tobias Markmann
5affd107f0 Adding inital support for ANONYMOUS mechanism in SASL. 2009-02-14 18:57:50 +01:00
Matthew Wild
c5ee166aa9 Update copyright notices for 2009 2009-01-30 17:59:26 +00:00
Matthew Wild
f2d020191f 0.2->0.3 2009-01-30 17:40:25 +00:00
Matthew Wild
bf3b96204d GPL->MIT! 2009-01-30 17:22:56 +00:00
Matthew Wild
71ae546e33 Fix invalid loglevels in mod_saslauth 2009-01-16 04:19:47 +00:00
Waqas Hussain
5e41870700 mod_saslauth, mod_tls: minor code cleanup 2009-01-13 19:37:12 +05:00
Matthew Wild
d3ad4a5123 0.1 -> 0.2 2008-12-10 15:44:03 +00:00
Waqas Hussain
2e6fcdb2d0 Latin1 support for SASL DIGEST-MD5 (second, and possibly final commit) 2008-12-08 00:18:01 +05:00
Waqas Hussain
0595c7a86c Latin1 support for SASL DIGEST-MD5 (initial commit) 2008-12-07 23:43:08 +05:00
Matthew Wild
c016526d9d Backed out changeset 099d8a102deb (committed too much) 2008-12-05 19:49:16 +00:00
Matthew Wild
0d2b952b61 Add TLS socket to readlist before handshake starts, fixes major slow-down on TLS connections 2008-12-05 19:24:01 +00:00
Waqas Hussain
7ec231373f Fix for handling latin1 encoded hostnames in SASL 2008-12-03 22:08:49 +05:00
Matthew Wild
0c5cc83112 Insert copyright/license headers 2008-12-03 14:39:07 +00:00
Waqas Hussain
631e249397 Completely switched to new hashes library from the old md5 library 2008-11-28 01:16:26 +05:00
Waqas Hussain
15153c947c Stopped using the lbase64 library 2008-11-28 00:48:16 +05:00
Matthew Wild
a153b3c267 Bumper commit for the new modulemanager API \o/ Updates all the modules, though some more changes may be in store. 2008-11-27 03:12:12 +00:00
Matthew Wild
5c7ec634b1 Use a stanza for c2s stream features instead of an array of strings. Removes a FIXME. 2008-11-20 01:33:25 +00:00
Waqas Hussain
66546f8ea8 Fixed mod_saslauth to use session.send for sending stanzas 2008-11-16 04:47:34 +05:00
Waqas Hussain
49ab3af442 Code cleanup for resource binding 2008-11-16 03:16:53 +05:00
Tobias Markmann
f2bca1da10 Providing some human readable error messages and some fixes. 2008-11-15 22:36:22 +01:00
Tobias Markmann
a06fac33d5 Made SASL module fit the new interface. 2008-11-15 22:30:09 +01:00
Waqas Hussain
f2ffc8c323 Using md5.sum rather than hashes.md5 because we don't want hexadecimal 2008-11-16 02:28:32 +05:00
Waqas Hussain
2a1ed142ab mod_saslauth: Code cleanup 2008-11-16 02:27:22 +05:00
Waqas Hussain
7c9ca1658a base64 encode the sasl responses 2008-11-16 02:10:01 +05:00
Waqas Hussain
a055e3c41b Started using realm in password hashing, and added support for error message replies from sasl 2008-11-16 01:54:14 +05:00
Matthew Wild
e9de112af3 Comment out DIGEST-MD5 until it is fully implemented 2008-11-15 19:50:22 +00:00
Tobias Markmann
35b187ca4a Merging with Waqas' code. 2008-11-15 20:28:49 +01:00
Tobias Markmann
0d8a36b732 Set username in a SASL object. 2008-11-15 20:28:09 +01:00
Waqas Hussain
1b6b09a27d Set username on SASL success 2008-11-16 00:25:28 +05:00
Tobias Markmann
564d2da8d5 Merge with Waqas changes to mod_saslauth. 2008-11-15 19:25:51 +01:00