Welcome to MobyThreads.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

File Permission Problems In Authentication Filter

 
   Web Hosting and Web Master Forums (Home) -> IIS RSS
Related Topics:
Minimum Permission to run ISAPI Filter under IIS 6.0 - I was wondering if there are any articles regarding the that are required to run ISAPI filter in II6.0 with regular domain user as what kind of ACL (system I need to be able to load ISAPI Filter under domain..

Can I filter file types with FP Entensions? - Is there a way to filter what file a user has access to when they log in using frontpage I have a client whom I want to give Front Page access to, but I want to not allow him to change the ASP pages... Just the HTM..

Permission problems with IIS 6.0 - Hello, We have an that involves client making calls to ISAPI dll on an IIS Server which then connects to a Database through an server. We were running this on IIS 5.0 and it used to work fine with the different

IIS Permission Problems - I have a problem at work with IIS. I have an sitting on a webserver with IIS 5.0. Today, I tried to alter the of the folders so that a user box would quit coming up when I pull up the

IIS permissions (IUSR user problems) - When I run a check server on any of my websites (Windows 2003 server IIS 6.0) the are reset without the IUSR or OWS users. If I go into the of the site and disable anonymous access and re-enable it, the IUSR still has no..
Next:  IIS: IIS 6.0 not serving .exe  
Author Message
user3144

External


Since: Nov 10, 2004
Posts: 1



(Msg. 1) Posted: Wed Nov 10, 2004 7:41 pm
Post subject: File Permission Problems In Authentication Filter
Archived from groups: microsoft>public>inetserver>iis (more info?)

Hi Group!

I'm writing a custom authentication filter (derived from CHttpFilter).
In the constructor, I call the loadConfig() function, which tries to
read a configuration file from a shared location on the local network.

When I try to open the file, I get a permission denied error. A call
to GetUserName() returns "SYSTEM". So I tried calling LogonUser() and
ImpersonateLoggedOnUser() with a valid domain user that has full access
to the file, before trying to open it. A call to GetUserName() returns
the name of the network user. I still get permission denied errors.

Appropriate Parts of the code:

rc = LogonUser(userid, domain, password, LOGON32_LOGON_NETWORK,
LOGON32_PROVIDER_DEFAULT, &token);
// check for errors
rc = ImpersonateLoggedOnUser(token);
// check for errors
h = CreateFile(configFile, GENERIC_READ,
FILE_SHARE_READ|FILE_SHARE_WRITE, NULL,
OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
// check for errors
// process the file
CloseHandle(h);
RevertToSelf();

Why isn't it working?

Thanks!
jcf

 >> Stay informed about: File Permission Problems In Authentication Filter 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting and Web Master Forums (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can 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



[ Contact us | Terms of Service/Privacy Policy ]