Software /
code /
prosody
Comparison
util/sasl_cyrus.lua @ 2577:acb382c703e4
util.sasl_cyrus: Add text message from cyrussasl to <not-authorized/> errors.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Wed, 10 Feb 2010 01:53:38 +0500 |
parent | 2404:d7abdd6893b8 |
child | 2720:289f68e704da |
comparison
equal
deleted
inserted
replaced
2576:b70e73872c4d | 2577:acb382c703e4 |
---|---|
111 log("debug", "SASL mechanism not available from remote end") | 111 log("debug", "SASL mechanism not available from remote end") |
112 return "failure", | 112 return "failure", |
113 "undefined-condition", | 113 "undefined-condition", |
114 "SASL mechanism not available" | 114 "SASL mechanism not available" |
115 elseif (err == -13) then -- SASL_BADAUTH | 115 elseif (err == -13) then -- SASL_BADAUTH |
116 return "failure", "not-authorized" | 116 return "failure", "not-authorized", cyrussasl.get_message( self.cyrus ) |
117 else | 117 else |
118 log("debug", "Got SASL error condition %d", err) | 118 log("debug", "Got SASL error condition %d", err) |
119 return "failure", | 119 return "failure", |
120 "undefined-condition", | 120 "undefined-condition", |
121 cyrussasl.get_message( self.cyrus ) | 121 cyrussasl.get_message( self.cyrus ) |