Re: Keep impersonated user during session. Please help.
From: Egbert Nierop \(MVP for IIS\) (egbert_nierop@nospam.com)
Date: 02/20/03
- Next message: Propje: "REQ: How can I read FrontPage Admin/Author/Browse permissions for each subweb?"
- Previous message: Egbert Nierop \(MVP for IIS\): "Re: IIS 6 & ASPX"
- In reply to: Thomaz72: "Keep impersonated user during session. Please help."
- Next in thread: Thomas Jonsson: "Re: Keep impersonated user during session. Please help."
- Reply: Thomas Jonsson: "Re: Keep impersonated user during session. Please help."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Egbert Nierop \(MVP for IIS\)" <egbert_nierop@nospam.com> Date: Thu, 20 Feb 2003 16:44:13 +0100
"Thomaz72" <thomas@resolut.se> wrote in message
news:cb260.0302200711.12a3835f@posting.google.com...
> I'm trying to solve a common problem (seen lots of questions here on
> it here but no solution). The problem is how to keep the impersonated
> user during the rest of the ASP session. I'll explain.
Basicly you should use as a call to LogonUser... with LOGON32_LOGON_NETWORK
as parameter ...
The password and the user should be stored somewere (safely) in the session
so that at each request, the logon can be reprocessed.
Indeed, this is not too efficient but LOGON32_LOGON_NETWORK does quite a
lot caching already. IIS itselves, would cache logon requests (when you use
basic-clear text login)...
If you like to do it more efficiently, you should cache the logon
credential. Be assured that such cache *cannot* work across a web farm...
-- ASP Session replacement for webfarms http://www.nieropwebconsult.nl/asp_session_manager.htm > If u from an ASP page calls a dll who changes the impersonated user > the current worker thread of ISS uses this security context. Works > perfect. But the next request from the same browser creates a new > worker thread with the cached security token from IIS and the security > context of the last request is gone. > > Or is this imposible (would be a very beautiful security solution) so > i'll have to use a ISAPI for the task :-( > > Tried to explain this litle problem as god as i could. > > //Thomas J of sweden
- Next message: Propje: "REQ: How can I read FrontPage Admin/Author/Browse permissions for each subweb?"
- Previous message: Egbert Nierop \(MVP for IIS\): "Re: IIS 6 & ASPX"
- In reply to: Thomaz72: "Keep impersonated user during session. Please help."
- Next in thread: Thomas Jonsson: "Re: Keep impersonated user during session. Please help."
- Reply: Thomas Jonsson: "Re: Keep impersonated user during session. Please help."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|