Changeset

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
parents 3059:21f7a216d955
children 3062:892c49869293
files plugins/mod_saslauth.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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);