Software /
code /
prosody
Changeset
3362:90bf162303f3
usermanager: Return a non-nil SASL handler from the null auth provider (fixes a traceback).
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Wed, 14 Jul 2010 19:49:43 +0500 |
parents | 3361:8d4e7c231d3e |
children | 3363:a4bb658d3fcb |
files | core/usermanager.lua |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/core/usermanager.lua Wed Jul 14 19:48:01 2010 +0500 +++ b/core/usermanager.lua Wed Jul 14 19:49:43 2010 +0500 @@ -16,6 +16,7 @@ local jid_bare = require "util.jid".bare; local config = require "core.configmanager"; local hosts = hosts; +local sasl_new = require "util.sasl".new; local require_provisioning = config.get("*", "core", "cyrus_require_provisioning") or false; @@ -29,7 +30,8 @@ function new_null_provider() local function dummy() end; - return setmetatable({name = "null"}, { __index = function() return dummy; end }); + local function dummy_get_sasl_handler() return sasl_new(nil, {}); end + return setmetatable({name = "null", get_sasl_handler = dummy_get_sasl_handler}, { __index = function() return dummy; end }); end function initialize_host(host)