Comparison

plugins/mod_saslauth.lua @ 291:5672d2be1bf3

Comment out DIGEST-MD5 until it is fully implemented
author Matthew Wild <mwild1@gmail.com>
date Sat, 15 Nov 2008 19:50:22 +0000
parent 289:3c8a28c1f331
child 292:33175ad2f682
comparison
equal deleted inserted replaced
290:f9b7afd42b67 291:5672d2be1bf3
99 function (session, features) 99 function (session, features)
100 if not session.username then 100 if not session.username then
101 t_insert(features, "<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>"); 101 t_insert(features, "<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>");
102 -- 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. 102 -- 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.
103 t_insert(features, "<mechanism>PLAIN</mechanism>"); 103 t_insert(features, "<mechanism>PLAIN</mechanism>");
104 t_insert(features, "<mechanism>DIGEST-MD5</mechanism>"); 104 -- t_insert(features, "<mechanism>DIGEST-MD5</mechanism>");
105 t_insert(features, "</mechanisms>"); 105 t_insert(features, "</mechanisms>");
106 else 106 else
107 t_insert(features, "<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'><required/></bind>"); 107 t_insert(features, "<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'><required/></bind>");
108 t_insert(features, "<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>"); 108 t_insert(features, "<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>");
109 end 109 end