Subject: Where to locate Kerberos configuration file krb5.conf or krb5.ini?
Author: eLDAP
Posted on: 02/10/2010 03:41:49 PM
The sequence to locate the krb5.conf file is the following:
If the system property java.security.krb5.conf is set, its value is assumed to specify the path and file name.
If that system property value is not set, then the configuration file is looked for java.security.krb5.conf in the directory
<java-home>\lib\security [Windows]
<java-home>/lib/security [Solaris and Linux]
Here <java-home> refers to the directory where the JRE was installed.
If the file is still not found, then an attempt is made to locate it as follows:
/etc/krb5/krb5.conf [Solaris]
c:\winnt\krb5.ini [Windows]
/etc/krb5.conf [Linux]
If the file is still not found, then implementation-specific defaults are used. If the krb5.conf file is not found either, then an exception is thrown.
References: