mod_auth_ldap/mod_auth_ldap.lua
changeset 814 881ec9919144
parent 342 8e9e5c7d97ff
child 902 490cb9161c81
--- a/mod_auth_ldap/mod_auth_ldap.lua	Wed Sep 12 23:58:01 2012 +0500
+++ b/mod_auth_ldap/mod_auth_ldap.lua	Thu Sep 13 00:08:29 2012 +0500
@@ -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);