I developed an Intranet for a client using Django. Users subscribe to their computers through Active Directory. I am currently registering them through the standard Django contrib.auth and using Active Directory through user login servers.
I would like users to be able to use SSO through their existing Active Directory login to automatically log into the Django site.
I understand that this should be done through REMOTE_USER ( https://docs.djangoproject.com/en/dev/howto/auth-remote-user/ ), but the documentation says: "where the web server sets the REMOTE_USER environment variable" . This assumes that the Django site and the authentication server are on the same server, no?
In my case, the Django site runs on a Linux + Apache server and in Active Directory on another Windows machine (there are actually two different AD servers for which we use to log in), so I don’t know how the REMOTE_USER env variable will be installed.
All users use Windows machines.
source
share