I am trying to get sso working with apache and Django. I have the REMOTE_USER being filled correctly with mod_auth_kerb, and I followed the simple directions listed at https://docs.djangoproject.com/en/dev/howto/auth-remote-user/ in an attempt to enable Django's REMOTE_USER authentication.
I am able to successfully start and run my development server with manage.py runserver. The authentication fails because there is no REMOTE_USER, but I am able to browse around the public stuff like normal. When I try to access it through apache, I get: 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. I then scroll down through the Request Information and see: MIDDLEWARE_CLASSES ('django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.auth.middleware.RemoteUserMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.messages.middleware.MessageMiddleware') Which matches my settings.py: MIDDLEWARE_CLASSES = ( 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.auth.middleware.RemoteUserMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', ) I don't get it, am I missing something obvious here? I have tried reordering everything, deleting and re-adding the files, and googling for a couple of hours. Hopefully someone here will be able to point me in the right direction because I am out of ideas. Thanks in advance for any help. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.