Commit dbf6298e authored by Jonathon Duerig's avatar Jonathon Duerig
Browse files

Return urns in the credential as well as GIDs.

parent 213c303d
......@@ -375,12 +375,14 @@ sub Sign($$)
print STDERR "No target certificate attached to $self\n";
return -1;
}
my $target_urn = $self->target_uuid();
my $target_cert = $self->target_cert()->cert();
if (!defined($self->owner_cert())) {
print STDERR "No owner certificate attached to $self\n";
return -1;
}
my $owner_urn = $self->owner_uuid();
my $owner_cert = $self->owner_cert()->cert();
# Credential expiration: hard-code to 24 hours from now.
......@@ -398,7 +400,9 @@ sub Sign($$)
" <type>privilege</type>\n".
" <serial>$idx</serial>\n".
" <owner_gid>$owner_cert</owner_gid>\n".
" <owner_urn>$owner_urn</owner_urn>\n".
" <target_gid>$target_cert</target_gid>\n".
" <target_urn>$target_urn</target_urn>\n".
" <uuid>$cred_uuid</uuid>\n".
" <expires>$expiry</expires>\n".
" $cap_xml\n".
......
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