Hi folks,

I'm successfully using Apache with mod_authnz_ldap, WSGI, Django 1.3.  If I 
hit
'/admin', I get asked to authenticate (BasicAuth done through LDAP).  I 
succeed.
However, this just results in me then seeing the Django admin login screen 
instead
of logging me in to Admin.

What am I missing?

Apache relevant portion
=======================

    # If this directive is set, the value of the REMOTE_USER environment 
variable will be set
    # to the value of the attribute specified.
    AuthLDAPRemoteUserAttribute uid

Django
======

MIDDLEWARE_CLASSES = (
    'django.middleware.common.CommonMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.auth.middleware.RemoteUserMiddleware',
    'django.contrib.messages.middleware.MessageMiddleware',
)

# Try django auth first, failover to LDAP
AUTHENTICATION_BACKENDS = (
    'django.contrib.auth.backends.ModelBackend',
    'django.contrib.auth.backends.RemoteUserBackend',
)

-- 
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.

Reply via email to