Skip to content

Commit

Permalink
Convert success in krb5_chpw_result_code_string
Browse files Browse the repository at this point in the history
Result code 0 used to be converted properly by krb5_set_password,
though not krb5_change_password; this changed in 1.10 when
krb5int_setpw_result_code_string was folded into
krb5_chpw_result_code_string.  Restore the old behavior, and make it
apply to krb5_change_password as well, by making
krb5_chpw_result_code_string convert result code 0.

[ghudson@mit.edu: commit message]

(cherry picked from commit 316bf74)

ticket: 7569
version_fixed: 1.11.1
status: resolved
  • Loading branch information
Jonathan Reams authored and tlyu committed Feb 19, 2013
1 parent 370572d commit 033915b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/krb5/krb/chpw.c
Expand Up @@ -269,6 +269,9 @@ krb5_chpw_result_code_string(krb5_context context, int result_code,
case KRB5_KPASSWD_INITIAL_FLAG_NEEDED:
*code_string = _("Initial password required");
break;
case 0:
*code_string = _("Success");
break;
default:
*code_string = _("Password change failed");
break;
Expand Down

0 comments on commit 033915b

Please sign in to comment.