First off, thank you for viewing/helping with this.
I am trying to use the initializeClient function in the kerberos package from npm in Node. My goal is to be able to make requests to our internal API.
const kerberos = require('kerberos')
var company = 'company'
var service = `HTTP/internal.${company}.com@SERVER.${company.toUpperCase()}.COM`
var options = { principal: `firstname@SERVER.${company.toUpperCase()}.COM` }
kerberos.initializeClient(service, options, (err, details) => {
console.log(details)
})
The response that comes back is:
KerberosClient {
contextComplete: false,
responseConf: 0,
response: null,
username: null
}
From what I can tell with how this functions works, you pass it the service, the options, which includes the principal, and a call back function.
Seems that the function is working but no data is returned. I've also tried passing an empty object as the options which looks like it would then just extract the current ticket from the machine, which is preferred.
I am running this on macOS 10.14 with Node v12.4.0. I've already installed krb5 from homebrew.
Questions are, why is this not returning anything expected (not yet sure what is expected) and is this the correct path to be able to make negotiate requests using Kerberos tickets?
Thanks again!