On 12/1/06, dchandek <[EMAIL PROTECTED]> wrote: > > I've spent a few hours digging around, but can't seem to find a > straightforward answer ... > > I have an Apache module that does user authentication and sets the > REMOTE_USER variable with the user name. This is completely independent > of Django and Python. > > I want Django to "trust" the REMOTE_USER value as a Django user and > effect a login. If there is no matching user (the value cannot be empty > b/c Apache would have prevented getting to Django) Django could > optionally create one, etc. The externally authenticated user's > password will not be touched by Django.
The easiest way to do this would probably be to write your own replacement for django.contrib.auth.middleware.AuthenticationMiddleware. That's the code that acutally populates request.user Joseph --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---