2

I can successfully send and receive HTTP requests to servers with kerberos, following this and stackoverflow instructions like this or others, and they all require login.conf. However, I'd like to know if there's anyway to get rid of the login.conf file, and set Kerberos authentication details programmatically.

Thien Nguyen
  • 359
  • 1
  • 3
  • 14
  • Hi; If Vasyl Lyashkevych answered your question please mark it as such which will verify it to others in the community; otherwise please let us know if any. – T-Heron Oct 21 '17 at 12:21

1 Answers1

2

I understood that you want to avoid the login.conf. From the other hand you can see this tutorial, where:

custom-client {
    com.sun.security.auth.module.Krb5LoginModule required
    storeKey=true
    useKeyTab=true
    keyTab = "file:///c:/spnego-examples/hellokeytab.keytab"
    principal=metis;
}
Vasyl Lyashkevych
  • 1,920
  • 2
  • 23
  • 38
  • Thanks for the answer, but unless I missed something, the tutorial shows how to create a keytab, and I'm not at liberty to create keytab. The keytab is provided to me and can be stored at different locations. – Thien Nguyen Oct 23 '17 at 21:18