Re: Accessing shares on other servers
- From: "Bruce Barker" <brubar_nospamplease_@xxxxxxxxxx>
- Date: Wed, 5 Oct 2005 09:28:05 -0700
this will not work unless you are using kerberos and enable creditials
forwarding.
this is due to the 1 hop rule, as asp.net does not have the users primary
token, so it can access networks services.
-- bruce (sqlwork.com)
"S.M. Altaf [MVP]" <smaltaf@xxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:eySGldayFHA.3312@xxxxxxxxxxxxxxxxxxxxxxx
> Kev,
>
> You may be using Windows Authentication, but when your ASP.NET application
> attempts to access those files, it does so under the security context of
> the ASP.NET worker process. What you need to do is to set user
> impersonation in your ASP.NET application so that the application runs
> under the security context of the person who is using it.
>
> Open up your web.config file, and change the impersonate tag to look like
> this:
>
> <identity impersonate="true" />
>
>
> Read more about impersonation on MSDN:
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsent7/html/vxconImpersonation.asp
>
> HTH,
> S.M. Altaf
> [MVP - VB]
>
> --------------------------------------------------------------------------------
> All that glitters has a high refractive index.
> www.mendhak.com
>
>
> "Mantorok" <none@xxxxxxxxxxxxx> wrote in message
> news:di07c5$cbs$1@xxxxxxxxxxxxxxxxxxxxxx
>> Hi
>>
>> I have an app and during some code-behind it attempts to fetch some files
>> from another server-share, IIS is configured to use the users
>> windows-login as authentication and although we have access to this share
>> on the other server an exception is thrown, the app says "Access Denied"
>> and waffles on about giving the ASPNET machine account access to the
>> share - but we don't need to do this as we are using windows
>> authentication.
>>
>> Any ideas? I'm confused.
>>
>> Kev
>>
>
>
.
- References:
- Re: Accessing shares on other servers
- From: S.M. Altaf [MVP]
- Re: Accessing shares on other servers
- Prev by Date: Re: WebRequest for images
- Next by Date: Re: How to get all web controls from a page?
- Previous by thread: Re: Accessing shares on other servers
- Next by thread: program is end, but the page seems still be running?
- Index(es):
Relevant Pages
|