kinit Command-line Tool
A JDBC client participating in Kerberos authentication requires a valid Kerberos ticket to be present on the JDBC client's operating system.
Here are some points to remember about this Kerberos ticket:
- It has to be requested manually;
- It has to be requested before the Java JDBC client tool is started;
- This request is done using the Java command-line tool kinit(.exe):
- kinit is part of JRE and JDK, so the JDBC client's own Java can be used as follows:
Tableau Desktop: "
C:\Program Files\Tableau\Tableau <version>\bin\jre\bin\kinit.exe
"- DBeaver: "
path\to\dbeaver\jre\bin\kinit.exe
" - CData Virtuality Studio: "
path\to\CData Virtuality Studio\CData Virtuality Studio\jre\bin\kinit.exe
"
- To request a Kerberos ticket, just run
kinit
without any parameters and provide your password when asked for it; - The default lifetime of the Kerberos ticket is 24 hours. It may be different if configured and requested accordingly.
- kinit is part of JRE and JDK, so the JDBC client's own Java can be used as follows: