Software /
code /
prosody
Comparison
core/usermanager.lua @ 3466:4add4f9ca409
usermanager: Get rid unused Cyrus SASL related code.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Mon, 23 Aug 2010 16:33:49 +0500 |
parent | 3419:79e08dc3fd37 |
child | 3540:bc139431830b |
comparison
equal
deleted
inserted
replaced
3465:b6db1a8a78bb | 3466:4add4f9ca409 |
---|---|
15 local hashes = require "util.hashes"; | 15 local hashes = require "util.hashes"; |
16 local jid_bare = require "util.jid".bare; | 16 local jid_bare = require "util.jid".bare; |
17 local config = require "core.configmanager"; | 17 local config = require "core.configmanager"; |
18 local hosts = hosts; | 18 local hosts = hosts; |
19 local sasl_new = require "util.sasl".new; | 19 local sasl_new = require "util.sasl".new; |
20 | |
21 local require_provisioning = config.get("*", "core", "cyrus_require_provisioning") or false; | |
22 | 20 |
23 local prosody = _G.prosody; | 21 local prosody = _G.prosody; |
24 | 22 |
25 local setmetatable = setmetatable; | 23 local setmetatable = setmetatable; |
26 | 24 |
58 modulemanager.load(host, "auth_"..auth_provider); | 56 modulemanager.load(host, "auth_"..auth_provider); |
59 end | 57 end |
60 end; | 58 end; |
61 prosody.events.add_handler("host-activated", initialize_host, 100); | 59 prosody.events.add_handler("host-activated", initialize_host, 100); |
62 prosody.events.add_handler("component-activated", initialize_host, 100); | 60 prosody.events.add_handler("component-activated", initialize_host, 100); |
63 | |
64 function is_cyrus(host) return config.get(host, "core", "sasl_backend") == "cyrus"; end | |
65 | 61 |
66 function test_password(username, host, password) | 62 function test_password(username, host, password) |
67 return hosts[host].users.test_password(username, password); | 63 return hosts[host].users.test_password(username, password); |
68 end | 64 end |
69 | 65 |