# HG changeset patch # User Waqas Hussain # Date 1252348105 -18000 # Node ID 0372bf35dcb31142d478bf321341cd3a06309d74 # Parent 157e438823baca84410bd625cc070ae2d0180d3d# Parent 4a280effc975e28e45ab1fea290f20e4abbe4da1 Merged with Tobias diff -r 157e438823ba -r 0372bf35dcb3 plugins/mod_saslauth.lua --- 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);