From bffd507d565f4030407dc3d998f0e7ead2b39aa7 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Thu, 12 Feb 2009 19:01:51 +0000 Subject: Cluster security support: - Set correct user ID on update connections. - Allow configuration of user, pass and mechanism used for update connections. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@743839 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/cluster/Connection.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cpp/src/qpid/cluster/Connection.cpp') diff --git a/cpp/src/qpid/cluster/Connection.cpp b/cpp/src/qpid/cluster/Connection.cpp index 4a13d24499..1a3f7c4ef7 100644 --- a/cpp/src/qpid/cluster/Connection.cpp +++ b/cpp/src/qpid/cluster/Connection.cpp @@ -253,10 +253,11 @@ void Connection::sessionState( QPID_LOG(debug, cluster << " received session state update for " << sessionState().getId()); } -void Connection::shadowReady(uint64_t memberId, uint64_t connectionId) { +void Connection::shadowReady(uint64_t memberId, uint64_t connectionId, const string& username) { ConnectionId shadow = ConnectionId(memberId, connectionId); QPID_LOG(debug, cluster << " catch-up connection " << *this << " becomes shadow " << shadow); self = shadow; + connection.setUserId(username); } void Connection::membership(const FieldTable& joiners, const FieldTable& members, uint64_t frameId) { -- cgit v1.2.1