Comparison

plugins/mod_saslauth.lua @ 2418:c35deaea53b9

mod_saslauth: Oops.
author Paul Aurich <paul@darkrain42.org>
date Sun, 03 Jan 2010 10:07:20 -0800
parent 2415:eb383f58624b
child 2450:03bb0e6d87d5
comparison
equal deleted inserted replaced
2417:70f65a48f05e 2418:c35deaea53b9
39 cyrus_new = require "util.sasl_cyrus".new; 39 cyrus_new = require "util.sasl_cyrus".new;
40 new_sasl = function(realm) 40 new_sasl = function(realm)
41 return cyrus_new(realm, module:get_option("cyrus_service_name") or "xmpp") 41 return cyrus_new(realm, module:get_option("cyrus_service_name") or "xmpp")
42 end 42 end
43 else 43 else
44 if sasl_backend ~= "backend" then log("warning", "Unknown SASL backend %s", sasl_backend) end; 44 if sasl_backend ~= "builtin" then module:log("warn", "Unknown SASL backend %s", sasl_backend) end;
45 new_sasl = require "util.sasl".new; 45 new_sasl = require "util.sasl".new;
46 end 46 end
47 47
48 default_authentication_profile = { 48 default_authentication_profile = {
49 plain = function(username, realm) 49 plain = function(username, realm)