aboutsummaryrefslogtreecommitdiff
path: root/perl/Wallet/Object/Keytab.pm
diff options
context:
space:
mode:
authorRuss Allbery <rra@stanford.edu>2007-08-30 04:27:10 +0000
committerRuss Allbery <rra@stanford.edu>2007-08-30 04:27:10 +0000
commita0e3892a6e4865a36ac3848d640198dc3a25d6c1 (patch)
tree9dce0318522775a83595f4d3e9e61a5e062d006a /perl/Wallet/Object/Keytab.pm
parent2e7b886b16e2e0adf723ac59efa715e15bb2e519 (diff)
Clean up all exception output when storing it in the error variable to
remove the " at line" stuff added by Perl and the newlines so that the errors stored in objects are consistent. Fix various bugs in the base object, including a few more type vs. name inversions and use of object instead of name. Allow owners to be specified as ACL names instead of IDs, and change the ID to a name in show. Add a new test suite for the base object implementation.
Diffstat (limited to 'perl/Wallet/Object/Keytab.pm')
-rw-r--r--perl/Wallet/Object/Keytab.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl/Wallet/Object/Keytab.pm b/perl/Wallet/Object/Keytab.pm
index f83949c..8635bee 100644
--- a/perl/Wallet/Object/Keytab.pm
+++ b/perl/Wallet/Object/Keytab.pm
@@ -166,7 +166,7 @@ sub get {
local *KEYTAB;
unless (open (KEYTAB, '<', $file)) {
my $princ = $self->{name};
- $self->{error} = "error creating keytab for principal $princ: $!";
+ $self->{error} = "error opening keytab for principal $princ: $!";
return undef;
}
local $/;
@@ -174,7 +174,7 @@ sub get {
my $data = <KEYTAB>;
if ($!) {
my $princ = $self->{name};
- $self->{error} = "error creating keytab for principal $princ: $!";
+ $self->{error} = "error reading keytab for principal $princ: $!";
return undef;
}
close KEYTAB;