Changeset

1760:0372bf35dcb3

Merged with Tobias
author Waqas Hussain <waqas20@gmail.com>
date Mon, 07 Sep 2009 23:28:25 +0500
parents 1757:157e438823ba (current diff) 1759:4a280effc975 (diff)
children 1761:4186e91a3767
files
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_saslauth.lua	Mon Sep 07 20:55:57 2009 +0500
+++ b/plugins/mod_saslauth.lua	Mon Sep 07 23:28:25 2009 +0500
@@ -84,7 +84,11 @@
 	elseif mechanism == "DIGEST-MD5" then
 		function func(x) return x; end
 		local node, domain, realm, decoder = ...;
-		local password = usermanager_get_password(node, domain);
+		local prepped_node = nodeprep(node);
+		if not prepped_node then
+			return func, nil;
+		end
+		local password = usermanager_get_password(prepped_node, domain);
 		if password then
 			if decoder then
 				node, realm, password = decoder(node), decoder(realm), decoder(password);