Hi egl
IIS uses impersonate user, so when I write ASP thet uses it too, instead of reverting to the "remote user" on logoff, it reverts to NETWORK SERVICE. To remedy this, I need to capture the current user token before using logonuser so that afterwards I can impersonate using the stored token instead of passing a username and password.
Hope that makes more sense, I will try your example shortly.
thanks again!
Main Topics
Browse All Topics





by: egl1044Posted on 2009-10-12 at 14:39:30ID: 25555312
Hi dentab,
I am not sure the problem here but (user token) can all be accessed by the following:
LogonUser, CreateRestrictedToken, DuplicateToken, OpenProcessToken, or OpenThreadToken function.
Select allOpen in new window