aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2009-12-22 20:20:37 +0100
committerTobias Markmann <tm@ayena.de>2009-12-22 20:20:37 +0100
commitdf2be014da3d14a9ce95388f1b2f3376ad82cfed (patch)
tree0da7938d8789fe199e68388ae31906d1433ba7cb
parent8d63e6daafef556c779ddc3941805443304e678a (diff)
downloadprosody-df2be014da3d14a9ce95388f1b2f3376ad82cfed.tar.gz
prosody-df2be014da3d14a9ce95388f1b2f3376ad82cfed.zip
mod_saslauth: Make service_name configurable for CyrusSASL users.
-rw-r--r--plugins/mod_saslauth.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_saslauth.lua b/plugins/mod_saslauth.lua
index 5398eae5..19ed972f 100644
--- a/plugins/mod_saslauth.lua
+++ b/plugins/mod_saslauth.lua
@@ -34,10 +34,10 @@ local xmlns_bind ='urn:ietf:params:xml:ns:xmpp-bind';
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;