Mount WebDAV as drive in Windows 8

17
2014-04
  • Tedd Hansen

    I'm trying to mount a WebDAV share as a drive on Windows 8. I've tried setting up WebDAV server on both Windows 2012 and Debian Linux, but both yield the same error when attempting to mount from client.

    I have verified that the Linux WebDAV works through cadaver-command, it authenticates successfully with the credentials given and I am able to download files. I can also use a browser to access it successfully from client using these credentials. So WebDAV server seems to work.

    Windows 8 client however gives me this error:

    C:\>net use * http://10.0.0.5/webdav/
    System error 67 has occurred.
    
    The network name cannot be found.
    

    I get the same error if I try to mount using Windows Explorer. "/webdav/" is the subdirectory I have configured for WebDAV access on the server.

    There is no firewall blocking access to server. As I mentioned I am able to connect using browser, so network is not the issue.

    Are there any additional steps required to get this working and/or am I doing something wrong?

    Edit: Logs from Apache says the following (hostnames has been changed to protect the innocent):

    ==> /var/log/apache2/other_vhosts_access.log <==
    debian1.my.net:80 10.0.0.4 - - [13/Jul/2013:17:53:00 +0200] "OPTIONS / HTTP/1.1" 200 229 "-" "DavClnt"
    debian1.my.net:80 10.0.0.4 - - [13/Jul/2013:17:53:03 +0200] "OPTIONS /WebDAV HTTP/1.1" 200 193 "-" "Microsoft-WebDAV-MiniRedir/6.2.9200"
    debian1.my.net:80 10.0.0.4 - - [13/Jul/2013:17:53:03 +0200] "PROPFIND /WebDAV HTTP/1.1" 405 584 "-" "Microsoft-WebDAV-MiniRedir/6.2.9200"
    

    I'm also able to access WebDAV using .Net and SharpBox.

  • Answers
  • Tedd Hansen

    Found the Solution: Basic auth.

    Change BasicAuthLevel to 2 under HKLM\SYSTEM\CurrentControlSet\Services\WebClient\Parameters

    Then restart WebClient service:

    net stop WebClient
    net start WebClient
    

    My Apache2 config for those interested:

    NameVirtualHost *
    <VirtualHost *>
            ServerAdmin webmaster@localhost
    
            DocumentRoot /var/www/webdav/mounts
            <Directory /var/www/webdav/mounts>
                    Options Indexes MultiViews
                    AllowOverride None
                    Order allow,deny
                    allow from all
            </Directory>
    
            Alias /webdav /var/www/webdav/mounts
    
            <Location /webdav>
               DAV On
               AuthType Basic
               AuthName "webdav"
               AuthUserFile /var/www/webdav/passwd.dav
               Require valid-user
           </Location>
    
    </VirtualHost>
    

    Edit: Ended up configuring WebDAV to use Digest so it works without modifying registry on Windows client. Posted result here in case anyone is interested.

  • Falcon Momot

    If your server is running linux it is possible that the path might be case-sensitive.

    This error can also be caused by bad credentials; try specifying the /user option.


  • Related Question

    Any way to map WebDAV with SSL as network drive in Windows XP?
  • Alex S

    I'm trying to map WebDAV with SSL as a network drive in Windows XP. (I've been at this for several hours) I can read the share just fine using a browser and with Network Places, but it refuses to mount as a network drive.

    I've tried it using the Windows explorer interface and net use.

    Net use with the \\server@ssl:443\webdav method gives System error 53. https://server/webdav gives error 67.

    Any help would be appreciated.


  • Related Answers
  • Vivek Kumbhar

    Here's how I got it working on Windows Server 2008 R2.

    1. The Web site is pointed at C:\inetpub\webDAV.
    2. Authentication used is Windows Integrated
    3. WebDAV is Authorized to for All Users, with Read, Write permission.
    4. Command I use is "net use \win-2k8wss1@ssl:443"

    Error message: 53 means "The network path was not found."
    Error message: 67 means "The network name cannot be found."

    Please verify if the command you are using is correct.

    HTH

  • alex

    As far as I know, it cannot be done with Windows out-of-the-box. I believe you will have to either:

    • Settle for a different sharing protocol. Either SMB/Samba/CIFS or whatever you call it (possibly through a VPN), or maybe sshfs through Dokan.

    • Splurge for a non-free component that can do that, which might not exist. FTP ones do exist, though

    • Do it indirectly, using a Linux or Mac box- both are able to mount WebDAV as a fs, and re-export it through Samba or whatever.

  • sysadmin1138

    WebDAV through XP has a few gotchas. We're having to deploy a large number of volumes via WebDAV and have a lot of XP clients. It can work, but it takes planning.

    • WebDAV on XP can not support root-level folders. It has to be a sub folder. For instance, https://server.domain.org/ will not work at all, but https://server.domain.org/username/ will work.
    • WebDAV is dependent upon SSL certs. The SSL has to fully pass validation for it to work at all. The errors reported by the client do not always mention SSL, so check for this.
    • You don't do WebDAV maps the way you do regular old SMB mounts. You're adding a new network place, not a drive mapping.

    Select "Sign up for online storage or connect to a network server"

    You click on the link named "Sign up for online storage or connect to a network server", and then go through a few more dialog screens. The new Network Place will be visible under Network Places under Windows Explorer.

  • user53100

    Drive mounting tool on Windows XP and Windows Server 2003 does not support SSL as well as it does not work with any ports other than 80.

    On XP and 2003 it also does not support neither Basic nor Digest, you have to use Integrated Windows Authentication only.

    Here is the full description: http://www.webdavsystem.com/server/access/map_drive

    You will have to use drive mounting tool on Windows Vista, Windows 7 or any third-party WebDAV client like this one: http://www.webdavsystem.com/mapdrive