apache and remote_user

53 views
Skip to first unread message

Tim

unread,
Oct 25, 2011, 2:16:01 PM10/25/11
to django...@googlegroups.com
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

David Fischer

unread,
Oct 25, 2011, 5:35:19 PM10/25/11
to Django users
Have you taken a look at the RemoteUserMiddleware?
https://docs.djangoproject.com/en/1.3/howto/auth-remote-user/

Tim

unread,
Oct 26, 2011, 12:45:13 PM10/26/11
to django...@googlegroups.com
Thanks David, 
Yes I've read and re-read that page. I think my problem is coming from Apache though.
It looks like my next step is more research on apache authorization from a domain.

thanks,
--Tim

Reply all
Reply to author
Forward
0 new messages