Software /
code /
prosody-modules
Comparison
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 |
comparison
equal
deleted
inserted
replaced
830:f160166612c2 | 831:0c3638673464 |
---|---|
46 table.insert(m, k); | 46 table.insert(m, k); |
47 end | 47 end |
48 log("debug", "Mechanims found: %s", table.concat(m, ", ")); | 48 log("debug", "Mechanims found: %s", table.concat(m, ", ")); |
49 end | 49 end |
50 | 50 |
51 provider = { | 51 provider = {}; |
52 name = module.name:gsub("^auth_",""); | |
53 }; | |
54 | 52 |
55 function provider.test_password(username, password) | 53 function provider.test_password(username, password) |
56 return new_sasl(module.host):plain_test(username, password); | 54 return new_sasl(module.host):plain_test(username, password); |
57 end | 55 end |
58 | 56 |
88 end | 86 end |
89 | 87 |
90 provider.get_sasl_handler = nil | 88 provider.get_sasl_handler = nil |
91 end | 89 end |
92 | 90 |
93 module:add_item("auth-provider", provider); | 91 module:provides("auth", provider); |
94 | 92 |