summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorCharles E. Rolke <chug@apache.org>2013-04-19 22:13:11 +0000
committerCharles E. Rolke <chug@apache.org>2013-04-19 22:13:11 +0000
commitffbebdca0eee8af610a9278ec5666cb43d4e2f8a (patch)
treee76f100e9dfd1f608f781094f26c69c116c60eba /cpp/src
parent9a51f3705ee74d81869c1d40a6776799e2e2eca4 (diff)
downloadqpid-python-ffbebdca0eee8af610a9278ec5666cb43d4e2f8a.tar.gz
QPID-4757: C++ Broker report sasldb failures more clearly when problem may be a permission issue.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1470065 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/qpid/broker/SaslAuthenticator.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/cpp/src/qpid/broker/SaslAuthenticator.cpp b/cpp/src/qpid/broker/SaslAuthenticator.cpp
index 8211657e04..7ab0f7f21d 100644
--- a/cpp/src/qpid/broker/SaslAuthenticator.cpp
+++ b/cpp/src/qpid/broker/SaslAuthenticator.cpp
@@ -469,6 +469,13 @@ void CyrusAuthenticator::processAuthenticationStep(int code, const char *challen
std::string errordetail = sasl_errdetail(sasl_conn);
if (!getUsername(uid)) {
QPID_LOG(info, "SASL: Authentication failed (no username available yet):" << errordetail);
+ } else if (SASL_NOUSER == code) {
+ // SASL_NOUSER is returned when either:
+ // - the user name supplied was not in the sasl db or
+ // - the sasl db could not be read
+ // - because of file permissions or
+ // - because the file was not found
+ QPID_LOG(info, "SASL: Authentication failed. User not found or sasldb not accessible.(" << code << ") for " << uid);
} else {
QPID_LOG(info, "SASL: Authentication failed for " << uid << ":" << errordetail);
}