Re: Permission Denied when writing text file from ASP Site

From: David Wang [Msft] (someone_at_online.microsoft.com)
Date: 04/26/05


Date: Mon, 25 Apr 2005 23:49:00 -0700

This is classic "double hop" scenario.

With IIS5, you must setup and configure Kerberos to be used everywhere as
well as configure delegation in order to do this. Otherwise, it is not
possible with Integrated Authentication. On IIS6, you do not need to use
Kerberos to authenticate with the client, but the servers must have Kerberos
configured and have delegation enabled.

This is for security reasons. Just because someone can use Integrated
Authentication to login to the web server, it does NOT mean the web server
can re-use that identity to write a file to another server. Why? Let me use
another example. Suppose you authenticate to a web server. Do you allow the
web server to use your credentials to withdraw money from your bank account?

For example, your scenario will work the way you want if you change
Integrated authentication to Basic authentication. This is because Basic
authentication is insecure and implicitly delegates authority. Integrated
authentication does not do this without explicit configuration.

-- 
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"GregRoberts" <GregRoberts@discussions.microsoft.com> wrote in message
news:6E676429-99D0-427C-8D6F-DE06DAEF4275@microsoft.com...
Additional Information:
The export file is a text file created and written using fso.
"GregRoberts" wrote:
> We currently have a custom ASP front end application for our SQL 2000
> database.  The ASP is running on a Windows 2000 Advanced Server with SP-4
and
> IIS 5.  The ASP files are physically located on the IIS server. The export
> files must be written to a file server in the domain.
>
> Configuration:
> Domain
> |-    IIS Server
> |        |-   ASP Web Site        (C:\wwwroot)
> |
> |-    File Server
>          |-   Export Share
>
> The application requires Anonymous Authentication be disabled, and ONLY
> Window Intergated Authentication be enabled. The appliaction requires the
NT
> UserID for internal security and feature sets.  Different deparments have
> different permissions and modules available.
>
> Permissions on the export share allow Full Control to Authenticate Users.
> Everyone does not have permission to the share. (That's an issue to take
up
> with the network admin. :) )
>
> When the user selects the export function the following error is
displayed.
>
> Error Type:
> Microsoft VBScript runtime (0x800A0046)
> Permission denied
> /{ModuleDir}/{ExportModule}.asp, line 436
>
>
>
>


Relevant Pages

  • Re: PROBLEM: ASP on IIS 5 secured via "Windows Integrated Authentication" accessing "
    ... I have two virtual directories on same server with Integrated ... If i use basic authentication, ... as .NET framework config file) as well as Delegation as specified by the ... > could do whatever you want in your ASP page on behalf of the Domain Admin. ...
    (microsoft.public.inetserver.iis.security)
  • Re: Kerberos logon to Terminal Server prevents folder redirection
    ... Pass-through refers to the client browser passing through credentials to the Web Interface server; so you can still use Pass-through without enabling the option "Use Kerberos authentication to connect to servers". ...
    (microsoft.public.windows.server.security)
  • Re: Integrated Windows Authentication Timeout?
    ... Is it possible that a different host name is being used for one of the subsequent requests that would break Kerberos auth? ... If you have "Negotiate" authentication set in the metabase, then this can still negotiate down to NTLM if for some reason the protocol thinks that Kerberos is unavailable. ... server. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: iis problems with some xp clients - kerberos issue?
    ... is the browser even attempting Kerberos Authentication? ... the webserver failing to get a service ticket for the SQL Server etc. ... Check that the site is in IE's Intranet zone (IE doesn't attempt to Kerberos ... Both access SQL ...
    (microsoft.public.inetserver.iis.security)
  • Re: REPOST - IIS6 /WebDAV/NTLM/Kerberos and Remote Storage
    ... >are using to authentication. ... Kerberos tickets target a service ... >authenticate to IIS from the client browser. ... structure on a Win2K server. ...
    (microsoft.public.inetserver.iis)