title: iis access network share with windows authentication enabled
body: <p>I hope someone here can help me. 
  I've googled around for about 3 hours on this problem and found nothing helpful. 
  (And no, the answers under stackoverflow.com/questions/1539506 didn't help)</p>
  
  <p>I've an IIS 7 with PHP installed. I set the authentication mode for my test website to "windows authentication". That all works good (I receive the "REMOTE_USER" in PHP).</p>
  
  <p>Now i have to access a network share with "scandir()" and "is_file()" and some other functions, but I only get error messages like "Access is denied" or "failed to open dir: No such file or directory".</p>
  
  <p>The permissions are set correct: if i set the authentication to "anonymous" and set the "user identity" to my current test user, it all works fine, but i have to use "windows authentication"</p>
  
  <p>I also have tried to set up the network share as a virtual directory, but PHP didnt found this directory (phpinfo() says the "virtual directory support" is disabled but I didn't found anything about how to enable this)</p>
  
  <p>PS: I tried the same PHP configuration with an apache server and there it all works perfect. (with "auth_sspi" Module and "reqire valid-user" directive). But I have to get this work on the IIS.</p>