aboutsummaryrefslogtreecommitdiffstats
path: root/util/sasl_cyrus.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-02-10 01:53:38 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-02-10 01:53:38 +0500
commit4bf01bb76ba75e2a3e6957bddcca8ed3dbbd0d79 (patch)
treef787f457842588e8b70b60ef9eec026d68cedc28 /util/sasl_cyrus.lua
parent6d21bd8cf4706fdb0bbf67b3704756c69ae99e32 (diff)
downloadprosody-4bf01bb76ba75e2a3e6957bddcca8ed3dbbd0d79.tar.gz
prosody-4bf01bb76ba75e2a3e6957bddcca8ed3dbbd0d79.zip
util.sasl_cyrus: Add text message from cyrussasl to <not-authorized/> errors.
Diffstat (limited to 'util/sasl_cyrus.lua')
-rw-r--r--util/sasl_cyrus.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/sasl_cyrus.lua b/util/sasl_cyrus.lua
index b42bee07..57c6ba3c 100644
--- a/util/sasl_cyrus.lua
+++ b/util/sasl_cyrus.lua
@@ -113,7 +113,7 @@ function method:process(message)
"undefined-condition",
"SASL mechanism not available"
elseif (err == -13) then -- SASL_BADAUTH
- return "failure", "not-authorized"
+ return "failure", "not-authorized", cyrussasl.get_message( self.cyrus )
else
log("debug", "Got SASL error condition %d", err)
return "failure",