Diff

plugins/mod_saslauth.lua @ 1484:80e4f1d731c2

Fixed decoding of parameters.
author Tobias Markmann <tm@ayena.de>
date Sun, 05 Jul 2009 18:59:46 +0200
parent 1449:6a90316a81c3
child 1486:3e04efa8af7e
line wrap: on
line diff
--- a/plugins/mod_saslauth.lua	Wed Jul 01 15:14:44 2009 +0200
+++ b/plugins/mod_saslauth.lua	Sun Jul 05 18:59:46 2009 +0200
@@ -72,7 +72,7 @@
 		if mechanism == "PLAIN" then
 			return func, password;
 		elseif mechanism == "DIGEST-MD5" then
-			if decoder then node, hostname, password = decoder(node), decoder(hostname), decoder(password); end
+			if decoder then node, realm, password = decoder(node), decoder(realm), decoder(password); end
 			return func, md5(node..":"..realm..":"..password);
 		end
 	end