plugins/mod_saslauth.lua

changeset 3061
c9f9b3964bb9
parent 2928
e6380fcaffda
child 3062
892c49869293
--- a/plugins/mod_saslauth.lua	Thu May 20 10:46:08 2010 +0100
+++ b/plugins/mod_saslauth.lua	Thu May 20 11:05:43 2010 +0100
@@ -45,7 +45,7 @@
 	if ok then
 		local cyrus_new = cyrus.new;
 		new_sasl = function(realm)
-			return cyrus_new(realm, module:get_option("cyrus_service_name") or "xmpp");
+			return cyrus_new(module:get_option("cyrus_service_realm") or realm, module:get_option("cyrus_service_name") or "xmpp");
 		end
 	else
 		module:log("error", "Failed to load Cyrus SASL because: %s", cyrus);

mercurial