diff options
author | Waqas Hussain <waqas20@gmail.com> | 2010-07-14 19:49:43 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2010-07-14 19:49:43 +0500 |
commit | 1e37132a58601e6a40a697928d30d38635d0af9d (patch) | |
tree | 1ce3a2e833ff6538ffa602cffa6bb9f206be8bd2 /core | |
parent | ad0a36e8d33d776f3909c724015ab1a1892ddfed (diff) | |
download | prosody-1e37132a58601e6a40a697928d30d38635d0af9d.tar.gz prosody-1e37132a58601e6a40a697928d30d38635d0af9d.zip |
usermanager: Return a non-nil SASL handler from the null auth provider (fixes a traceback).
Diffstat (limited to 'core')
-rw-r--r-- | core/usermanager.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/usermanager.lua b/core/usermanager.lua index 27f1a7df..6a2a8419 100644 --- a/core/usermanager.lua +++ b/core/usermanager.lua @@ -16,6 +16,7 @@ local hashes = require "util.hashes"; 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 @@ module "usermanager" 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) |