Commit 8a1fcd11 authored by Leigh B Stoller's avatar Leigh B Stoller

Fixes for when the user's identity is the Mothership; clearly no one has

logged in via the trusted signed using their Mothership identity in a
long time.
parent 6c969dc8
......@@ -475,6 +475,7 @@ sub ProjectMembership()
else {
$url = $certificate->url();
$url =~ s/sa$/geni-sa/;
@params = ($user_urn, @params);
}
my $response =
Genixmlrpc::CallMethod($url, $context, $method, @params);
......@@ -505,8 +506,6 @@ sub ProjectMembership()
#
sub UpdatePersonalData()
{
my $isportal = 0;
#
# Load the SA cert to act as caller context.
#
......@@ -570,7 +569,6 @@ sub UpdatePersonalData()
'_GENI_MEMBER_DISPLAYNAME',
'MEMBER_LASTNAME'];
@params = ("MEMBER", $param1, $param2);
$isportal = 1;
}
elsif ($auth =~ /iminds\.be/) {
$url = $certificate->url();
......@@ -581,12 +579,12 @@ sub UpdatePersonalData()
'_EMULAB_MEMBER_FULLNAME',
'MEMBER_LASTNAME'];
@params = ("MEMBER", $param1, $param2);
$isportal = 1;
}
else {
$url = $certificate->url();
$url =~ s/sa$/geni-ma/;
$method = "lookup";
@params = ("MEMBER", $param1, $param2);
}
my $response =
Genixmlrpc::CallMethod($url, $context, $method, @params);
......
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