I am trying to connect to SQL-Server usingJavaKerberos. My Jaas conf file looks like this :
SQLJDBCDriver {
com.sun.security.auth.module.Krb5LoginModule required
useTicketCache=true
useKeyTab=true
keyTab="/etc/krb5.keytab"
doNotPrompt=true
renewTGT=true
debug=true;
};
This is the error that I am getting
>>> Found no TGT's in LSA
Principal is null
null credentials from Ticket Cache
[Krb5LoginModule] authentication failed
Unable to obtain Principal Name for authentication
[Krb5LoginModule]: Entering logout
[Krb5LoginModule]: logged out Subject
This is how "/etc/krb5.conf" looks like
[libdefaults]
default_realm = HOME.COM
dns_lookup_realm = true
dns_lookup_kdc = true
forwardable=true
[realms]
HOME.COM = {
kdc = PCDNT00003USP01.Cloud.com
kdc = PCDNT00002USP01.Cloud.com
kdc = PCDNT00002USP03.Cloud.com
kdc = pcdnt00001usp03.Cloud.com
kdc = pcdnt00001ukp01.Cloud.com
kdc = pcdnt00001ukp02.Cloud.com
kdc = PCDNT00003USP03.Cloud.com
kdc = PCDNT00002USP02.Cloud.com
default_domain = home.com
admin_server=Cloud.com
}
[domain_realm]
home.com= HOMECOM
.home.com= HOME.COM