Skip to content

Instantly share code, notes, and snippets.

@tshipenchko
Last active July 4, 2024 09:48
Show Gist options
  • Save tshipenchko/e56cda04358169d695938ae2fede6b29 to your computer and use it in GitHub Desktop.
Save tshipenchko/e56cda04358169d695938ae2fede6b29 to your computer and use it in GitHub Desktop.
Windows WebDav Basic Auth (Apache + LDAP)

Source

https://www.yeehawup.com/2011/07/mapping-a-network-drive-to-webdav-share-in-windows-7/

Fix

Latest versions of Windows WebDav in Explorer uses Digest Authorization only, but Apache with LDAP supports only Basic Auth.

To enable back support of Basic Authorization we should enable WebClient service (set automatic in services.msc) and allow Basic Auth using regedit for WebClient

Enable WebClient

3.) Run Windows Update (Start > All Programs > Windows Update) to make sure the latest patches are installed on your system

4.) Install any necessary updates and Reboot Windows if necessary

5.) Make sure WebClient Services are active and starts on boot

5a.) Start > Search > Type: services.msc > Select Services.

5b.) Find WebClient > Select

5c.) Select Automatic > Ok > Exit

Allow Basic Auth for WebClient

6.) Modify the Windows registry, this will enable Windows to accept basic authentication for SSL and non-SSL shares.

6a.) Start > Search > Type: regedit > Select regedit.

6b.) The registry key of interest to find is: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WebClient\Parameters

6c.) Select BasicAuthLevel (if it does not exist, create the key)

6d.) Change the value to 2. Select OK > File > Exit

7.) Reboot Windows

Connect WebDav as Drive

8.) Map your WebDAV share as a network drive.

8a.) Using Windows Explorer Select My Computer > Select Map Network Drive.

8b.) Put your WebDAV URI as the location and complete the desired settings (i.e. reconnect on login and use different credentials).

Hopefully the WebDAV share will connect and you can access it as a mapped drive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment