Have you taken a look at the RemoteUserMiddleware?
https://docs.djangoproject.com/en/1.3/howto/auth-remote-user/

On Oct 25, 11:16 am, Tim <[email protected]> wrote:
> Hi,
> I've read the django, wsgi, and apache docs and still making no progress.
> Freebsd 8, Apache2.2.17, Django1.30, Python 2.7.1
>
> I'm inside an intranet hosting my webapp locally within that intranet. I'd
> like to get the REMOTE_USER so people don't have to login again.  My
> problem starts at Apache I'm pretty sure. So I know this is not a Django
> problem, but I'm asking from desperation. Is there anyone out there in the
> same situation (intranet users logged in, but unable to get Apache to
> find/pass the REMOTE_USER)?
>
> In my httpd.conf I have the line:
> WSGIPassAuthorization On
>
> and these lines in my wsgi script:
> def application(environ, start_response):
>     environ['REMOTE_USER'] = environ.get('LOGNAME')
>     return _application(environ, start_response)
>
> thanks for any ideas or pointers.
> --Tim

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