8308540: On Kerberos TGT referral, if krb5.conf is missing realm, bad exception message

Reviewed-by: xuelei
This commit is contained in:
Weijun Wang 2023-06-26 15:55:36 +00:00
parent 5ff42d1429
commit e624484ecf
3 changed files with 47 additions and 29 deletions

View file

@ -1268,7 +1268,7 @@ public class Config {
if (defaultKDC != null) {
return defaultKDC;
}
KrbException ke = new KrbException("Cannot locate KDC");
KrbException ke = new KrbException("Cannot locate KDC for " + realm);
if (cause != null) {
ke.initCause(cause);
}