Software /
code /
prosody
Diff
util/sasl/anonymous.lua @ 2998:36c169ed1576
Merge Tobias's fancy SASL branch->trunk
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 05 May 2010 11:29:10 +0100 |
parent | 2996:b0515ed4d9d7 |
child | 3116:90a98a6b52ac |
line wrap: on
line diff
--- a/util/sasl/anonymous.lua Wed May 05 11:25:26 2010 +0100 +++ b/util/sasl/anonymous.lua Wed May 05 11:29:10 2010 +0100 @@ -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 @@ --========================= --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