Comparison

plugins/mod_saslauth.lua @ 799:b7ea802f3527

Adding inital support for ANONYMOUS mechanism in SASL.
author Tobias Markmann <tm@ayena.de>
date Sat, 14 Feb 2009 18:57:50 +0100
parent 760:90ce865eebd8
child 887:eef21d7bbe04
comparison
equal deleted inserted replaced
797:6ea01e05b004 799:b7ea802f3527
104 if not session.username then 104 if not session.username then
105 features:tag("mechanisms", mechanisms_attr); 105 features:tag("mechanisms", mechanisms_attr);
106 -- 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. 106 -- 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.
107 features:tag("mechanism"):text("PLAIN"):up(); 107 features:tag("mechanism"):text("PLAIN"):up();
108 features:tag("mechanism"):text("DIGEST-MD5"):up(); 108 features:tag("mechanism"):text("DIGEST-MD5"):up();
109 features:tag("mechanism"):text("ANONYMOUS"):up();
109 features:up(); 110 features:up();
110 else 111 else
111 features:tag("bind", bind_attr):tag("required"):up():up(); 112 features:tag("bind", bind_attr):tag("required"):up():up();
112 features:tag("session", xmpp_session_attr):up(); 113 features:tag("session", xmpp_session_attr):up();
113 end 114 end