From: Stefan Metzmacher Date: Mon, 11 Mar 2024 16:45:43 +0000 (+0100) Subject: s3:libads: remove unused kdc_host and time_offset arguments to ads_krb5_chg_password() X-Git-Tag: tdb-1.4.11~735 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b641b35b028e6986dbff6667fd5198393f50aef2;p=thirdparty%2Fsamba.git s3:libads: remove unused kdc_host and time_offset arguments to ads_krb5_chg_password() Signed-off-by: Stefan Metzmacher Reviewed-by: Andreas Schneider --- diff --git a/source3/libads/krb5_setpw.c b/source3/libads/krb5_setpw.c index f8cde9730d5..1d67290bfa4 100644 --- a/source3/libads/krb5_setpw.c +++ b/source3/libads/krb5_setpw.c @@ -154,11 +154,9 @@ kerb_prompter(krb5_context ctx, void *data, return 0; } -static ADS_STATUS ads_krb5_chg_password(const char *kdc_host, - const char *principal, +static ADS_STATUS ads_krb5_chg_password(const char *principal, const char *oldpw, - const char *newpw, - int time_offset) + const char *newpw) { ADS_STATUS aret; krb5_error_code ret; @@ -313,9 +311,8 @@ ADS_STATUS kerberos_set_password(const char *kpasswd_server, } if (!strcmp(auth_principal, target_principal)) { - return ads_krb5_chg_password(kpasswd_server, target_principal, - auth_password, new_password, - time_offset); + return ads_krb5_chg_password(target_principal, + auth_password, new_password); } else { return ads_krb5_set_password(target_principal, new_password);