Commit ff6b3ea5 authored by Jonathon Duerig's avatar Jonathon Duerig

Added owner_urn and target_urn elements to credentials help out the...

Added owner_urn and target_urn elements to credentials help out the unfortunate ActionScript users...
parent 98cdd1df
...@@ -376,12 +376,14 @@ sub Sign($$) ...@@ -376,12 +376,14 @@ sub Sign($$)
return -1; return -1;
} }
my $target_cert = $self->target_cert()->cert(); my $target_cert = $self->target_cert()->cert();
my $target_urn = $self->target_uuid();
if (!defined($self->owner_cert())) { if (!defined($self->owner_cert())) {
print STDERR "No owner certificate attached to $self\n"; print STDERR "No owner certificate attached to $self\n";
return -1; return -1;
} }
my $owner_cert = $self->owner_cert()->cert(); my $owner_cert = $self->owner_cert()->cert();
my $owner_urn = $self->owner_uuid();
# Credential expiration: hard-code to 24 hours from now. # Credential expiration: hard-code to 24 hours from now.
my @expt = gmtime( time() + 24 * 60 * 60 ); my @expt = gmtime( time() + 24 * 60 * 60 );
...@@ -398,7 +400,9 @@ sub Sign($$) ...@@ -398,7 +400,9 @@ sub Sign($$)
" <type>privilege</type>\n". " <type>privilege</type>\n".
" <serial>$idx</serial>\n". " <serial>$idx</serial>\n".
" <owner_gid>$owner_cert</owner_gid>\n". " <owner_gid>$owner_cert</owner_gid>\n".
" <owner_urn>$owner_urn</owner_urn>\n".
" <target_gid>$target_cert</target_gid>\n". " <target_gid>$target_cert</target_gid>\n".
" <target_urn>$target_urn</target_urn>\n".
" <uuid>$cred_uuid</uuid>\n". " <uuid>$cred_uuid</uuid>\n".
" <expires>$expiry</expires>\n". " <expires>$expiry</expires>\n".
" $cap_xml\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