Hi,

I don't know if this is the right place for my problem, so I'm sorry if 
not...I'm new in Apache and Python and google now for two weeks but could't 
find a solution for my problem, so hopefully you have some ideas...

I'm using Apache 2.2 64bit on Windows 7  with WSGI 3.5 and SSPI 1.0.4., 
Python 2.7 and Flask
In the httpd.conf I use this configuration:

WSGIScriptAlias /vedo "d:/Apache2/htdocs/tools/vedo/app.wsgi"
WSGIPassAuthorization On


<Directory "d:/Apache2/htdocs/tools/vedo">
    Order allow,deny
    Allow from all
 </Directory>


The application is working fine except one problem:
I need to work in the context of the user who starts the request to logon 
to my SQL-Server within my windows domain.

I get the remote_user using: 

         request.environ.get('REMOTE_USER')

But the logon to the SQL-Server is always made by the user who starts the 
apache service.
Here's a example I used to logon a certain user from our microsoft domain 
withing my application:

    hObj = win32security.LogonUser("user", "domain", "password", 
win32con.LOGON32_LOGON_INTERACTIVE, win32con.LOGON32_PROVIDER_DEFAULT)
    win32security.ImpersonateLoggedOnUser(hObj)

The question is, how or where can I get the handle for the remote_user 
because I don't have the password for this users???
Is it possible to do this generally?

I'm thankful for any help

Mario



-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to