简体   繁体   中英

HttpClient Kerberos Keytab authentication without login.conf

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.

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;
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM