Overrides obscure KRB5KRB_AP_ERR_BAD_INTEGRITY message.
Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7050
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25557
dc483132-0cff-0310-8789-
dd5450dbe970
char first_part[256];
char second_part[256];
char temp[1024];
+ char* custom_msg;
int count;
int i;
int rc5 = 0;
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);
}