aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_saslauth.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-07-18 17:50:38 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-07-18 17:50:38 +0500
commit143af24d62d9f349039cb1dc37b3ec6812325a50 (patch)
treeca748f59abc38f7c1aab7b15bd606c05de674a83 /plugins/mod_saslauth.lua
parentc07f0bf11aa74a992d51c6022f9a2b92be8614d8 (diff)
downloadprosody-143af24d62d9f349039cb1dc37b3ec6812325a50.tar.gz
prosody-143af24d62d9f349039cb1dc37b3ec6812325a50.zip
mod_saslauth: Got rid of undocumented and useless 'sasl_realm' config option (was only used for anonymous auth, and that didn't make sense).
Diffstat (limited to 'plugins/mod_saslauth.lua')
-rw-r--r--plugins/mod_saslauth.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/mod_saslauth.lua b/plugins/mod_saslauth.lua
index 98a174b2..a02c1ec4 100644
--- a/plugins/mod_saslauth.lua
+++ b/plugins/mod_saslauth.lua
@@ -159,9 +159,8 @@ module:hook("stream-features", function(event)
if secure_auth_only and not origin.secure then
return;
end
- local realm = module:get_option("sasl_realm") or origin.host;
if anonymous_login then
- origin.sasl_handler = new_sasl(realm, anonymous_authentication_profile);
+ origin.sasl_handler = new_sasl(module.host, anonymous_authentication_profile);
else
origin.sasl_handler = usermanager_get_sasl_handler(module.host);
if not (module:get_option("allow_unencrypted_plain_auth")) and not origin.secure then