From: Tom Yu Date: Mon, 12 Dec 2011 20:45:42 +0000 (+0000) Subject: kfw fix: Add custom "Password incorrect" message to Leash_int_kinit_ex() X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2b60b3f6de2f57793f56d508f46d6f048aca97ff;p=krb5.git kfw fix: Add custom "Password incorrect" message to Leash_int_kinit_ex() Overrides obscure KRB5KRB_AP_ERR_BAD_INTEGRITY message. Signed-off-by: Kevin Wasserman ticket: 7050 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25557 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/windows/leashdll/lshfunc.c b/src/windows/leashdll/lshfunc.c index 760ebbd0e..6f2756672 100644 --- a/src/windows/leashdll/lshfunc.c +++ b/src/windows/leashdll/lshfunc.c @@ -498,6 +498,7 @@ Leash_int_kinit_ex( char first_part[256]; char second_part[256]; char temp[1024]; + char* custom_msg; int count; int i; int rc5 = 0; @@ -598,10 +599,9 @@ Leash_int_kinit_ex( rcA = rcB; } #endif /* NO_AFS */ - + custom_msg = (rc5 == KRB5KRB_AP_ERR_BAD_INTEGRITY) ? "Password incorrect" : NULL; return leash_error_message("Ticket initialization failed.", - rcL, - rc5, rcA, 0, + rcL, rc5, rcA, custom_msg, displayErrors); }