diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-05-05 11:29:10 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-05-05 11:29:10 +0100 |
commit | a17cc3b6791eaf110ded69edbc07e41e881e036d (patch) | |
tree | ae4b02ccb9e9117eafb78c2d8c74951f6e528972 /util/sasl/anonymous.lua | |
parent | cca05af3d369ba4e53cd76f7e33196c5ee8415b4 (diff) | |
parent | b05ccd7b3affed026faf4b492d91af972f5ae8ac (diff) | |
download | prosody-a17cc3b6791eaf110ded69edbc07e41e881e036d.tar.gz prosody-a17cc3b6791eaf110ded69edbc07e41e881e036d.zip |
Merge Tobias's fancy SASL branch->trunk
Diffstat (limited to 'util/sasl/anonymous.lua')
-rw-r--r-- | util/sasl/anonymous.lua | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/util/sasl/anonymous.lua b/util/sasl/anonymous.lua index 65650294..f3e31a7f 100644 --- a/util/sasl/anonymous.lua +++ b/util/sasl/anonymous.lua @@ -1,5 +1,5 @@ -- sasl.lua v0.4 --- Copyright (C) 2008-2009 Tobias Markmann +-- Copyright (C) 2008-2010 Tobias Markmann -- -- All rights reserved. -- @@ -20,6 +20,16 @@ module "anonymous" --========================= --SASL ANONYMOUS according to RFC 4505 + +--[[ +Supported Authentication Backends + +anonymous: + function(username, realm) + return true; --for normal usage just return true; if you don't like the supplied username you can return false. + end +]] + local function anonymous(self, message) local username; repeat |