python-gssapi icon indicating copy to clipboard operation
python-gssapi copied to clipboard

No key table entry found matching HTTP/myspn.domain.local/domain.local@

Open ep5000 opened this issue 4 months ago • 1 comments

I've been testing this library with a kerberos setup that works using Apache/mod_auth_gssapi . While my krb5.conf and krb5.keytab work with Apache with this library I continually get the following error:

No key table entry found matching HTTP/myspn.domain.local/domain.local@

Notice the domain being appended to the end of the SPN and being blank after the @ sign.

kinit -kt krb5.keytab works fine.

My environment:

  • Python 3.11.2
  • OS: Debian Bookworm

ep5000 avatar Sep 11 '25 08:09 ep5000

This library is really just a wrapper around the krb5 C library. It doesn't do any processing/building of the SPNs or parsing keytabs, it merely passes along the paths and other arguments provided. Most likely you'll want to change the principal name type to hostbased_service and use the form [email protected]. If you can share more code on how you are actually using this library I may be able to provide more guidance.

jborean93 avatar Sep 11 '25 20:09 jborean93