Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
4fde2353
Commit
4fde2353
authored
Jun 17, 2016
by
Leigh B Stoller
Browse files
Kill admin/stud flags on user before archiving.
parent
7d2b919c
Changes
1
Hide whitespace changes
Inline
Side-by-side
tbsetup/rmuser.in
View file @
4fde2353
#!/usr/bin/perl -wT
#
# Copyright (c) 2000-201
5
University of Utah and the Flux Group.
# Copyright (c) 2000-201
6
University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
...
...
@@ -390,6 +390,7 @@ if ($nuke) {
print
"
$target_user
has been removed!
\n
";
}
else
{
$target_user
->
Update
({'
admin
'
=>
0
,
"
stud
"
=>
0
});
$target_user
->
SetStatus
(
$
User::
USERSTATUS_ARCHIVED
)
==
0
or
fatal
("
Could not archive
$target_user
");
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment