Skip to content
Snippets Groups Projects
Commit b3d972ae authored by Daniele Kruse's avatar Daniele Kruse
Browse files

Added bootstrap procedures for admin and admin host in the plugin constructor

parent 52604d1d
Branches
Tags
No related merge requests found
......@@ -1633,6 +1633,9 @@ void XrdProFilesystem::EnvInfo(XrdOucEnv *envP)
// constructor
//------------------------------------------------------------------------------
XrdProFilesystem::XrdProFilesystem(cta::NameServer *ns, cta::SchedulerDatabase *scheddb): m_ns(ns), m_scheddb(scheddb), m_scheduler(new cta::Scheduler(*ns, *scheddb)) {
const cta::SecurityIdentity bootstrap_requester;
m_scheduler->createAdminUserWithoutAuthorizingRequester(bootstrap_requester, cta::UserIdentity(getuid(),getgid()), "Bootstrap operator");
m_scheduler->createAdminHostWithoutAuthorizingRequester(bootstrap_requester, "localhost", "Bootstrap operator host");
}
//------------------------------------------------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment