From d63b1b7a139ad7bbfa79bc808e9b2c54672bdf85 Mon Sep 17 00:00:00 2001 From: Alexandra Ellwood Date: Fri, 17 Oct 2008 18:50:19 +0000 Subject: [PATCH] temporary testing code git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20888 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kim/test/test_kll.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/kim/test/test_kll.c b/src/kim/test/test_kll.c index fbc473782..36b749f76 100644 --- a/src/kim/test/test_kll.c +++ b/src/kim/test/test_kll.c @@ -20,13 +20,18 @@ int main(void) { KLTime t; KLStatus err; + KLPrincipal principal; /* force use of UI */ - fclose (stdin); - - KLAcquireNewInitialTickets (NULL, NULL, NULL, NULL); - KLAcquireNewInitialTickets (NULL, NULL, NULL, NULL); + fclose (stdin); + err = KLCreatePrincipalFromTriplet ("nobody", "", "TEST-KERBEROS-1.3.1", &principal); + printf ("KLCreatePrincipalFromTriplet(nobody@TEST-KERBEROS-1.3.1) (err = %d)\n", err); + if (err == klNoErr) { + err = KLChangePassword (principal); + printf ("KLChangePassword() (err = %d)\n", err); + KLDisposePrincipal (principal); + } err = KLLastChangedTime(&t); printf ("KLLastChangedTime returned %d (err = %d)\n", t, err); @@ -96,7 +101,6 @@ void TestHighLevelAPI (void) } KLDisposePrincipal (inPrincipal); } - exit (1); err = KLCreatePrincipalFromTriplet ("nobody", "", "TEST-KERBEROS-1.3.1", &inPrincipal); printf ("KLCreatePrincipalFromTriplet(nobody@TEST-KERBEROS-1.3.1) (err = %d)\n", err); -- 2.26.2