Diff

plugins/mod_saslauth.lua @ 3061:c9f9b3964bb9

mod_saslauth: Allow the Cyrus SASL realm to be configurable
author Matthew Wild <mwild1@gmail.com>
date Thu, 20 May 2010 11:05:43 +0100
parent 2928:e6380fcaffda
child 3062:892c49869293
line wrap: on
line diff
--- 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);