encode fast state in the fast cookie

This commit is contained in:
Love Hörnquist Åstrand
2011-07-24 21:16:42 -07:00
parent 7f6f4206c6
commit 46f285bcc9
4 changed files with 155 additions and 75 deletions

View File

@@ -232,6 +232,14 @@ init(struct init_options *opt, int argc, char **argv)
krb5_free_principal(context, princ);
/* Create `WELLKNONW/org.h5l.fast-cookie@WELLKNOWN:ORG.H5L' for FAST cookie */
krb5_make_principal(context, &princ, "WELLKNOWN:ORG.H5L",
KRB5_WELLKNOWN_NAME, "org.h5l.fast-cookie", NULL);
create_random_entry(princ, 60*60, 60*60,
KRB5_KDB_REQUIRES_PRE_AUTH|
KRB5_KDB_DISALLOW_TGT_BASED);
krb5_free_principal(context, princ);
/* Create `default' */
{
kadm5_principal_ent_rec ent;