wherenow?
Home » django

Django RemoteUserBackend for REMOTE_USER authentication and LDAP authorisation.

May 6, 2012 · by hugh · in Uncategorized

This class was written to integrate a django app with our LDAP/Kerberos setup. Apache handles Kerberos and passes the name of an authorised user via the REMOTE_USER variable. This script does a simple LDAP lookup to determine if the user…

Django Middleware Order

May 6, 2012 · by hugh · in Uncategorized

I got stung by this today. I was presented with the following error: The Django remote user auth middleware requires the authentication middleware to be installed. Edit your MIDDLEWARE_CLASSES setting to insert ‘django.contrib.auth.middleware.AuthenticationMiddleware’ before the RemoteUserMiddleware class. Even though my…

Hugh Saunders

I'm a Christian, I work in the rackspace private cloud team and I enjoy sailing in my not-so-spare time.

Tags

clouddns debian devstack django gephi linux mysql nova openstack osx python rackspace

Search

Copyright © 2013 wherenow?

Powered by WordPress and Origin