Skip to content

mkesper/django-auth-kerberos

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-auth-kerberos

Kerberos authentication backend for Django

Install

pip install django-auth-kerberos

Usage

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',
)

Tests

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.

About

Kerberos authentication backend for Django

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%