Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm trying to configure a website, which has to show some content from the local drive (that's the main site: http:/ /mysite/) but also it has to show some info stored on another server (on the same domain), which is on a UNC shared folder(\otherserver\cache).

When I configure my Virtual Directory to take its content from the UNC folder under the mian site (http:/ /mysite/remote_cache/) it doesn't show its content.

I gave everyone full control on the shared folder, and read / list directory to the virtual directory.

Any clue on how to configure this properly??

share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

You need to make sure that the web site / app pool / IIS is running under the security context of a user who has access to network services, which is not the case by default.

You can also turn anonymous access off for the virtual directory and use delegation to access the shared folder, however that also requires setting up delegation trusts for the server. You need to determine SPN's for your web service and add them to the machine account in Active Directory so that two-hop authentication can happen. Basically, this allows IIS to impersonate the client that is connecting to it and "borrow" that user's credentials to connect to the remote share. Here is an Technet article that talks about it.

share|improve this answer
    
Could you please elaborate a little bit more? What do you mean by context? security context? What does setting up delegation consist of? –  Nicolas De Irisarri Jun 9 '09 at 20:10
    
No problem, edited with more detail. –  squillman Jun 9 '09 at 20:35
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.