mod_saslauth: Allow the Cyrus SASL realm to be configurable

Thu, 20 May 2010 11:05:43 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Thu, 20 May 2010 11:05:43 +0100
changeset 3061
c9f9b3964bb9
parent 3059
21f7a216d955
child 3062
892c49869293

mod_saslauth: Allow the Cyrus SASL realm to be configurable

plugins/mod_saslauth.lua file | annotate | diff | comparison | revisions
--- 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