I changed my uat instance to point at PostgreSQL instead of SQLite and
now it works. I touched nothing relating to this issue, but it looks
like it worked itself out. I would imagine there was some caching of
something somewhere that was not getting overwritten.

Thanks anyway.

On Jul 20, 12:35 pm, John <[email protected]> wrote:
> 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 
> athttps://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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to