michiya / django-pyodbc-azure

Django backend for Microsoft SQL Server and Azure SQL Database using pyodbc
https://pypi.python.org/pypi/django-pyodbc-azure
BSD 3-Clause "New" or "Revised" License
321 stars 140 forks source link

Integrated Authentication using computer name instead of remote user #220

Open mabdelhack opened 4 years ago

mabdelhack commented 4 years ago

I have an external database that uses windows authentication to login. I have added the Django remote user modules and also enabled windows authentication on IIS. However, when I run queries I get login failed for ACCOUNTS\{computer_name} where it should be logging in using my username. How would it be possible to pass on the AUTH_USER or REMOTE_USER in the Django META for login?