Re: Impersonation/Delegation - Access files at other server

From: Kim Larsen (nospam@test.test)
Date: 08/23/02


From: "Kim Larsen" <nospam@test.test>
Date: Fri, 23 Aug 2002 04:36:04 -0700


Hi

I have tried to add the " Enable computer and user
accounts to be thrusted for delegation" policy to the
IVAM_computer_name user, but it doesn't seem work.
I still can't access the files on my fileserver...

I you have any other ideas, I would like to hear them.

But anyway, thanks for the help

/Kim

>-----Original Message-----
>Is the IIS machine account enabled for delegation?
>The ASPNET account should not have the " Enable computer
and user accounts to be thrusted for delegation", this
makes no sense as
>it's not an interactive account.
>
>Willy.
>
>"Kim Larsen" <nospam@test.test> wrote in message
news:71f201c249ef$8e2adba0$a4e62ecf@tkmsftngxa06...
>> Hi
>>
>> I have some problems accessing som files on a different
>> server though my ASP.Net application. My webserver and
>> fileserver is in the same domain.
>>
>> I use Windows Authentication on the IIS 5.0 server,
>> Anonymous access is turned off.
>>
>> I have tried to use impersonation, but it dosen't seem
to
>> work.
>>
>> I have turned on impersonation in the web.config and
>> machine.config files.
>>
>> e.g:
>> Web.config:
>> <identity impersonate="true" />
>>
>> Machine.config
>> <processModel ... comAuthenticationLevel="Connect"
>> comImpersonationLevel="Impersonate" .../>
>>
>> The account i'm logged on as, has the "Account is
thrusted
>> for delegation" flag set. The ACL on the fileserver is
>> set, so the account has access to the files i'm trying
to
>> access.
>>
>> In the localpolicy settings the ASPNET account is member
>> of the policy "Enable computer and user accounts to be
>> thrusted for delegation".
>>
>> My application works fine, when I'm accesing it locally
on
>> the webserver, but when I try to access the application
>> from different computers I get the access errors.
>>
>> // Error start//
>>
>> Access to the path "\\fileserver\test\userlist.txt" is
>> denied.
>> Description: An unhandled exception occurred during the
>> execution of the current web request. Please review the
>> stack trace for more information about the error and
where
>> it originated in the code.
>>
>> Exception Details: System.UnauthorizedAccessException:
>> Access to the path "\\fileserver\test\userlist.txt" is
>> denied.
>>
>> The ASP.NET process is not authorized to access the
>> requested resource. For security reasons the default
>> ASP.NET process identity is '{machinename}\ASPNET',
which
>> has limited privileges. Consider granting access rights
to
>> the resource to the ASP.NET process identity.
>>
>> To grant ASP.NET write access to a file, right-click the
>> file in Explorer, choose "Properties" and select the
>> Security tab. Click "Add" to add the "{machinename}
>> \ASPNET" user. Highlight the ASP.NET account, and check
>> the Write box in the Allow column.
>>
>> // Error end
>>
>>
>> Hope you can help me
>>
>> Kim Larsen
>>
>>
>>
>
>
>.
>



Relevant Pages

  • Re: ASP using ADSI
    ... Kerberos auth (which you need for delegation) requires users in AD. ... I've just done all the ASP ... account in every bind operation. ... My environment is an NT4 domain that is being migrated to W2K3 AD domain. ...
    (microsoft.public.windows.server.active_directory)
  • Re: System.UnauthorizedAccessException
    ... Implement Kerberos Delegation for Windows 2000 ... Kerberos delegation allows you to flow an authenticated identity ... The server process account (the user account under which the server ... Confirm that the Server Process Account is Trusted for Delegation ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: System.UnauthorizedAccessException
    ... Implement Kerberos Delegation for Windows 2000 ... Kerberos delegation allows you to flow an authenticated identity ... The server process account (the user account under which the server ... Confirm that the Server Process Account is Trusted for Delegation ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: System.UnauthorizedAccessException
    ... It looks like this article applies to Windows 2000 only, ... Kerberos delegation allows you to flow an authenticated identity ... The client account that is being impersonated is not marked as ... Confirm that the Server Process Account is Trusted for Delegation ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: "Account is trusted for delegation" is not shown
    ... Where SPN is the servicename/computername (MESSENGER/SERVERNAME for ... This will add the delegation tab to the useraccount you specified. ... account with the Setspn utility in the support tools on your CD. ... It should be caused by raising functional level to windows 2003. ...
    (microsoft.public.windows.server.general)