Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Webauth/LDAP integration for Django (with an Oxford focus)
Python

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
debian Bump to version 0.4.
django_webauth
.gitignore
.travis.yml
README.rst Added coveralls status image
requirements-test.txt
requirements.txt
setup.py

README.rst

django-webauth

https://travis-ci.org/ox-it/django-webauth.png https://coveralls.io/repos/ox-it/halld/badge.png

This core was pulled out of an OUCS project, and has not undergone much testing beyond its current use. Comments to infodev@oucs.ox.ac.uk.

Usage

Django configuration

Add 'django_webauth' to your list of INSTALLED_APPS in your settings.py.

Add the following to your urlconf:

url(r'^webauth/', include('django_webauth.urls', 'webauth')),

Add 'django_webauth.backends.WebauthLDAP' to your list of AUTHENTICATION_BACKENDS.

To link to the Webauth views from your templates use webauth:login and webauth:logout for url names.

Apache configuration

Install and enable the webauth module. It's packaged as libapache2-webauth in Debian, and can be enabled using a2enmod webauth.

Follow the OUCS documentation, protecting only the Webauth login view. You may also wish to use the WebauthDoLogout directive for the logout view.

LDAP configuration

Make sure that your Kerberos principle has access to the LDAP directory.

Add something like the following to your crontab to keep your Kerberos ticket alive:

* * * * * /sbin/start-stop-daemon --start --oknodo --quiet --pidfile /var/run/k5start.pid --exec /usr/bin/k5start -- -b -K 5 -p /var/run/k5start.pid -f /path/to/keytab webauth/aardvark.ox.ac.uk
Something went wrong with that request. Please try again.