A sample file can be found in this MIT configuration doc.
The file location can be specified by system property
java.security.krb5.conf. If this property is not set, Java will try to
locate this file in these locations (ordered by):
-
%JAVA_HOME%/lib/security/krb5.conf
-
%WINDOWS_ROOT%/krb5.ini
Some machines are possibly not allowed to read file from
%WINDOWS_ROOT% such as
C:\Windows; so it is recommended to put this file
in the hidden folder C:\ProgramData\MIT\Kerberos5,
too.
Alternatively, the system properties
java.security.krb5.realm and
java.security.krb5.kdc can be used.