I'm failing so far.

I copied backends.py to my project root as mybackends.py

I edited it and renamed ModelBackend to MyModelBackend

I changed RemoteUserBackend(ModelBackend)
to MyRemoteUserBackend(MyModelBackend)

I changed settings.py to:

AUTHENTICATION_BACKENDS = (
    'mybackends.MyRemoteUserBackend',
)

"validate" showed 0 errors

I restarted Apache

Authenticating to Apache/LDAP does not trigger any of my debugging
code in MyRemoteUserBackend, I get no errors/exceptions, and I
still just see the Admin login screen at the end.

In fact, I have the following to log that mybackends.py even gets
imported:

import os

fd = open('/tmp/auth.log', 'w')
fd.write('imported file at least\n')
fd.flush()
os.fsync()
fd.close()

Yet, /tmp/auth.log is still sitting empty just as I made it and
chown()ed it:

rcfhostdb:rcfwebapps> ls -ld /tmp/auth.log
-rw-r--r-- 1 apache wheel 0 May 18 19:36 /tmp/auth.log
rcfhostdb:rcfwebapps>

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