From: Alexandra Ellwood Date: Fri, 17 Oct 2008 18:50:19 +0000 (+0000) Subject: temporary testing code X-Git-Tag: krb5-1.7-alpha1~292 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d63b1b7a139ad7bbfa79bc808e9b2c54672bdf85;p=krb5.git temporary testing code git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20888 dc483132-0cff-0310-8789-dd5450dbe970 --- 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);