Complete --keepold support and fix crasher in kadmin cpw -r --keepold.
This commit is contained in:
@@ -84,6 +84,7 @@ kadm5_c_chpass_principal(void *server_handle,
|
||||
kadm5_ret_t
|
||||
kadm5_c_chpass_principal_with_key(void *server_handle,
|
||||
krb5_principal princ,
|
||||
int keepold,
|
||||
int n_key_data,
|
||||
krb5_key_data *key_data)
|
||||
{
|
||||
@@ -109,6 +110,7 @@ kadm5_c_chpass_principal_with_key(void *server_handle,
|
||||
krb5_store_int32(sp, n_key_data);
|
||||
for (i = 0; i < n_key_data; ++i)
|
||||
kadm5_store_key_data (sp, &key_data[i]);
|
||||
krb5_store_int32(sp, keepold); /* extension */
|
||||
ret = _kadm5_client_send(context, sp);
|
||||
krb5_storage_free(sp);
|
||||
if (ret)
|
||||
|
Reference in New Issue
Block a user