 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
C.H. Luke Guest
|
Posted: Wed Jun 07, 2006 1:36 am Post subject: Impersonation |
|
|
My ISAPI Dll (running on IIS6, Win2003 server) needs to access files
in a folder that has restrictive permissions on it, and send the
requested file to the user. In the OS, the DLL is set as anonymous,
and I use LogOnUser to log on the Administrator account, then
ImpersonateLoggedOnUser (to impersonate the Administrator account) to
allow the DLL to "see" the files in the restricted folder.
The two WinAPI calls LogOnUser and ImpersonateLoggedOnUser succeed
whether the DLL is set to anonymous or Basic Authentication, however,
access to the files is blocked when the DLL has Basic Authentication
"ON" but not when the DLL is anonymous.
It seems that Basic Authentication "overrides" my impersonation, even
though the LogOnUser and ImpersonateLoggedOnUser both succeed.
Is there a way to tell the OS to allow the impersonation to "work"
even when Basic Authentication is *on*? |
|
| Back to top |
|
 |
AnttiV Guest
|
Posted: Thu Jul 06, 2006 8:11 am Post subject: Re: Impersonation |
|
|
Have you had any success on the matter? I'm working on
a similar problem as I have a XP computer (my development computer) and a 2003 Server that is supposed to run the ISAPI DLL eventually. Everything works fine on XP but on Server it doesn't. Event Viewer shows that loggin on and impersonation works but the code still fails with access denied. I guess I'll try to go through all the settings again.. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|