PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » HTTP » HTTP_WebDAV_Server » Bug #3138

Authentication doesnt work in wondows client

Details

Submitted2005-01-08 18:17 UTC
Fromsvein at edbc dot no
Assignedhholzgra
StatusClosed
PackageHTTP_WebDAV_Server
PHP Version4.3.8
OSLinux
Roadmaps(Not assigned)

Comments

[2005-01-08 18:17 UTC] svein at edbc dot no

Description:
------------
Its a known issue that winoze clients doesnt work with the standard
Header("401 Unauthorized");
Header("WWW-Authenticate: Basic realm");

You have to change it so that 401 is the last header sent (around line 120 in server.php):
Header("WWW-Authenticate: Basic realm");
Header("401 Unauthorized");

Then it works ok also in winoze client.

Reproduce code:
---------------
Code in description field.

Expected result:
----------------
Working authentication

Actual result:
--------------
Broken authentication. The function check_auth(...) is never called when you click ok in the user/pass dialog.

If you do the mentioned changes auth works ok