我正在尝试使用spnego进行身份验证。 当loginContext.login发生时,我得到异常: “不能为KDC for realm realm.name” 我的krb5.conf我有:
[libdefaults]
default_realm = realm-name.local
default_tkt_enctypes = aes128-cts rc4-hmac des3-cbc-sha1 des-cbc-md5 des-cbc-crc
default_tgs_enctypes = aes128-cts rc4-hmac des3-cbc-sha1 des-cbc-md5 des-cbc-crc
permitted_enctypes = aes128-cts rc4-hmac des3-cbc-sha1 des-cbc-md5 des-cbc-crc
[realms]
REALM.INTERNAL = {
kdc = kdc.realm-name.local
default_domain = realm-name.local
}
[domain_realm]
.REALM.INTERNAL = realm-name.local
REALM.INTERNAL = realm-name.local