Commit 6350e461 authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Prevent new registration if PROTOGENI_DOMAIN is not set!

parent 3a863c9b
......@@ -90,6 +90,11 @@ sub GetCredential($)
"Could not find URL in the certificate")
if (!defined($url));
if ($certificate->hrn() =~ /^unknown/i) {
return GeniResponse->Create(GENIRESPONSE_BADARGS, undef,
"Please define PROTOGENI_DOMAIN");
}
#
# Check for an existing authority.
#
......@@ -533,6 +538,11 @@ sub Register($)
"Could not find URL in the certificate")
if (!defined($url));
if ($certificate->hrn() =~ /^unknown/i) {
return GeniResponse->Create(GENIRESPONSE_BADARGS, undef,
"Please define PROTOGENI_DOMAIN");
}
SENDMAIL($TBOPS, "ProtoGeni Authority Registration",
$certificate->asText());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment