diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_auth_anonymous.lua | 4 | ||||
-rw-r--r-- | plugins/mod_auth_cyrus.lua | 4 | ||||
-rw-r--r-- | plugins/mod_auth_internal_hashed.lua | 4 | ||||
-rw-r--r-- | plugins/mod_auth_internal_plain.lua | 4 |
4 files changed, 8 insertions, 8 deletions
diff --git a/plugins/mod_auth_anonymous.lua b/plugins/mod_auth_anonymous.lua index 761dc8a4..c27057be 100644 --- a/plugins/mod_auth_anonymous.lua +++ b/plugins/mod_auth_anonymous.lua @@ -10,7 +10,7 @@ local new_sasl = require "util.sasl".new; local datamanager = require "util.datamanager"; -- define auth provider -local provider = { name = "anonymous" }; +local provider = {}; function provider.test_password(username, password) return nil, "Password based auth not supported."; @@ -62,5 +62,5 @@ function module.unload() datamanager.remove_callback(dm_callback); end -module:add_item("auth-provider", provider); +module:provides("auth", provider); diff --git a/plugins/mod_auth_cyrus.lua b/plugins/mod_auth_cyrus.lua index 5ed124cc..7668f8c4 100644 --- a/plugins/mod_auth_cyrus.lua +++ b/plugins/mod_auth_cyrus.lua @@ -44,7 +44,7 @@ end local host = module.host; -- define auth provider -local provider = { name = "cyrus" }; +local provider = {}; log("debug", "initializing default authentication provider for host '%s'", host); function provider.test_password(username, password) @@ -80,5 +80,5 @@ function provider.get_sasl_handler() return handler; end -module:add_item("auth-provider", provider); +module:provides("auth", provider); diff --git a/plugins/mod_auth_internal_hashed.lua b/plugins/mod_auth_internal_hashed.lua index cbca6861..b61fba80 100644 --- a/plugins/mod_auth_internal_hashed.lua +++ b/plugins/mod_auth_internal_hashed.lua @@ -41,7 +41,7 @@ local iteration_count = 4096; local host = module.host; -- define auth provider -local provider = { name = "internal_hashed" }; +local provider = {}; log("debug", "initializing internal_hashed authentication provider for host '%s'", host); function provider.test_password(username, password) @@ -145,5 +145,5 @@ function provider.get_sasl_handler() return new_sasl(host, testpass_authentication_profile); end -module:add_item("auth-provider", provider); +module:provides("auth", provider); diff --git a/plugins/mod_auth_internal_plain.lua b/plugins/mod_auth_internal_plain.lua index 7705cb66..b7723dd7 100644 --- a/plugins/mod_auth_internal_plain.lua +++ b/plugins/mod_auth_internal_plain.lua @@ -15,7 +15,7 @@ local log = module._log; local host = module.host; -- define auth provider -local provider = { name = "internal_plain" }; +local provider = {}; log("debug", "initializing internal_plain authentication provider for host '%s'", host); function provider.test_password(username, password) @@ -78,5 +78,5 @@ function provider.get_sasl_handler() return new_sasl(host, getpass_authentication_profile); end -module:add_item("auth-provider", provider); +module:provides("auth", provider); |