From 68cc8a77742d4abbd3badc13c56539f71434a0d2 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Wed, 25 Jun 2014 17:27:29 +0000 Subject: QPID-5849: set mechanism on management connection even if auth=no git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1605511 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/src/qpid/broker/SaslAuthenticator.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'qpid/cpp/src') diff --git a/qpid/cpp/src/qpid/broker/SaslAuthenticator.cpp b/qpid/cpp/src/qpid/broker/SaslAuthenticator.cpp index d4029de818..ec86f3b177 100644 --- a/qpid/cpp/src/qpid/broker/SaslAuthenticator.cpp +++ b/qpid/cpp/src/qpid/broker/SaslAuthenticator.cpp @@ -233,6 +233,10 @@ void NullAuthenticator::start(const string& mechanism, const string* response) { throw ConnectionForcedException("User connection denied by configured limit"); } + qmf::org::apache::qpid::broker::Connection::shared_ptr cnxMgmt = connection.getMgmtObject(); + if ( cnxMgmt ) + cnxMgmt->set_saslMechanism(mechanism); + client.tune(framing::CHANNEL_MAX, connection.getFrameMax(), 0, connection.getHeartbeatMax()); } -- cgit v1.2.1