From:             
Operating system: win64 - W2008R2
PHP version:      5.3.2
Package:          *Directory/Filesystem functions
Bug Type:         Bug
Bug description:opendir() cannot open UNC paths in IIS7 using passthrough auth.

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

-- 
Edit bug report at http://bugs.php.net/bug.php?id=52376&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=52376&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=52376&r=trysnapshot53
Try a snapshot (trunk):              
http://bugs.php.net/fix.php?id=52376&r=trysnapshottrunk
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=52376&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=52376&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=52376&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=52376&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=52376&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=52376&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=52376&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=52376&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=52376&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=52376&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=52376&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=52376&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=52376&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=52376&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=52376&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=52376&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=52376&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=52376&r=mysqlcfg

Reply via email to