Question

My application enables defining several LDAP servers to work with. One might want to define Kerberos access to more than one LDAP server. Can it be done? Can a single host juggle between Active Directory servers with Kerberos as the connection method?

Was it helpful?

Solution

Yes. You just need to manage your keytabs yourself.

Basically just take the code from MIT Kerberos kinit and look how it creates the credentials cache and manages to load its keys. Just init the appropriate tickets before each connection and it should work.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top