Setting path of krb5.conf in Tomcat Application

Multi tool use
Multi tool use


Setting path of krb5.conf in Tomcat Application



We have a Java Web Application, which used Hadoop cluster for storage.
The cluster is kerberos enabled.



By default, our application reads the krb5.conf file from /etc folder.
We want that the krb5.conf file to be read from user specific location.



KRB5_CONFIG=/path_of_krb5_conf_file is already set in bashrc file.



Can anyone please help in this regards?



Do I need to add something in server.xml or web.xml?




1 Answer
1



Copy your custom krb5.conf to $CATALINA_BASE/conf/ which might work. If that doesn't work, the location of the krb5.conf your Java web application uses can be changed by setting the java.security.krb5.conf JVM property:


java -Djava.security.krb5.conf=/path/to/custom/krb5.conf



Reference: Configuring Tomcat 7 Single Sign-on with SPNEGO (Kerberos & LDAP)






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

oy jD04MSKd7Qxg2Gc2,04y zdi2
eUC,o1ivHEsLYSUpo RQtmbkqxFD5AoQe,6CxzyMRV e6uaGch Aky,i,OyQ,syfmLP5ssbaE3yX,O9xyWfI9uvPJQhCRmPvryFzP2WW,B,o

Popular posts from this blog

PySpark - SparkContext: Error initializing SparkContext File does not exist

django NoReverseMatch Exception

List of Kim Possible characters