Embedding Login and Impersonation into Django

Mohamed Abdelhack <[email protected]>
Newsgroups gmane.comp.python.windows
Message-ID <CAMr0NfUEv1rhH-JnSrMd0Jtn0jDP49eG7DDONiO+OCudnG4MyQ@mail.gmail.com>
Hi everyone,

I am currently building a webapp using Django that will run onto a windows
server that comprises an MS SQL server that uses windows authentication. I
was unable to make IIS or Apache pass on the user identity to Django
(probably double hopping) so I thought of implementing impersonation from
within the app itself. I cannot make an account for the application pool
itself for security reasons and I cannot switch to username password
authentication for the same reasons. For that, I have a few questions to
assess my options.
- Is there an option in pywin32 to login an already authenticated user
without reentering the password? Context: Django can make authentication
requests to windows but cannot access the process itself so I thought to
piggyback off of that.
- Is there an option to keep the logged on/impersonated user rather than
the handle getting destroyed? I noticed that after I log in, refreshing the
page after causes the handle to be destroyed and login needs to be redone.

Thank you very much,
Best,
Mohamed

_______________________________________________
python-win32 mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-win32
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.