Commit graph

122 commits

Author SHA1 Message Date
Waqas Hussain
fa1df6cfe4 Improved the regexp used to parse the client response a bit. Authenticating with non-ascii realm values now works. 2008-11-29 05:56:09 +05:00
Tobias Markmann
8e2b0deb94 Do idna_to_ascii when building own response. 2008-11-28 18:32:54 +01:00
Waqas Hussain
631e249397 Completely switched to new hashes library from the old md5 library 2008-11-28 01:16:26 +05:00
Tobias Markmann
009fe2e38b Some ends too much. 2008-11-23 22:56:07 +01:00
Tobias Markmann
8e11baf028 Some changes to report more correct SASL failures. Support for disabled accounts. 2008-11-23 21:26:06 +01:00
Tobias Markmann
3bc6fdb526 Checking some variables for nil so no errors occur that'll break the server. 2008-11-23 20:43:42 +01:00
Tobias Markmann
74f2b0fd6f Removing some debug messages. 2008-11-16 17:31:16 +01: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
a055e3c41b Started using realm in password hashing, and added support for error message replies from sasl 2008-11-16 01:54:14 +05:00
Tobias Markmann
0d8a36b732 Set username in a SASL object. 2008-11-15 20:28:09 +01:00
Tobias Markmann
ffae5a0713 Made PLAIN method in sasl.lua module follow new interface. 2008-11-15 19:23:55 +01:00
Tobias Markmann
18e785078a Rewrote SASL Digest-MD5 responce generating code, fixed some realm related issue and tested it successfully with Psi. Thanks to dwd, remko and jake. 2008-11-12 21:38:46 +01:00
Tobias Markmann
c4d2deffc6 Forward response stanzas to sasl.lua and some other stuff. 2008-11-10 16:28:15 +01:00
Tobias Markmann
346b695b79 Fixing some parsing and some other stuff. 2008-11-09 22:45:17 +01:00
Tobias Markmann
07e0d852f5 Some early attempts on DIGEST-MD5. 2008-11-09 21:16:57 +01:00
Matthew Wild
3bac5046af Fix for using wrong auth token as username (fixes Gajim login) 2008-10-04 14:36:03 +01:00
Matthew Wild
6db3d039b3 SASL!
(but before you get too excited, no resource binding yet. And yes, there are still plenty of rough edges to the code...)
((eg. must move <stream:features> out of xmlhandlers.lua o_O ))
2008-10-02 01:08:58 +01:00
Matthew Wild
298bb340b2 Fix quoting in util/sasl.lua 2008-09-30 21:35:39 +01:00
Tobias Markmann
53b44292cb module table was missing 2008-08-26 14:11:52 +02:00
Tobias Markmann
0b6ee8b38a * missing base64 decode of SASL response 2008-08-26 01:01:13 +02:00
Tobias Markmann
a7012d4923 adding SASL lib with PLAIN support, not tested yet 2008-08-26 00:57:46 +02:00