mod_saslauth: Add support for CyrusSASL.

This commit is contained in:
Tobias Markmann 2009-12-22 19:27:19 +01:00
parent edc52a67f0
commit 8d63e6daaf

View file

@ -33,7 +33,15 @@ local xmlns_sasl ='urn:ietf:params:xml:ns:xmpp-sasl';
local xmlns_bind ='urn:ietf:params:xml:ns:xmpp-bind';
local xmlns_stanzas ='urn:ietf:params:xml:ns:xmpp-stanzas';
local new_sasl = require "util.sasl".new;
local new_sasl
if config.get(module:get_host(), "core", "use_cyrus") then
cyrus_new = require "util.sasl_cyrus".new;
new_sasl = function(realm)
return cyrus_new(realm, "prosody")
end
else
new_sasl = require "util.sasl".new;
end
default_authentication_profile = {
plain = function(username, realm)