Forum OpenACS Q&A: webDAV Authentication Difficulties
In Windows 7 it is possible to map a network drive in the o/s file manager (called Windows Explorer) to a drive letter or network location, just as you can on OSX.
When I enter the dav url:
...I see a security window that asks for username and password, just as I would expect. However, when I enter the email address and password that I normally use to login to the OpenACS (the sitewide admin ID), the authentication fails and the error given is that the network location seems to be invalid.
What am I doing wrong?
This document that strongly suggests that the problem is that Windows 7 cannot cope with basic authentication for webDAV and needs to use digest authentication:
Does anyone have any experience of configuring Aolserver tDAV to use digest configuration? This may well make OpenACS webDAV Windows 7 friendly as well.
I can confirm that I got OpenACS Webdav working fine a couple of years back with a Windows XP PC, so I guess it's probably a Windows 7 issue.
Thanks for the reply. I found this TechNet article that seems to confirm that Windows 7 and Windows Vista both ship with 'Basic Authentication' switched off. This article details how to switch it back on again:
Switching it back on is a little involved and has unknown consequences for security beyond webDAV, so I would like to establish whether openACS webDAV support can be configured to use digest authentication. If not, as it is written in tcl it is not beyond the realms of possibility that I could add it, but I'd probably need some guidance for sources of information.
Digest Authentication is inherently insecure so, while it will be easier to work with Windows 7 clients, you will still need to use SSL to secure the system. That's the main reason we did no bother with digest authentication when the WebDAV support was built.
Another option is to use a third-party client, and that is what all my users have traditionally done. There is one called WebDrive that is very popular ( I have no connection to this company, but I do have experience with the product working with OpenACS WebDAV.)
Thanks for the reply. I 've been googling around this today and it is obvious that respect for Microsoft has not been enhanced by their various webDAV implementations!!
First I thought the problem was specific to the default authentication behaviour of Windows 7, but having checked the appropriate registry key it turned out that basic authentication was switched on by default after all. I have now tried in a Windows XP VM and can confirm that this doesn't work either.
I suspect that the reason I have never been able to get this to work with any version of Windows over the years is that the particular combination of OpenACS settings I choose is incomprehensible to Microsoft. Because I always like authentication to be encrypted, I set OpenACS to redirect to https for login. However, because I am a cheapskate, most of my domains have self-signed certificates.
I suspect that even though I have entered the webDAV url as an https url complete with the port number, Windows chokes when it gets redirected for authentication on a domain with a certficate signed by an unknown CA. I have tried importing the CA but this doesn't help.
I might try spending some money on a certificate to see if that works, but given the multiplicity of potential glitches in various mod states of Windows, I think your idea of using a standalone client is probably the best one.
It really is very strange that they can't sort this out.
"WebDAV Mini Redirector limitations:
•No support for HTTPS, i.e. no support for secure connections.
•Your WebDAV server must be using port 80, the default port.
•Typically fails when transfering larger files.
•Gets confused if the user does not have access to read and/or write to a file or directory."
So that kills it stone dead then. Even if digest authentication were to be implemented, you'd still want to use https, and you're very unlikely to want to do that on port 80.
How astonishingly mediocre!!
What a shame Microsoft can't make this work out of the box.