Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-devel
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
111
Issues
111
List
Boards
Labels
Milestones
Merge Requests
4
Merge Requests
4
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
emulab
emulab-devel
Commits
77177447
Commit
77177447
authored
Mar 06, 2012
by
Leigh Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
When we are a GENIRACK, elabman gets a real password so that GMOC can
log in and poke around.
parent
786aef4f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
account/tbacct.in
account/tbacct.in
+3
-2
No files found.
account/tbacct.in
View file @
77177447
...
...
@@ -54,6 +54,7 @@ my $MAILMANSUPPORT= @MAILMANSUPPORT@;
my
$THISHOMEBASE
=
"
@THISHOMEBASE
@
";
my
$PROTOUSER
=
'
elabman
';
my
$ELABINELAB
=
@ELABINELAB@
;
my
$GENIRACK
=
@PROTOGENI_GENIRACK@
;
my
$SAMBANODE
=
"
fs
";
# DNS makes this do the right thing in E-in-E.
my
$SMBPASSWD
=
"
/usr/local/bin/smbpasswd
";
...
...
@@ -419,7 +420,7 @@ sub AddUser()
#
# Leave the password "starred" on elabinelab; safer.
#
if
(
!
$ELABINELAB
)
{
if
(
!
$ELABINELAB
||
$GENIRACK
)
{
# shell escape.
$pswd
=~
s/\$/\\\$/g
;
$pswd
=~
s/\*/\\\*/g
;
...
...
@@ -679,7 +680,7 @@ sub UpdatePassword()
# Change on ops only if there is a real account there.
# For ELABINELAB, safer to leave the password "starred".
#
if
(
!
$wikionly
&&
!
$ELABINELAB
)
{
if
(
!
$wikionly
&&
(
!
$ELABINELAB
||
$GENIRACK
)
)
{
#
# Grab from the DB to avoid taint checking sillyness.
#
...
...
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