create WELLKNOWN/ANONYMOUS

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24570 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2009-02-04 22:02:43 +00:00
parent c1bfc5bd1d
commit fb66afbaa2

View File

@@ -221,6 +221,14 @@ init(struct init_options *opt, int argc, char **argv)
KRB5_KDB_DISALLOW_TGT_BASED);
krb5_free_principal(context, princ);
/* Create `WELLKNOWN/ANONYMOUS' for anonymous as-req */
krb5_make_principal(context, &princ, realm,
KRB5_WELLKNOWN_NAME, KRB5_ANON_NAME, NULL);
create_random_entry(princ, 60*60, 60*60,
KRB5_KDB_REQUIRES_PRE_AUTH);
krb5_free_principal(context, princ);
/* Create `default' */
{
kadm5_principal_ent_rec ent;