Changeset

2391:521de84113da

mod_saslauth: Make service_name configurable for CyrusSASL users.
author Tobias Markmann <tm@ayena.de>
date Tue, 22 Dec 2009 20:20:37 +0100
parents 2390:4f8f9dfa22ac
children 2392:8777831706d9
files plugins/mod_saslauth.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_saslauth.lua	Tue Dec 22 19:27:19 2009 +0100
+++ b/plugins/mod_saslauth.lua	Tue Dec 22 20:20:37 2009 +0100
@@ -34,10 +34,10 @@
 local xmlns_stanzas ='urn:ietf:params:xml:ns:xmpp-stanzas';
 
 local new_sasl
-if config.get(module:get_host(), "core", "use_cyrus") then
+if config.get(module:get_host(), "core", "cyrus_service_name") then
 	cyrus_new = require "util.sasl_cyrus".new;
 	new_sasl = function(realm)
-			return cyrus_new(realm, "prosody")
+			return cyrus_new(realm, config.get(module:get_host(), "core", "cyrus_service_name"))
 		end
 else
 	new_sasl = require "util.sasl".new;