Provide server side kadm5_chpass_principal_3() with ks_tuple implementation.

We enable kadm5_chpass_principal_3() in the server side of the
library.  The client kadm5 library calls will still return the
error KAMD5_KS_TUPLE_NO_SUPP.

Signed-off-by: Nicolas Williams <nico@cryptonector.com>
This commit is contained in:
Roland C. Dowdeswell
2011-11-28 15:18:52 +00:00
committed by Nicolas Williams
parent 00bea41dcb
commit af011f57fc
9 changed files with 39 additions and 17 deletions

View File

@@ -509,6 +509,8 @@ static kadm5_ret_t
kadm5_ad_chpass_principal(void *server_handle,
krb5_principal principal,
int keepold,
int n_ks_tuple,
krb5_key_salt_tuple *ks_tuple,
const char *password)
{
kadm5_ad_context *context = server_handle;
@@ -519,6 +521,9 @@ kadm5_ad_chpass_principal(void *server_handle,
if (keepold)
return KADM5_KEEPOLD_NOSUPP;
if (n_ks_tuple > 0)
return KADM5_KS_TUPLE_NOSUPP;
ret = ad_get_cred(context, NULL);
if (ret)
return ret;