Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
248593cc
Commit
248593cc
authored
Sep 09, 2013
by
Leigh B Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor package fix; move Register up into GeniUser.
parent
dfa4606e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
protogeni/lib/GeniUser.pm.in
protogeni/lib/GeniUser.pm.in
+16
-16
No files found.
protogeni/lib/GeniUser.pm.in
View file @
248593cc
#
!/usr/bin/perl -wT
#
#
Copyright
(
c
)
2008
-
201
2
University
of
Utah
and
the
Flux
Group
.
#
Copyright
(
c
)
2008
-
201
3
University
of
Utah
and
the
Flux
Group
.
#
#
{{{
GENIPUBLIC
-
LICENSE
#
...
...
@@ -589,6 +589,21 @@ sub ListAll($$)
return
0
;
}
#
#
Register
this
local
user
at
the
ClearingHouse
.
#
sub
Register
($)
{
my
($
self
)
=
@
_
;
my
$
clearinghouse
=
GeniRegistry
::
ClearingHouse
->
Create
();
return
-
1
if
(
!defined($clearinghouse));
return
$
clearinghouse
->
RegisterUser
($
self
->
name
(),
$
self
->
email
(),
$
self
->
cert
());
}
############################################################################
#
#
Wrapper
for
local
users
.
...
...
@@ -659,21 +674,6 @@ sub urn($)
return
GeniHRN
::
Generate
(
"@OURDOMAIN@"
,
"user"
,
$
self
->
uid
());
}
#
#
Register
this
local
user
at
the
ClearingHouse
.
#
sub
Register
($)
{
my
($
self
)
=
@
_
;
my
$
clearinghouse
=
GeniRegistry
::
ClearingHouse
->
Create
();
return
-
1
if
(
!defined($clearinghouse));
return
$
clearinghouse
->
RegisterUser
($
self
->
name
(),
$
self
->
email
(),
$
self
->
cert
());
}
#
#
Get
the
key
bundle
for
a
local
user
,
which
are
just
sshkeys
.
#
This
function
is
intended
to
be
used
only
by
the
SA
to
get
the
...
...
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