-
Notifications
You must be signed in to change notification settings - Fork 52
Description
What went wrong?
I think this is just a lack of understanding on my part, or a lack in the documentation, but I have been trying to understand how to specify a keytab to be used for the acquisition of the TGT. It appears you can use the KRB5_CLIENT_KTNAME environment variable, but this is undocumented (as far as I have found).
You have a mention of keytabs in the basic tutorial (which I really appreciate someone having written up by the way):
Note that for the krb5 mechanism, in order to acquire credentials with the GSSAPI, the system must already have a way to access those credentials. For users, this generally means that they have already performed a kinit (i.e. have cached a TGT), while for services (like above), having a keytab is sufficient. This process is generally performed outside the application using the GSSAPI.
But how do you specify the location? Is this part of the store variable: https://pythongssapi.github.io/python-gssapi/latest/gssapi.html#gssapi.creds.Credentials.store
I don't know, and I don't know how the dictionary for the store is supposed to look as there are no examples:
store (dict) – the store into which to store the credentials, or None for the default store.
Are we looking at something like this: https://web.mit.edu/kerberos/krb5-1.12/doc/basic/ccache_def.html
Or am I totally missing the point?