Rclone not authorizing Sharepoint as webdav

What is the problem you are having with rclone?

We have a sharepoint online site hosted on MSO365, which we want to map as a drive on the Linux Machine.

Was able to create a remote using rclone webdav and added credentials to it but when listing the files using rclone its giving Authentication Failure.

Is webdav supported for mapping the Sharepoint online site hosted on MSO365.?

Here is how it looks in the rclone.conf file

[psriva2@usbntldcsasap50 ~]$ cat /home/psriva2/.config/rclone/rclone.conf
type = webdav
url = Sign in to your account
vendor = sharepoint
user = Piyush.Srivastava@companyname.com
pass = EncryptedPassword

Run the command 'rclone version' and share the full output of the command.

[psriva2@usbntldcsasap50 ~]$ rclone version
rclone v1.55.1-DEV

  • os/type: linux
  • os/arch: amd64
  • go/version: go1.15.5
  • go/linking: dynamic
  • go/tags: none

Which cloud storage system are you using? (eg Google Drive)

Using webdav

The command you were trying to run (eg rclone copy /tmp remote:tmp)

[psriva2@usbntldcsasap50 ~]$ rclone lsd BISAS:
2023/09/22 10:02:40 Failed to create file system for "BISAS:": wst:FailedAuthentication: Authentication Failure (AADSTS50126: Erro                  r validating credentials due to invalid username or password.)
[psriva2@usbntldcsasap50 ~]$

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

[psriva2@usbntldcsasap50 ~]$ rclone config redacted
  rclone config [flags]
  rclone config [command]

Available Commands:
  create      Create a new remote with name, type and options.
  delete      Delete an existing remote `name`.
  disconnect  Disconnects user from remote
  dump        Dump the config file as JSON.
  edit        Enter an interactive configuration session.
  file        Show path of configuration file in use.
  password    Update password in an existing remote.
  providers   List in JSON format all the providers and options.
  reconnect   Re-authenticates user with remote.
  show        Print (decrypted) config file, or the config for a single remote.
  update      Update options in an existing remote.
  userinfo    Prints info about logged in user of remote.

  -h, --help   help for config

Use "rclone [command] --help" for more information about a command.
Use "rclone help flags" for to see the global flags.
Use "rclone help backends" for a list of supported services.
Command config needs 0 arguments maximum: you provided 1 non flag arguments: ["redacted"]
[psriva2@usbntldcsasap50 ~]$

A log from the command that you were trying to run with the -vv flag

[psriva2@usbntldcsasap50 ~]$ rclone ls BISAS: -vvv
2023/09/22 10:03:30 DEBUG : Using config file from "/home/psriva2/.config/rclone/rclone.conf"
2023/09/22 10:03:30 DEBUG : rclone: Version "v1.55.1-DEV" starting with parameters ["rclone" "ls" "BISAS:" "-vvv"]
2023/09/22 10:03:30 DEBUG : Creating backend with remote "BISAS:"
2023/09/23 10:03:31 Failed to create file system for "BISAS:": wst:FailedAuthentication: Authentication Failure (AADSTS50126: Error validating credentials due to invalid username or password.)
[psriva2@usbntldcsasap50 ~]$

that command works with the latest version of rclone.

best to uninstall v1.55.1 and then install v1.64.0

Update you rclone to the latest version. 1.55 is years old.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.