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
e5e6aa74
Commit
e5e6aa74
authored
Feb 19, 2016
by
Leigh Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Call addkeys() with the creator of the slice, not the caller of addkeys.
parent
218b0c5a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
protogeni/lib/GeniCMV2.pm.in
protogeni/lib/GeniCMV2.pm.in
+6
-9
No files found.
protogeni/lib/GeniCMV2.pm.in
View file @
e5e6aa74
...
...
@@ -2274,19 +2274,16 @@ sub BindToSlice($)
return
GeniResponse
->
Create
(
GENIRESPONSE_FORBIDDEN
(),
undef
,
"Credential does not match the URN"
);
}
#
#
Find
or
create
the
user
.
#
my
$
user
=
GeniCM
::
CreateUserFromCertificate
($
credential
);
return
$
user
if
(
GeniResponse
::
IsResponse
($
user
));
my
$
creator
=
GeniUser
->
Lookup
($
slice
->
creator_uuid
(),
1
);
if
(
!defined($creator)) {
return
GeniResponse
->
Create
(
GENIRESPONSE_ERROR
(),
undef
,
"Could not lookup slice creator"
);
}
if
($
slice
->
Lock
()
!= 0) {
return
GeniResponse
->
BusyResponse
();
}
if
(
defined
($
keys
))
{
my
$
response
=
GeniCM
::
AddKeys
($
slice
,
$
use
r
,
$
keys
);
my
$
response
=
GeniCM
::
AddKeys
($
slice
,
$
creato
r
,
$
keys
);
if
(
GeniResponse
::
IsResponse
($
response
))
{
$
slice
->
UnLock
();
return
$
response
;
...
...
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