aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2008-11-15 22:30:09 +0100
committerTobias Markmann <tm@ayena.de>2008-11-15 22:30:09 +0100
commita06fac33d5d45e318035e2d38c067281ce8eb419 (patch)
tree627222bcd94e88aa6e9f60286fad170a679f93ba /plugins
parent7c9ca1658aaf8e41dc59a2be30ca62fbfe3975fb (diff)
downloadprosody-a06fac33d5d45e318035e2d38c067281ce8eb419.tar.gz
prosody-a06fac33d5d45e318035e2d38c067281ce8eb419.zip
Made SASL module fit the new interface.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_saslauth.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/mod_saslauth.lua b/plugins/mod_saslauth.lua
index 9df39228..05c581ca 100644
--- a/plugins/mod_saslauth.lua
+++ b/plugins/mod_saslauth.lua
@@ -3,6 +3,7 @@ local st = require "util.stanza";
local send = require "core.sessionmanager".send_to_session;
local sm_bind_resource = require "core.sessionmanager".bind_resource;
local jid
+local base64 = require "base64"
local usermanager_validate_credentials = require "core.usermanager".validate_credentials;
local t_concat, t_insert = table.concat, table.insert;
@@ -101,7 +102,7 @@ add_event_hook("stream-features",
t_insert(features, "<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>");
-- TODO: Provide PLAIN only if TLS is active, this is a SHOULD from the introduction of RFC 4616. This behavior could be overridden via configuration but will issuing a warning or so.
t_insert(features, "<mechanism>PLAIN</mechanism>");
- -- t_insert(features, "<mechanism>DIGEST-MD5</mechanism>");
+ t_insert(features, "<mechanism>DIGEST-MD5</mechanism>");
t_insert(features, "</mechanisms>");
else
t_insert(features, "<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'><required/></bind>");