summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/acl/AclPlugin.cpp
diff options
context:
space:
mode:
authorKim van der Riet <kpvdr@apache.org>2008-08-01 21:07:20 +0000
committerKim van der Riet <kpvdr@apache.org>2008-08-01 21:07:20 +0000
commit8ce6a530df25eae7ebf28b9897e0c6a922a7b3a4 (patch)
treeb5630846706d191bab69f3d48e41139b9d79dd1c /cpp/src/qpid/acl/AclPlugin.cpp
parent2511200dc9f3e75d2f6979b33fd94301e9b117cd (diff)
downloadqpid-python-8ce6a530df25eae7ebf28b9897e0c6a922a7b3a4.tar.gz
Initial framework for ACL reader
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@681824 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/acl/AclPlugin.cpp')
-rw-r--r--cpp/src/qpid/acl/AclPlugin.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/cpp/src/qpid/acl/AclPlugin.cpp b/cpp/src/qpid/acl/AclPlugin.cpp
index 8bc00e6a96..a025354f13 100644
--- a/cpp/src/qpid/acl/AclPlugin.cpp
+++ b/cpp/src/qpid/acl/AclPlugin.cpp
@@ -16,6 +16,7 @@
*
*/
+#include <sstream>
#include "qpid/acl/Acl.h"
#include "qpid/broker/Broker.h"
#include "qpid/Plugin.h"
@@ -61,6 +62,9 @@ struct AclPlugin : public Plugin {
return;
}
if (acl) throw Exception("ACL plugin cannot be initialized twice in one process.");
+ std::ostringstream oss;
+ oss << b.getDataDir().getPath() << "/" << values.aclFile;
+ values.aclFile = oss.str();
acl = new Acl(values, b);
b.setAcl(acl.get());
b.addFinalizer(boost::bind(&AclPlugin::shutdown, this));