Mercurial > prosody-modules
diff mod_auth_ldap/mod_auth_ldap.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 |
parents | 881ec9919144 |
children | 490cb9161c81 |
line wrap: on
line diff
--- a/mod_auth_ldap/mod_auth_ldap.lua Tue Sep 18 00:29:28 2012 +0200 +++ b/mod_auth_ldap/mod_auth_ldap.lua Tue Sep 18 00:31:42 2012 +0200 @@ -19,7 +19,7 @@ end end -local provider = { name = "ldap" }; +local provider = {}; local function ldap_filter_escape(s) return (s:gsub("[\\*\\(\\)\\\\%z]", function(c) return ("\\%02x"):format(c:byte()) end)); end function provider.test_password(username, password) @@ -53,4 +53,4 @@ return new_sasl(module.host, testpass_authentication_profile); end -module:add_item("auth-provider", provider); +module:provides("auth", provider);