From 2b60b3f6de2f57793f56d508f46d6f048aca97ff Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Mon, 12 Dec 2011 20:45:42 +0000 Subject: [PATCH] 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 --- src/windows/leashdll/lshfunc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); } -- 2.26.2