Software /
code /
prosody
Diff
util/sasl_cyrus.lua @ 3467:c9f4c3aa14a1
util.sasl_cyrus: Spaces -> tabs.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Mon, 23 Aug 2010 16:42:27 +0500 |
parent | 3443:1159e007cc8f |
child | 3468:d50e2c937717 |
line wrap: on
line diff
--- a/util/sasl_cyrus.lua Mon Aug 23 16:33:49 2010 +0500 +++ b/util/sasl_cyrus.lua Mon Aug 23 16:42:27 2010 +0500 @@ -143,17 +143,17 @@ self.username = cyrussasl.get_username(self.cyrus) if (err == 0) then -- SASL_OK - return "success", data + return "success", data elseif (err == 1) then -- SASL_CONTINUE - return "challenge", data + return "challenge", data elseif (err == -4) then -- SASL_NOMECH - log("debug", "SASL mechanism not available from remote end") - return "failure", "invalid-mechanism", "SASL mechanism not available" + log("debug", "SASL mechanism not available from remote end") + return "failure", "invalid-mechanism", "SASL mechanism not available" elseif (err == -13) then -- SASL_BADAUTH - return "failure", "not-authorized", sasl_errstring[err]; + return "failure", "not-authorized", sasl_errstring[err]; else - log("debug", "Got SASL error condition %d: %s", err, sasl_errstring[err]); - return "failure", "undefined-condition", sasl_errstring[err]; + log("debug", "Got SASL error condition %d: %s", err, sasl_errstring[err]); + return "failure", "undefined-condition", sasl_errstring[err]; end end