02strich / django-auth-kerberos

Kerberos authentication backend for Django
MIT License
19 stars 12 forks source link

'ClientAuth' is not defined #13

Open n3xus opened 6 years ago

n3xus commented 6 years ago

I'm receiving following error

    Traceback (most recent call last):

    File "C:\Python35\lib\site-packages\django_auth_kerberos\backends.py", line 61, in check_password
        kerberos.checkPassword(username.lower(), password, getattr(settings, "KRB5_SERVICE", ""), getattr(settings, "KRB5_REALM", ""))

      File "C:\Python35\lib\site-packages\kerberos_sspi.py", line 98, in checkPassword
        ca = ClientAuth("Kerberos", auth_info = auth_info, targetspn=service)

    NameError: name 'ClientAuth' is not defined
02strich commented 6 years ago

It looks like your kerberos installation is broken. Which kerberos package did you install including which version?

Sent from my iPhone

On Mar 20, 2018, at 02:19, n3xus notifications@github.com<mailto:notifications@github.com> wrote:

I'm receiving following error

Traceback (most recent call last):

File "C:\Python35\lib\site-packages\django_auth_kerberos\backends.py", line 61, in check_password
    kerberos.checkPassword(username.lower(), password, getattr(settings, "KRB5_SERVICE", ""), getattr(settings, "KRB5_REALM", ""))

  File "C:\Python35\lib\site-packages\kerberos_sspi.py", line 98, in checkPassword
    ca = ClientAuth("Kerberos", auth_info = auth_info, targetspn=service)

NameError: name 'ClientAuth' is not defined

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/02strich/django-auth-kerberos/issues/13, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AACtXwscHvDBTK3MVA-UP0eT3cLB70muks5tgPO2gaJpZM4Sxyft.