diff options
| author | Rajith Muditha Attapattu <rajith@apache.org> | 2008-09-25 18:40:32 +0000 |
|---|---|---|
| committer | Rajith Muditha Attapattu <rajith@apache.org> | 2008-09-25 18:40:32 +0000 |
| commit | 7f54d640ed9830ad2c5c7a328c636bb6ada9511e (patch) | |
| tree | f1f9033da752a0624cb27a3c0680d599601a5530 /cpp/src/qpid/broker/Connection.cpp | |
| parent | 3319c37b0ee80af379b51f90fa7603ceb547fba9 (diff) | |
| download | qpid-python-7f54d640ed9830ad2c5c7a328c636bb6ada9511e.tar.gz | |
This adds the user_id checking described in QPID-943.
If a user_id is supplied in message properties it will be checked against the id used for authentication.
This check is disabled for federation links.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@699047 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/Connection.cpp')
| -rw-r--r-- | cpp/src/qpid/broker/Connection.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cpp/src/qpid/broker/Connection.cpp b/cpp/src/qpid/broker/Connection.cpp index 17f58adc78..320efc42f1 100644 --- a/cpp/src/qpid/broker/Connection.cpp +++ b/cpp/src/qpid/broker/Connection.cpp @@ -157,6 +157,13 @@ void Connection::setUserId(const string& userId) mgmtObject->set_authIdentity(userId); } +void Connection::setFederationLink(bool b) +{ + ConnectionState::setFederationLink(b); + if (mgmtObject != 0) + mgmtObject->set_federationLink(b); +} + void Connection::close( ReplyCode code, const string& text, ClassId classId, MethodId methodId) { |
