Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dCache
cta
Commits
b5b1fd33
Commit
b5b1fd33
authored
9 years ago
by
Steven Murray
Browse files
Options
Downloads
Patches
Plain Diff
Add the bootstrap method Scheduler::createAdminUserWithoutAuthorizingRequester()
parent
250d84b2
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
scheduler/Scheduler.cpp
+10
-0
10 additions, 0 deletions
scheduler/Scheduler.cpp
scheduler/Scheduler.hpp
+18
-0
18 additions, 0 deletions
scheduler/Scheduler.hpp
with
28 additions
and
0 deletions
scheduler/Scheduler.cpp
+
10
−
0
View file @
b5b1fd33
...
...
@@ -118,6 +118,16 @@ void cta::Scheduler::createAdminUser(
m_db
.
createAdminUser
(
requester
,
user
,
comment
);
}
//------------------------------------------------------------------------------
// createAdminUserWithoutAuthorizingRequester
//------------------------------------------------------------------------------
void
cta
::
Scheduler
::
createAdminUserWithoutAuthorizingRequester
(
const
SecurityIdentity
&
requester
,
const
UserIdentity
&
user
,
const
std
::
string
&
comment
)
{
m_db
.
createAdminUser
(
requester
,
user
,
comment
);
}
//------------------------------------------------------------------------------
// deleteAdminUser
//------------------------------------------------------------------------------
...
...
This diff is collapsed.
Click to expand it.
scheduler/Scheduler.hpp
+
18
−
0
View file @
b5b1fd33
...
...
@@ -147,6 +147,24 @@ public:
const
UserIdentity
&
user
,
const
std
::
string
&
comment
);
/**
* Creates the specified administrator without performing any authorisation
* checks.
*
* This method provides a way to bootstrap the list of administrators.
* This method does not perform any authorizations checks therefore please
* take any necessary precautions before calling this method.
*
* @param requester The identity of the user requesting the creation of the
* administrator.
* @param user The identity of the administrator.
* @param comment The comment describing the sministrator.
*/
void
createAdminUserWithoutAuthorizingRequester
(
const
SecurityIdentity
&
requester
,
const
UserIdentity
&
user
,
const
std
::
string
&
comment
);
/**
* Deletes the specified administrator.
*
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment