Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"No such file or directory" for unknown reason #24

Closed
karyon opened this issue Aug 1, 2016 · 4 comments
Closed

"No such file or directory" for unknown reason #24

karyon opened this issue Aug 1, 2016 · 4 comments

Comments

@karyon
Copy link

karyon commented Aug 1, 2016

Hi :)

I'm getting this:

Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/django_auth_kerberos/backends.py", line 51, in check_password
    kerberos.checkPassword(username.lower(), password, getattr(settings, "KRB5_SERVICE", ""), settings.KRB5_REALM)
kerberos.BasicAuthError: ('No such file or directory', 2)

1.1.5 runs fine, 1.1.6 has the error from #12 which is fixed in 1.1.10, which shows this error here. KRB5_SERVICE is empty, but, as i said, 1.1.5 runs fine.

@karyon
Copy link
Author

karyon commented Aug 1, 2016

it does work when setting the verify_kdc parameter to false. i checked and the system does not seem to have a keytab file, maybe that's the reason. still, a more helpful error message would have been nice :)

@02strich
Copy link
Owner

The error message comes up from the Kerberos library as part of the text for error code 2. The missing keytab or a similar missing file might very much be the reason for the error

@02strich
Copy link
Owner

02strich commented Aug 4, 2017

I would argue that changing this in the kerberos binding is the wrong layer (as the binding should try to be faithful to the underlying library). As this is nevertheless confusing, I have created 02strich/django-auth-kerberos#11 to improve this in the Django module.

@02strich 02strich closed this as completed Aug 4, 2017
@fhwedel-hoe
Copy link

I recently stumbled across this issue.

Ubuntu 18.04 provides pykerberos version 1.1.14 in the package python3-kerberos. Version 1.3.0 can be installed via pip3. 1.3.0 works fine, 1.1.14 fails with "No such file or directory".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants