• Register
0 votes
1k 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 

6 5 3
6,930 points

Please log in or register to answer this question.

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

9 7 4
38,600 points

Related questions

0 votes
1 answer 44 views
44 views
Problem: Would anybody be able to set me back on track or what could be turning out badly? Inform me as to whether you need more data on this. Someone should tell, how to confirm if Kerberos setup is right or not?
asked Feb 17 TeamScript 13.5k points
0 votes
0 answers 15 views
0 votes
1 answer 2 views
2 views
Problem: Please help me to solve it. Spring-boot-starter-security
asked Apr 3 Ifra 24.4k points
0 votes
1 answer 2 views
2 views
Problem: I tried to use security="none" for the login page and spring security "login_check", but it's not working, i got infinity redirect or I got an error that no mapping for url "myhost/login_check". How can i do it?
asked Mar 27 ummesalma 25.2k points
0 votes
1 answer 10 views
10 views
Problem: I am migrating from Spring Boot 1.4.9 to Spring Boot 2.0 and also to Spring Security 5 and I am trying to do authenticate via OAuth 2. But I am getting this error: java.lang.IllegalArgumentException: There is no PasswordEncoder mapped for the id "null
asked Mar 19 ummesalma 25.2k points
0 votes
1 answer 39 views
39 views
Problem: cvc-elt.1: cannot find the declaration of element 'beans'.
asked Feb 20 charles mathews 5.5k points
0 votes
1 answer 35 views
35 views
Problem: kinit: password incorrect while getting initial credentials
asked Feb 18 Ethan ross 2.7k points
0 votes
1 answer 24 views
24 views
Problem: Why I got the error :javax.persistence.transactionrequiredexception: executing an update/delete query.
asked Mar 6 Wafa Abu Yousef 6.1k points
0 votes
2 answers 723 views
723 views
Problem : I am new to the Spring and JPA, wasted 10 days and no result with the searching on internet. I want to save the object to SQL SERVER, my connection is correct but when I write .flush() I get below exception &ldquo;nested exception is javax.persistence.TransactionRequiredException: no transaction is in progress&rdquo;
asked Jan 21, 2020 jwilliam 3.9k points
0 votes
1 answer 392 views
392 views
Problem : I am new to Spring and JPA I want to save object to SQL SERVER, connection is correct but when I write .flush() I get the exception as below javax.persistence.TransactionRequiredException: no transaction is in progress
asked Oct 22, 2019 peterlaw 6.9k points