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
27bac658
Commit
27bac658
authored
Jul 23, 2011
by
Leigh B Stoller
Browse files
Fix merge error; kill off UUID checks again.
parent
5dbe2c00
Changes
1
Hide whitespace changes
Inline
Side-by-side
protogeni/xmlrpc/protogeni-wrapper.pl.in
View file @
27bac658
...
...
@@ -167,25 +167,6 @@ if (exists($ENV{'PATH_INFO'}) && $ENV{'PATH_INFO'} ne "") {
}
}
#
# The UUID of the client certificate is in the env var SSL_CLIENT_S_DN_CN.
# If it actually looks like a UUID, then this correponds to an actual user,
# and the supplied credentials/tickets must match. At present, if there is
# no UUID, it is another emulab making a request directly, with no user
# context, and we just let that pass for now.
#
if
(
exists
(
$ENV
{'
SSL_CLIENT_S_DN_CN
'})
&&
$ENV
{'
SSL_CLIENT_S_DN_CN
'}
=~
/^\w+\-\w+\-\w+\-\w+\-\w+$/
)
{
$ENV
{'
GENIUSER
'}
=
$ENV
{'
SSL_CLIENT_S_DN_CN
'};
$ENV
{'
GENIUUID
'}
=
$ENV
{'
SSL_CLIENT_S_DN_CN
'};
}
elsif
(
defined
(
$MODULE
)
&&
(
$MODULE
eq
$AM_MODULE
))
{
# Do not expect a UUID if calling to the AM.
}
else
{
XMLError
(
XMLRPC_APPLICATION_ERROR
(),
"
Invalid certificate; no UUID
");
}
#
# The CERT data from apache holds the URN of the caller.
#
...
...
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