Software /
code /
prosody-modules
Diff
mod_auth_dovecot/auth_dovecot/mod_auth_dovecot.lua @ 831:0c3638673464
Merge upstream with my local LDAP work
author | Rob Hoelz <rob@hoelz.ro> |
---|---|
date | Tue, 18 Sep 2012 00:31:42 +0200 |
parent | 814:881ec9919144 |
child | 838:c9e2beec4ef6 |
line wrap: on
line diff
--- a/mod_auth_dovecot/auth_dovecot/mod_auth_dovecot.lua Tue Sep 18 00:29:28 2012 +0200 +++ b/mod_auth_dovecot/auth_dovecot/mod_auth_dovecot.lua Tue Sep 18 00:31:42 2012 +0200 @@ -48,9 +48,7 @@ log("debug", "Mechanims found: %s", table.concat(m, ", ")); end -provider = { - name = module.name:gsub("^auth_",""); -}; +provider = {}; function provider.test_password(username, password) return new_sasl(module.host):plain_test(username, password); @@ -90,5 +88,5 @@ provider.get_sasl_handler = nil end -module:add_item("auth-provider", provider); +module:provides("auth", provider);