Software /
code /
prosody
Comparison
plugins/mod_auth_cyrus.lua @ 5117:2c7e1ce8f482
mod_auth_*: Use module:provides().
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Wed, 12 Sep 2012 21:41:51 +0500 |
parent | 5115:3939960b3c07 |
child | 8054:0ba461b7d9af |
comparison
equal
deleted
inserted
replaced
5116:5f9066db1b4d | 5117:2c7e1ce8f482 |
---|---|
42 end | 42 end |
43 | 43 |
44 local host = module.host; | 44 local host = module.host; |
45 | 45 |
46 -- define auth provider | 46 -- define auth provider |
47 local provider = { name = "cyrus" }; | 47 local provider = {}; |
48 log("debug", "initializing default authentication provider for host '%s'", host); | 48 log("debug", "initializing default authentication provider for host '%s'", host); |
49 | 49 |
50 function provider.test_password(username, password) | 50 function provider.test_password(username, password) |
51 return nil, "Legacy auth not supported with Cyrus SASL."; | 51 return nil, "Legacy auth not supported with Cyrus SASL."; |
52 end | 52 end |
78 end | 78 end |
79 end | 79 end |
80 return handler; | 80 return handler; |
81 end | 81 end |
82 | 82 |
83 module:add_item("auth-provider", provider); | 83 module:provides("auth", provider); |
84 | 84 |