Diff

mod_auth_external/mod_auth_external.lua @ 342:8e9e5c7d97ff

mod_auth_*: Get rid of undocumented and broken 'sasl_realm' config option.
author Waqas Hussain <waqas20@gmail.com>
date Wed, 23 Feb 2011 01:36:46 +0500
parent 305:4c3abf1a9b5a
child 814:881ec9919144
line wrap: on
line diff
--- a/mod_auth_external/mod_auth_external.lua	Wed Feb 16 22:04:55 2011 +0000
+++ b/mod_auth_external/mod_auth_external.lua	Wed Feb 23 01:36:46 2011 +0500
@@ -111,7 +111,6 @@
 	function provider.create_user(username, password) return nil, "Account creation/modification not available."; end
 	
 	function provider.get_sasl_handler()
-		local realm = module:get_option("sasl_realm") or module.host;
 		local testpass_authentication_profile = {
 			plain_test = function(sasl, username, password, realm)
 				local prepped_username = nodeprep(username);
@@ -122,7 +121,7 @@
 				return usermanager.test_password(prepped_username, realm, password), true;
 			end,
 		};
-		return new_sasl(realm, testpass_authentication_profile);
+		return new_sasl(module.host, testpass_authentication_profile);
 	end
 
 	function provider.is_admin(jid)