summaryrefslogtreecommitdiff
path: root/source3/libads
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2016-08-30 12:48:09 +0200
committerAndrew Bartlett <abartlet@samba.org>2016-09-01 00:43:51 +0200
commit2de4aea7281eba66e654786de6f72d90ea8077c2 (patch)
treef02fa4f9bb6b364ea48f23bf72eb962b231d4402 /source3/libads
parente01587c948ecb064002e89e961bbbec4d625d9dd (diff)
downloadsamba-2de4aea7281eba66e654786de6f72d90ea8077c2.tar.gz
s3-libads: Do not use deprecated krb5_change_password()
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Thu Sep 1 00:43:51 CEST 2016 on sn-devel-144
Diffstat (limited to 'source3/libads')
-rw-r--r--source3/libads/krb5_setpw.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/source3/libads/krb5_setpw.c b/source3/libads/krb5_setpw.c
index 2aed322f9b7..630c2e46631 100644
--- a/source3/libads/krb5_setpw.c
+++ b/source3/libads/krb5_setpw.c
@@ -248,12 +248,14 @@ static ADS_STATUS ads_krb5_chg_password(const char *kdc_host,
return ADS_ERROR_KRB5(ret);
}
- ret = krb5_change_password(context,
- &creds,
- discard_const_p(char, newpw),
- &result_code,
- &result_code_string,
- &result_string);
+ ret = krb5_set_password(context,
+ &creds,
+ discard_const_p(char, newpw),
+ princ,
+ &result_code,
+ &result_code_string,
+ &result_string);
+
if (ret) {
DEBUG(1, ("krb5_change_password failed (%s)\n", error_message(ret)));
aret = ADS_ERROR_KRB5(ret);