Two mods from Roland to make kadm5_setkey_principal_3() work.
This commit is contained in:
@@ -320,10 +320,12 @@ kadm5_setkey_principal_3(void *server_handle,
|
|||||||
}
|
}
|
||||||
free(princ_ent.key_data);
|
free(princ_ent.key_data);
|
||||||
princ_ent.key_data = new_key_data;
|
princ_ent.key_data = new_key_data;
|
||||||
|
princ_ent.n_key_data = n_keys + (keepold ? princ_ent.n_key_data : 0);
|
||||||
new_key_data = NULL;
|
new_key_data = NULL;
|
||||||
|
|
||||||
/* Modify the principal */
|
/* Modify the principal */
|
||||||
ret = kadm5_modify_principal(server_handle, &princ_ent, KADM5_KEY_DATA);
|
princ_ent.kvno++;
|
||||||
|
ret = kadm5_modify_principal(server_handle, &princ_ent, KADM5_KVNO | KADM5_KEY_DATA);
|
||||||
|
|
||||||
out:
|
out:
|
||||||
if (new_key_data != NULL) {
|
if (new_key_data != NULL) {
|
||||||
|
Reference in New Issue
Block a user