Hi,
I found a solution for your conundrum.
There is a program called OpenList that can connect to your cloud provider Pan Baidu. It creates a WebDAV server, and then you can use Rclone to connect to the WebDAV server and mount it as a drive letter.
Here are the instructions:
Here is a link to the OpenList software. Click on "Getting Started" and you'll be led to the download page.
rclone does not currently have a native Baidu Wangpan (Baidu Netdisk) backend. One workaround is to use OpenList as the intermediary. OpenList connects to Baidu Wangpan and provides a WebDAV interface; rclone then connects to that WebDAV interface.
The arrangement is:
Baidu Wangpan → OpenList → WebDAV → rclone
1. Install and start OpenList
Download and install OpenList for your operating system. On Windows, the standalone version can be started with:
openlist.exe server
OpenList normally listens on port 5244. The first run provides an administrator password.
Open the administration interface in a browser:
http://127.0.0.1:5244
Log in with your OpenList administrator account.
2. Add Baidu Wangpan to OpenList
In the OpenList administration interface, go to:
Storage → Add
Select Baidu Netdisk as the storage driver.
You will need to authorize OpenList to access your Baidu Wangpan account. OpenList currently documents several methods for obtaining the required Baidu refresh token.
The simplest method for someone without their own Baidu developer application is to use OpenList's token-acquisition page and the OpenList-provided API option. Follow the current Baidu instructions here:
OpenList Baidu Netdisk configuration instructions
After obtaining the refresh token, enter it in the Baidu storage configuration in OpenList and save the storage.
You should now be able to browse the contents of your Baidu Wangpan account through the OpenList web interface.
3. Enable WebDAV access in OpenList
OpenList itself acts as the WebDAV server. You do not need to run rclone serve webdav.
OpenList's WebDAV endpoint is:
http://127.0.0.1:5244/dav/
The username and password are your OpenList username and password, not your Baidu username and password.
Make sure the OpenList user that rclone will use has WebDAV Read permission. If you want rclone to upload, delete, rename, create directories, etc., also enable WebDAV Management and the appropriate filesystem permissions for those operations.
OpenList documents the WebDAV permissions and connection settings here:
OpenList WebDAV documentation
4. Create the WebDAV remote in rclone
Run:
rclone config
Choose:
n) New remote
Give it a name, for example:
name> baidu
For the storage type select:
WebDAV
or enter:
Storage> webdav
For the URL enter:
http://127.0.0.1:5244/dav/
For the WebDAV vendor, choose:
Other
Enter your OpenList username and OpenList password when requested.
You normally do not need the advanced configuration options.
Save the remote.
rclone's WebDAV configuration documentation is here:
rclone WebDAV documentation
5. Test the connection
First test whether rclone can see the OpenList directories:
rclone lsd baidu:
You can also list files:
rclone ls baidu:
If Baidu is the only storage configured in OpenList, you should see the Baidu storage/directory structure.
If you have several cloud services configured in OpenList, they can all appear under the WebDAV root. You can therefore address the Baidu storage by its OpenList mount name, for example:
rclone lsd baidu:/Baidu
Replace Baidu with whatever mount path/name you assigned in OpenList.
6. Mount it as a drive with rclone
Once the WebDAV remote is working, it can be mounted normally with rclone.
For example, on Windows:
rclone mount baidu:/Baidu B: --vfs-cache-mode full
If the Baidu storage itself is already the appropriate root:
rclone mount baidu: B: --vfs-cache-mode full
You should then have a B: drive in Windows backed by:
Windows B: → rclone → WebDAV → OpenList → Baidu Wangpan
--vfs-cache-mode full is useful when applications expect normal filesystem behavior, although the appropriate cache mode depends on how the mounted drive will be used.
Important distinction
OpenList is doing the Baidu-specific work. rclone does not communicate directly with Baidu.
Also, there is no reason to use:
rclone serve webdav
for this configuration. That command does the opposite job: it makes an rclone remote available as a WebDAV server. Here, OpenList is already the WebDAV server and rclone is the WebDAV client.
So the essential configuration is simply:
Baidu Wangpan
↓
OpenList Baidu driver
↓
http://127.0.0.1:5244/dav/
↓
rclone WebDAV remote
↓
rclone mount
↓
Windows drive
One final consideration: Baidu's authentication/API requirements can change, so the OpenList Baidu driver documentation should be consulted when initially obtaining the refresh token. The rclone side is ordinary WebDAV and does not require any Baidu-specific configuration.
I verified this against the current OpenList documentation: OpenList's WebDAV endpoint is /dav/, it uses the OpenList account credentials, and its Baidu driver currently documents three token-acquisition methods. pages.doc.oplist.org
I also deliberately kept rclone serve webdav out of the procedure because, as you suspected, it isn't needed here—OpenList is the server; rclone is the WebDAV client/mounter.