(create_principal*): If client doesnt send kvno, make sure to set it to 1.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17233 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -120,7 +120,8 @@ kadm5_s_create_principal_with_key(void *server_handle,
|
||||
if(ret)
|
||||
goto out;
|
||||
|
||||
ent.entry.kvno = 1;
|
||||
if ((mask & KADM5_KVNO) == 0)
|
||||
ent.entry.kvno = 1;
|
||||
|
||||
ret = hdb_seal_keys(context->context, context->db, &ent.entry);
|
||||
if (ret)
|
||||
@@ -159,6 +160,9 @@ kadm5_s_create_principal(void *server_handle,
|
||||
if(ret)
|
||||
goto out;
|
||||
|
||||
if ((mask & KADM5_KVNO) == 0)
|
||||
ent.entry.kvno = 1;
|
||||
|
||||
ent.entry.keys.len = 0;
|
||||
ent.entry.keys.val = NULL;
|
||||
|
||||
|
Reference in New Issue
Block a user