mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8274205: Handle KDC_ERR_SVC_UNAVAILABLE error code from KDC
Co-authored-by: Weijun Wang <weijun@openjdk.org> Reviewed-by: weijun
This commit is contained in:
parent
5a12af762d
commit
5ba0d09fe4
3 changed files with 88 additions and 2 deletions
|
@ -256,9 +256,14 @@ public final class KdcComm {
|
|||
} catch (Exception e) {
|
||||
// OK
|
||||
}
|
||||
if (ke != null && ke.getErrorCode() ==
|
||||
if (ke != null) {
|
||||
if (ke.getErrorCode() ==
|
||||
Krb5.KRB_ERR_RESPONSE_TOO_BIG) {
|
||||
ibuf = send(obuf, tempKdc, true);
|
||||
ibuf = send(obuf, tempKdc, true);
|
||||
} else if (ke.getErrorCode() ==
|
||||
Krb5.KDC_ERR_SVC_UNAVAILABLE) {
|
||||
throw new KrbException("A service is not available");
|
||||
}
|
||||
}
|
||||
KdcAccessibility.removeBad(tempKdc);
|
||||
return ibuf;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue