Re: .Net Authorization and NTFS permissions

From: Yunus Emre ALPÖZEN [MCSD.NET] (yemre_at_msakademik.net)
Date: 05/29/05


Date: Sun, 29 May 2005 20:44:56 +0300

If i clearly understand what u mean, u would like to log requests. And you
want be aware of if user is authenticated or not ?

My advice u, to handle Application AuthenticateRequest event. Because of
using Windows authentication, the request authentication is done
automatically. You should handle authentication attempy at
AuthenticateRequest stage. At this stage User property is set to null. After
this stage, user property is set. U can log client ip or any relevant
information at this stage without using user property.....

Hope i cleary understood what u mean and what u need....

-- 
Thanks,
Yunus Emre ALPÖZEN
BSc, MCSD.NET
"Wade Mebed" <WadeMebed@discussions.microsoft.com> wrote in message 
news:B859D30A-B54F-455F-B7CF-9910DDD08346@microsoft.com...
> We get inconsistent application behavior on Authorization based on NTFS 
> ACL
> Permissions.
>
> We implemented an ASP.NET 1.1 web application using NTFS ACL 
> Authorization,
> and implemented a security audit logging call in the
> Application_AuthorizeRequest event of the Global.asax:
> protected void Application_AuthorizeRequest(Object sender, EventArgs e)
> {
> AuditLog.LogAccessAttempt();
> }
>
> The audit logging is designed to log access attempts - both authorized and
> unauthorized.  For the web application we use integrated windows
> authentication (this is an intranet application). On the web application
> directory NTFS permissions, we add the roles which are authorized to the
> application.  In the web.config we configure the authentication and
> authorization as follows:
>
>  <authentication mode="Windows" />
>
>  <authorization>
>    <allow users="*" />
>  </authorization>
>
> On the development servers upon which we intitially tested the
> unauthenticated users received 403 HTTP response codes, and their access 
> was
> logged by our audit logging mechanism (the call embedded in the
> Application_AuthorizeRequest).
>
> Then we found that on the QA servers, although the unauthenticated users
> received a 401.3 HTTP response code, the audit logging for unauthorized
> access was not executed.  Debugging showed that IIS never passed control 
> to
> the Application_AuthorizeRequest event. The requests of users who are not
> authorized via NTFS ACL's (yet are authenticated) do not get to the
> Application_AuthorizeRequest event.
>
> We checked that IIS and the NTFS ACL's were configured the same on all
> machines, and that they all ran the same OS and IIS versions: Windows 
> Server
> 2000 SP4 and IIS 5.00.
>
> NTFS ACL's included group that needed access with read, read & execute, 
> and
> list file contents.
>
> Why do we see this inconsistent behavior? 


Relevant Pages

  • Re: IIS 5 looses authenticated user
    ... > We are using NTFS Permissions. ... >> then authentication if any, then web permission, and finally ntfs ... >> localsystem for inetinfo, iwam for dllhost, and request identity is the ...
    (microsoft.public.inetserver.iis.security)
  • Re: Integrated Windows Authentication & Non-DomainController Webse
    ... your suggestion was correct –it was the NTFS ... > but NTFS authentication had been set - and this hasn't made a difference ... > exact problem - the WebServer is part of the Domain, ... If the site is in Internet zone then IE will not send ...
    (microsoft.public.inetserver.iis.security)
  • Re: Setting up a web dev. test server with remote access
    ... NTFS will have to be used. ... Use Basic Authentication for the logins. ... >inactivating the anonymous account for IIS, ...
    (microsoft.public.inetserver.iis)
  • Re: get redirect url before login
    ... I suggest using HTTP Module for authentication and authorization. ... all requests will go through one central place where you will be doing ... >> My users who try to access a page before login are ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: NTFS permissions failed on BDC setup
    ... I'm usually enable audit for system logon and NTFS access to troubleshoot ... > Windows 2000 Advanced Server), as a Replication Server, ... > 'Anonymous Authentication' has been Checked Out. ... > required NTFS rights on that particular folder and file ...
    (microsoft.public.win2000.security)