krbcontext / python-krbcontext

A Kerberos context manager
https://krbcontext.github.io/
GNU General Public License v3.0
25 stars 10 forks source link

gssapi error #35

Open cnfree0355 opened 4 years ago

cnfree0355 commented 4 years ago

Hello, first of all thank you for your work, when I used this module, the following error occurred I don't know what caused it, try to solve it, but it doesn't take effect!

raise NotImplementedError("Your GSSAPI implementation does " NotImplementedError: Your GSSAPI implementation does not have support for manipulating credential stores And the package version is below: gssapi==1.6.9 krbcontext==0.10

tkdchen commented 4 years ago

Hi, could you please paste the full traceback here? That would be helpful to investigate.

cnfree0355 commented 4 years ago

Hi, could you please paste the full traceback here? That would be helpful to investigate.

Sorry to reply so late ,and thans for your replay. My code is as below show

from krbcontext import krbContext

keytab="hdfs.keytab" relam="LLDATA.COM" principal= "{}@{}".format(str(keytab.split('.')[0]),relam) print(principal) with krbContext(using_keytab=True,principal=principal,keytab_file=keytab) as krb: print(krb)

when execute the code with python3 and report the following error image

However ,I search this error, Some issues say that the package is missing import gssapi.raw.ext_cred_store

image

I reinstall the gssapi and the error still exists,I don't know how to fix it

tkdchen commented 3 years ago

Sorry for so late response. Now, I have gssapi 1.6.9 installed, and all the imports you mentioned work for me. Is this still a problem for you?

KiraPC commented 3 years ago

@tkdchen Same error with your same gssapi version.

I'm on MacOS Big Sur 11.5