Software /
code /
prosody
Comparison
plugins/mod_saslauth.lua @ 4049:fe6f4a255fd8
util.sasl.*, mod_auth_*, mod_saslauth: Pass SASL handler as first parameter to SASL profile callbacks.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Mon, 27 Dec 2010 19:57:04 +0500 |
parent | 4029:fb027b2811c2 |
child | 4051:d343a76431cf |
comparison
equal
deleted
inserted
replaced
4048:c64b0aefb922 | 4049:fe6f4a255fd8 |
---|---|
29 local xmlns_stanzas ='urn:ietf:params:xml:ns:xmpp-stanzas'; | 29 local xmlns_stanzas ='urn:ietf:params:xml:ns:xmpp-stanzas'; |
30 | 30 |
31 local new_sasl = require "util.sasl".new; | 31 local new_sasl = require "util.sasl".new; |
32 | 32 |
33 local anonymous_authentication_profile = { | 33 local anonymous_authentication_profile = { |
34 anonymous = function(username, realm) | 34 anonymous = function(sasl, username, realm) |
35 return true; -- for normal usage you should always return true here | 35 return true; -- for normal usage you should always return true here |
36 end | 36 end |
37 }; | 37 }; |
38 | 38 |
39 local function build_reply(status, ret, err_msg) | 39 local function build_reply(status, ret, err_msg) |