summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Goulish <mgoulish@apache.org>2014-07-23 14:02:42 +0000
committerMichael Goulish <mgoulish@apache.org>2014-07-23 14:02:42 +0000
commitf133db428a44150f94c4d0d68f5a6e7b07deaeca (patch)
tree60a048474b341e2886f5393095beb207d27bfead
parenta9d37412e13fab6cba9edd316e913fb9c8d10ac9 (diff)
downloadqpid-python-f133db428a44150f94c4d0d68f5a6e7b07deaeca.tar.gz
QPID-5815
Checkin for Irina Boverman. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1612838 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--cpp/src/qpid/broker/SaslAuthenticator.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/cpp/src/qpid/broker/SaslAuthenticator.cpp b/cpp/src/qpid/broker/SaslAuthenticator.cpp
index 76774ec257..f68bda0b54 100644
--- a/cpp/src/qpid/broker/SaslAuthenticator.cpp
+++ b/cpp/src/qpid/broker/SaslAuthenticator.cpp
@@ -301,6 +301,11 @@ void CyrusAuthenticator::init()
SecuritySettings external = connection.getExternalSecuritySettings();
QPID_LOG(debug, "External ssf=" << external.ssf << " and auth=" << external.authid);
sasl_ssf_t external_ssf = (sasl_ssf_t) external.ssf;
+
+ if ((external_ssf) && (external.authid.empty())) {
+ QPID_LOG(warning, "SASL error: unable to offer EXTERNAL mechanism as authid cannot be determined");
+ }
+
if (external_ssf) {
int result = sasl_setprop(sasl_conn, SASL_SSF_EXTERNAL, &external_ssf);
if (result != SASL_OK) {