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

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

parent 04ce67f5
No related branches found
No related tags found
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.
Finish editing this message first!
Please register or to comment