Comparison

plugins/mod_auth_internal.lua @ 3187:a475fbce1990

mod_auth_internal, mod_auth_internal_hashed: Fixed a global access.
author Waqas Hussain <waqas20@gmail.com>
date Mon, 07 Jun 2010 02:38:20 +0500
parent 3186:b5f261123013
child 3219:fd06023cbdcc
comparison
equal deleted inserted replaced
3186:b5f261123013 3187:a475fbce1990
74 if is_cyrus(host) then return nil, "Account creation/modification not available with Cyrus SASL."; end 74 if is_cyrus(host) then return nil, "Account creation/modification not available with Cyrus SASL."; end
75 return datamanager.store(username, host, "accounts", {password = password}); 75 return datamanager.store(username, host, "accounts", {password = password});
76 end 76 end
77 77
78 function provider.get_sasl_handler() 78 function provider.get_sasl_handler()
79 local realm = module:get_option("sasl_realm") or origin.host; 79 local realm = module:get_option("sasl_realm") or module.host;
80 local getpass_authentication_profile = { 80 local getpass_authentication_profile = {
81 plain = function(username, realm) 81 plain = function(username, realm)
82 local prepped_username = nodeprep(username); 82 local prepped_username = nodeprep(username);
83 if not prepped_username then 83 if not prepped_username then
84 log("debug", "NODEprep failed on username: %s", username); 84 log("debug", "NODEprep failed on username: %s", username);