Software /
code /
prosody
Comparison
util/sasl_cyrus.lua @ 3175:a7f1329c5e3c
util.sasl_cyrus: Log the textual representation of unknown Cyrus SASL errors, not just the error code.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Thu, 03 Jun 2010 18:09:02 +0500 |
parent | 3063:ca149818083d |
child | 3298:94087ee7587b |
comparison
equal
deleted
inserted
replaced
3174:070424f77629 | 3175:a7f1329c5e3c |
---|---|
125 log("debug", "SASL mechanism not available from remote end") | 125 log("debug", "SASL mechanism not available from remote end") |
126 return "failure", "invalid-mechanism", "SASL mechanism not available" | 126 return "failure", "invalid-mechanism", "SASL mechanism not available" |
127 elseif (err == -13) then -- SASL_BADAUTH | 127 elseif (err == -13) then -- SASL_BADAUTH |
128 return "failure", "not-authorized", cyrussasl.get_message( self.cyrus ) | 128 return "failure", "not-authorized", cyrussasl.get_message( self.cyrus ) |
129 else | 129 else |
130 log("debug", "Got SASL error condition %d", err) | 130 log("debug", "Got SASL error condition %d: %s", err, cyrussasl.get_message( self.cyrus )) |
131 return "failure", "undefined-condition", cyrussasl.get_message( self.cyrus ) | 131 return "failure", "undefined-condition", cyrussasl.get_message( self.cyrus ) |
132 end | 132 end |
133 end | 133 end |
134 | 134 |
135 return _M; | 135 return _M; |