diff mod_auth_ldap2/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
line wrap: on
line diff
--- a/mod_auth_ldap2/mod_auth_ldap.lua	Tue Sep 18 00:29:28 2012 +0200
+++ b/mod_auth_ldap2/mod_auth_ldap.lua	Tue Sep 18 00:31:42 2012 +0200
@@ -20,7 +20,7 @@
     return;
 end
 
-local provider = { name = 'ldap' }
+local provider = {}
 
 function provider.test_password(username, password)
     return ldap.bind(username, password);
@@ -81,4 +81,4 @@
     };
 end
 
-module:add_item("auth-provider", provider);
+module:provides("auth", provider);