diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-10-15 12:33:16 +0200 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-10-17 13:17:26 +0200 |
commit | fe4e8444d47e4268c11a681b6cd4dd8b0840a168 (patch) | |
tree | 13e05cc52e8079e9a7d5b6de30e8d8b4ff46918c | |
parent | 1effcf610000b0f34dfb849ef80fc522d4394c7d (diff) | |
download | sssd-fe4e8444d47e4268c11a681b6cd4dd8b0840a168.tar.gz sssd-fe4e8444d47e4268c11a681b6cd4dd8b0840a168.tar.bz2 sssd-fe4e8444d47e4268c11a681b6cd4dd8b0840a168.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.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/providers/krb5/krb5_child.c b/src/providers/krb5/krb5_child.c index 1321f0c1..699bcb34 100644 --- a/src/providers/krb5/krb5_child.c +++ b/src/providers/krb5/krb5_child.c @@ -1099,9 +1099,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; |