Author: chug Date: Fri Apr 19 22:13:11 2013 New Revision: 1470065 URL: http://svn.apache.org/r1470065 Log: QPID-4757: C++ Broker report sasldb failures more clearly when problem may be a permission issue.
Modified: qpid/trunk/qpid/cpp/src/qpid/broker/SaslAuthenticator.cpp Modified: qpid/trunk/qpid/cpp/src/qpid/broker/SaslAuthenticator.cpp URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/broker/SaslAuthenticator.cpp?rev=1470065&r1=1470064&r2=1470065&view=diff ============================================================================== --- qpid/trunk/qpid/cpp/src/qpid/broker/SaslAuthenticator.cpp (original) +++ qpid/trunk/qpid/cpp/src/qpid/broker/SaslAuthenticator.cpp Fri Apr 19 22:13:11 2013 @@ -469,6 +469,13 @@ void CyrusAuthenticator::processAuthenti 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); } --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org For additional commands, e-mail: commits-h...@qpid.apache.org