Software /
code /
prosody
Comparison
plugins/mod_saslauth.lua @ 3981:2b0b8fe68df2
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 | 3961:94d9fb07c49c |
child | 3983:38ec7255b111 |
comparison
equal
deleted
inserted
replaced
3980:6b2fac6602b3 | 3981:2b0b8fe68df2 |
---|---|
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) |