32 local xmlns_stanzas ='urn:ietf:params:xml:ns:xmpp-stanzas'; |
32 local xmlns_stanzas ='urn:ietf:params:xml:ns:xmpp-stanzas'; |
33 |
33 |
34 local new_sasl = require "util.sasl".new; |
34 local new_sasl = require "util.sasl".new; |
35 |
35 |
36 local anonymous_authentication_profile = { |
36 local anonymous_authentication_profile = { |
37 anonymous = function(username, realm) |
37 anonymous = function(sasl, username, realm) |
38 return true; -- for normal usage you should always return true here |
38 return true; -- for normal usage you should always return true here |
39 end |
39 end |
40 }; |
40 }; |
41 |
41 |
42 local function build_reply(status, ret, err_msg) |
42 local function build_reply(status, ret, err_msg) |