mod_saslauth: Get rid of the sasl_backend option (use auth modules instead).
authorWaqas Hussain <waqas20@gmail.com>
Mon, 23 Aug 2010 16:28:06 +0500
changeset 3464 72cd7a785014
parent 3463 1644ab13a4ca
child 3465 b6db1a8a78bb
mod_saslauth: Get rid of the sasl_backend option (use auth modules instead).
plugins/mod_saslauth.lua
--- a/plugins/mod_saslauth.lua	Mon Aug 23 16:22:58 2010 +0500
+++ b/plugins/mod_saslauth.lua	Mon Aug 23 16:28:06 2010 +0500
@@ -20,7 +20,6 @@
 local tostring = tostring;
 
 local secure_auth_only = module:get_option("c2s_require_encryption") or module:get_option("require_encryption");
-local sasl_backend = module:get_option("sasl_backend") or "builtin";
 local anonymous_login = module:get_option("anonymous_login");
 local allow_unencrypted_plain_auth = module:get_option("allow_unencrypted_plain_auth")
 
@@ -34,10 +33,6 @@
 local xmlns_stanzas ='urn:ietf:params:xml:ns:xmpp-stanzas';
 
 local new_sasl = require "util.sasl".new;
-if sasl_backend ~= "builtin" then
-	module:log("error", "Unknown SASL backend: %s", sasl_backend);
-	error("Unknown SASL backend");
-end
 
 local anonymous_authentication_profile = {
 	anonymous = function(username, realm)