|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2010-07-19 12:38 UTC] ryan at kisc dot edu dot np
Description:
------------
This seems to be identical to #50542 but that one was closed and I couldn't do anything to it.
Basically it was marked closed because with passthrough-authentication essentially disabled by putting a username in "physical path credentials" and selecting ClearText in the "Physical Path Credentials Logon Type" both in advanced settings, this can be made to work so long as that configuration is acceptable.
I too am having trouble with this and unfortunately the solution of editing
physical path credentials breaks the pass through authentication to the
database, ldap, and other things. This all worked on 5.3.1 with IIS6 on W2K3 but
on IIS7 with W2K8R2 no joy. So I upgraded to 5.3.2, still no joy. My application is so reliant on the pass-through authentication that when I do arrange things such that opendir works (clear-text + specific physical path credentials) the system becomes a single user system!
So I can confirm the workaround mentioned for #50542 works if the environment allows for it, but mine does not. Any other ideas? If I connect to IIS using the environment requirement of network type auth and pass-through authentication it does NOT work, though it really should. If I use that exact same user in the "physical path credentials" field and set "clear text" opendir suddenly works. Please don't close this as it really is a bug and apparently specific to IIS7
Test script:
---------------
<?PHP
error_reporting(E_ALL);
opendir("any UNC path at all"); //example //someserver/someshare/somefolder
?>
Expected result:
----------------
I expect to get no errors.
Actual result:
--------------
Warning: opendir(//someserver/someshare/somefolder,//someserver/someshare/somefolder) [function.opendir]: Access is denied. (code: 5) in C:\inetpub\wwwroot\testdir.php on line 2
Warning: opendir(//someserver/someshare/somefolder) [function.opendir]: failed to open dir: No such file or directory in C:\inetpub\wwwroot\testdir.php on line 2
PatchesPull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 09:00:01 2025 UTC |
Hi I am having the same problem with PHP 5.3.5 running under IIS 7.5, FastCGI, Windows Server 2008 R2 where I am simply trying to access a file on another server using a UNC path. $uploadfile = "\\<server>\<share>\<folder>\<file>.txt"; $fh = fopen($uploadfile, 'r') or die("Can't open file $uploadfile"); I have tried granting "everyone" full permissions for the share and the file system but it still does not work. This code works perfectly if the file is stored on the same server and is accessed through a local path. Other things I have tried inlcude: - setting the defaultappool to use a specific user and granting that user permissions on the share and file system - using "network" as above Any other ideas on this one?Greetings, I have the same problem, expect that, when testing this script: <?PHP error_reporting(E_ALL); opendir("//node1/wwwroot/public/joomla"); ?> I get no errors, PHP actually likes this path, no problem. But, this same path is not accepted by Windows. Instead, the correct path that Windows 2008 (and IIS) recognizes is: \\node1\wwwroot\public\joomla This is quite an annoying problem. Windows likes \ and php likes / in the path. Any ideas? Thanks Alex