aboutsummaryrefslogtreecommitdiff
path: root/perl/t/kadmin.t
diff options
context:
space:
mode:
authorRuss Allbery <rra@stanford.edu>2010-02-18 18:03:09 -0800
committerRuss Allbery <rra@stanford.edu>2010-02-18 18:03:09 -0800
commit2651ef4352c8cc782c4e0f3175257f7bb0c1e495 (patch)
tree05aaca44005047bb31e303674f027cc3633ec92a /perl/t/kadmin.t
parentca0930ed6a57f1b584fdf13307337c8e966d442c (diff)
Rename functions in Wallet::Kadmin API
Now that we support multiple versions of Kerberos, use generic names for the functions in the Wallet::Kadmin interface rather than the commands from the MIT kadmin interface.
Diffstat (limited to 'perl/t/kadmin.t')
-rwxr-xr-xperl/t/kadmin.t14
1 files changed, 7 insertions, 7 deletions
diff --git a/perl/t/kadmin.t b/perl/t/kadmin.t
index 82e6edf..9c49995 100755
--- a/perl/t/kadmin.t
+++ b/perl/t/kadmin.t
@@ -83,15 +83,15 @@ SKIP: {
$kadmin = eval { Wallet::Kadmin->new };
ok (defined $kadmin, 'Creating Wallet::Kadmin object succeeds');
is ($@, '', ' and there is no error');
- is ($kadmin->delprinc ('wallet/one'), 1, 'Deleting wallet/one works');
+ is ($kadmin->destroy ('wallet/one'), 1, 'Deleting wallet/one works');
is ($kadmin->exists ('wallet/one'), 0, ' and it does not exist');
- # Create the principal and check that ktadd returns something. We'll
+ # Create the principal and check that keytab returns something. We'll
# check the details of the return in the keytab check.
- is ($kadmin->addprinc ('wallet/one'), 1, 'Creating wallet/one works');
+ is ($kadmin->create ('wallet/one'), 1, 'Creating wallet/one works');
is ($kadmin->exists ('wallet/one'), 1, ' and it now exists');
unlink ('./tmp.keytab');
- is ($kadmin->ktadd ('wallet/one', './tmp.keytab'), 1,
+ is ($kadmin->keytab ('wallet/one', './tmp.keytab'), 1,
' and retrieving a keytab works');
ok (-s './tmp.keytab', ' and the resulting keytab is non-zero');
is (getcreds ('./tmp.keytab', "wallet/one\@$Wallet::Config::KEYTAB_REALM"),
@@ -99,12 +99,12 @@ SKIP: {
unlink ('./tmp.keytab');
# Delete the principal and confirm behavior.
- is ($kadmin->delprinc ('wallet/one'), 1, 'Deleting principal works');
+ is ($kadmin->destroy ('wallet/one'), 1, 'Deleting principal works');
is ($kadmin->exists ('wallet/one'), 0, ' and now it does not exist');
- is ($kadmin->ktadd ('wallet/one', './tmp.keytab'), undef,
+ is ($kadmin->keytab ('wallet/one', './tmp.keytab'), undef,
' and retrieving the keytab does not work');
ok (! -f './tmp.keytab', ' and no file was created');
like ($kadmin->error, qr%^error creating keytab for wallet/one%,
' and the right error message is set');
- is ($kadmin->delprinc ('wallet/one'), 1, ' and deleting it again works');
+ is ($kadmin->destroy ('wallet/one'), 1, ' and deleting it again works');
}