# HG changeset patch # User Waqas Hussain # Date 1298407006 -18000 # Node ID 8e9e5c7d97ff1edc103b9f80d05e19a777a540bc # Parent f801ce6826d5e84e4d63254c7479aa56f0294f4e mod_auth_*: Get rid of undocumented and broken 'sasl_realm' config option. diff -r f801ce6826d5 -r 8e9e5c7d97ff mod_auth_dovecot/mod_auth_dovecot.lua --- a/mod_auth_dovecot/mod_auth_dovecot.lua Wed Feb 16 22:04:55 2011 +0000 +++ b/mod_auth_dovecot/mod_auth_dovecot.lua Wed Feb 23 01:36:46 2011 +0500 @@ -208,7 +208,6 @@ end function provider.get_sasl_handler() - local realm = module:get_option("sasl_realm") or module.host; local getpass_authentication_profile = { plain_test = function(sasl, username, password, realm) local prepped_username = nodeprep(username); @@ -219,7 +218,7 @@ return usermanager.test_password(prepped_username, realm, password), true; end }; - return new_sasl(realm, getpass_authentication_profile); + return new_sasl(module.host, getpass_authentication_profile); end return provider; diff -r f801ce6826d5 -r 8e9e5c7d97ff mod_auth_external/mod_auth_external.lua --- 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) diff -r f801ce6826d5 -r 8e9e5c7d97ff mod_auth_ldap/mod_auth_ldap.lua --- a/mod_auth_ldap/mod_auth_ldap.lua Wed Feb 16 22:04:55 2011 +0000 +++ b/mod_auth_ldap/mod_auth_ldap.lua Wed Feb 23 01:36:46 2011 +0500 @@ -40,7 +40,6 @@ function provider.create_user(username, password) return nil, "Account creation/modification not available with LDAP."; 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); @@ -51,7 +50,7 @@ return provider.test_password(prepped_username, password), true; end }; - return new_sasl(realm, testpass_authentication_profile); + return new_sasl(module.host, testpass_authentication_profile); end module:add_item("auth-provider", provider);