Use krb5_set_password instead of krb5_change_password.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15899 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -200,12 +200,13 @@ change_pw(krb5_context context,
|
|||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = krb5_change_password(context,
|
ret = krb5_set_password(context,
|
||||||
&cpw_cred,
|
&cpw_cred,
|
||||||
newpw,
|
newpw,
|
||||||
&result_code,
|
ccache->client,
|
||||||
&result_code_string,
|
&result_code,
|
||||||
&result_string);
|
&result_code_string,
|
||||||
|
&result_string);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
kcm_log(0, "Failed to change password for principal %s: %s",
|
kcm_log(0, "Failed to change password for principal %s: %s",
|
||||||
cpn, krb5_get_err_text(context, ret));
|
cpn, krb5_get_err_text(context, ret));
|
||||||
|
Reference in New Issue
Block a user