summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlexandra Ellwood <lxs@mit.edu>2008-10-17 18:50:19 +0000
committerAlexandra Ellwood <lxs@mit.edu>2008-10-17 18:50:19 +0000
commitd63b1b7a139ad7bbfa79bc808e9b2c54672bdf85 (patch)
treedd847d732d9dc17c9f182c4a9119a4300223d06f /src
parentea4de1bb8ad087485b4eee6a1c03db826e1e9f03 (diff)
downloadkrb5-d63b1b7a139ad7bbfa79bc808e9b2c54672bdf85.tar.gz
krb5-d63b1b7a139ad7bbfa79bc808e9b2c54672bdf85.tar.xz
krb5-d63b1b7a139ad7bbfa79bc808e9b2c54672bdf85.zip
temporary testing code
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20888 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/kim/test/test_kll.c14
1 files 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);