{
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);
}
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);