• Register
Welcome to Kodlogs, programming questions and answer website.
0 votes
8 views

Problem :

I am implementing kerberos Authentication in my existing java spring application.My unix team has provided me SPN, krb5.conf and keytab file. I am trying hard but getting unable to obtain password from user exception 

by (6.9k points)  

1 Answer

0 votes

Solution :

This issue is may be due to property values not been resolved on the security-config. 

Please hard code as given bellow and try again?

<beans:property name="servicePrincipal" value="HTTP/xyzcard-sit1.systems.private@SYSTEMS.PRIVATE"/> <beans:property name="keyTabLocation" value="file:YOUR KEY TAB LOCATION >>/mykey.keytabl" />

The error has thrown from javax.security.auth.login.LoginContext's init method so it should be something about keytab file or service principle is not set properly.

Further Readings:

https://github.com/apache/incubator-druid/issues/7837

by (21.9k points)  
edited by
...