BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Impersonation

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Isapi-WebBroker
View previous topic :: View next topic  
Author Message
C.H. Luke
Guest





PostPosted: Wed Jun 07, 2006 1:36 am    Post subject: Impersonation Reply with quote



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





PostPosted: Thu Jul 06, 2006 8:11 am    Post subject: Re: Impersonation Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Isapi-WebBroker All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.