Kerberos authentication backend for Django
pip install django-auth-kerberos
Make sure following settings are configured in settings.py
:
INSTALLED_APPS = (
...
'django_auth_kerberos',
...
)
# kerberos realm and service
KRB5_REALM = 'EXAMPLE.COM'
KRB5_SERVICE = '[email protected]'
# redirect url after login
LOGIN_REDIRECT_URL = '/'
# enable kerberos auth backends
AUTHENTICATION_BACKENDS = (
'django_auth_kerberos.backends.KrbBackend',
)
The module contains a positive and a negative authentication test.
The positive test uses the KRB5_TEST_USER
and KRB5_TEST_PASSWORD
settings. It is recommended to not run them as part of a CI test run.