summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2013-10-15 12:33:16 +0200
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2013-10-17 13:43:59 +0200
commit29dedbdbb80ee672802a2f027ec41c382e8d260b (patch)
treecc54da34fd22c4b4c86a3c3dfbe72485bd866595
parent06826423eb9989d9660d6f14421300ff3aaa5940 (diff)
downloadsssd-29dedbdbb80ee672802a2f027ec41c382e8d260b.tar.gz
sssd-29dedbdbb80ee672802a2f027ec41c382e8d260b.tar.bz2
sssd-29dedbdbb80ee672802a2f027ec41c382e8d260b.zip
heimdal: Change password using krb5_set_password
krb5_change_password is deprecated by heimdal. Use set_password for heimdal, but for mit-krb5 as well.
-rw-r--r--src/providers/krb5/krb5_child.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/providers/krb5/krb5_child.c b/src/providers/krb5/krb5_child.c
index eb999ede..27c3dde3 100644
--- a/src/providers/krb5/krb5_child.c
+++ b/src/providers/krb5/krb5_child.c
@@ -1102,9 +1102,9 @@ static errno_t changepw_child(struct krb5_req *kr, bool prelim)
memset(&result_code_string, 0, sizeof(krb5_data));
memset(&result_string, 0, sizeof(krb5_data));
- kerr = krb5_change_password(kr->ctx, kr->creds,
- discard_const(newpassword), &result_code,
- &result_code_string, &result_string);
+ kerr = krb5_set_password(kr->ctx, kr->creds,
+ discard_const(newpassword), NULL,
+ &result_code, &result_code_string, &result_string);
if (kerr == KRB5_KDC_UNREACH) {
return ERR_NETWORK_IO;