From d7ff17002e8f865e1270fb3362b941750dcda296 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Wed, 27 May 2015 13:02:52 +0000 Subject: NO-JIRA: relax check when auth=no git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1682007 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/broker/ConnectionHandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpp') diff --git a/cpp/src/qpid/broker/ConnectionHandler.cpp b/cpp/src/qpid/broker/ConnectionHandler.cpp index 8972040be5..dc8a071b71 100644 --- a/cpp/src/qpid/broker/ConnectionHandler.cpp +++ b/cpp/src/qpid/broker/ConnectionHandler.cpp @@ -234,7 +234,7 @@ void ConnectionHandler::Handler::tuneOk(uint16_t /*channelmax*/, void ConnectionHandler::Handler::open(const string& /*virtualHost*/, const framing::Array& /*capabilities*/, bool /*insist*/) { - if (connection.getUserId().empty()) { + if (connection.getUserId().empty() && connection.getBroker().isAuthenticating()) { throw ConnectionForcedException("Not authenticated!"); } -- cgit v1.2.1