Skip to main content

Davfs2 wrapper to mount SharePoint filesystems

Project description

Davpoint - Davfs2 wrapper to mount SharePoint filesystems

Davpoint is a wrapper for the Davfs2 tool. It allows to mount remote SharePoint filesystems that require cookie-based authentication.

Rationale

Although SharePoint services are available through the standard WebDAV protocol, they may require the client to provide an authentication token in the HTTP header in addition to the standard username and password. The WebDAV client for Linux davfs2 does not directly support this mode of authentication, but it does allow to set any arbitrary cookie in its configuration file and its developer has suggested to “create some start script to automate” the retrieval of the authentication token.

Davpoint provides precisely such a script. Given a little extra configuration (see below), it will automatically authenticate a user to a SharePoint service, get the authentication token, then call davfs2 (through the standard mount (8) command) with the required configuration options to mount the SharePoint filesystem.

Configuration & Usage

Davpoint requires the WebDAV resource and its intended mount point to be listed in the /etc/fstab file. The username and password must also appear in Davfs2’s “secrets” file (either /etc/davfs2/secrets or ~/.davfs2/secrets), according to Davfs2’s documentation.

In addition, Davpoint needs a dedicated configuration file, which it expects in ~/.davfs2/sharepoint.conf by default. This file uses the .ini format, where each section represents a SharePoint resource.

Each section must contain at least two options: endpoint, which is the WebDAV resource to mount, and mountpoint, which is the location on the local filesystem where the resource should be mounted. The values must match what is configured in the /etc/fstab file. All other options will be passed verbatim to Davfs2.

Importantly, the main Davfs2 configuration file (/etc/davfs2/davfs2.conf or ~/.davfs2/davfs2.conf) is ignored when Davfs2 is called by Davpoint. Any Davfs2 options needed for a given SharePoint resource must be specified in the sharepoint.conf file instead of the davfs2.conf file.

Here is an example of a ~/.davfs2/sharepoint.conf file:

[example]
endpoint: https://example.com/personal/alice_example_com/Documents
mountpoint: /home/alice/example
use_locks: 0

With such a configuration, the resource may be mounted by the following command:

$ davpoint example

Unmounting the resource is done as usual with the standard umount (8) command.

Copying

Davpoint is distributed under the terms of the GNU General Public License, version 3 or higher. The full license is included in the COPYING file of the source distribution.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

incenp.davpoint-0.2.1.tar.gz (19.1 kB view details)

Uploaded Source

Built Distribution

incenp.davpoint-0.2.1-py3-none-any.whl (21.4 kB view details)

Uploaded Python 3

File details

Details for the file incenp.davpoint-0.2.1.tar.gz.

File metadata

  • Download URL: incenp.davpoint-0.2.1.tar.gz
  • Upload date:
  • Size: 19.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.14

File hashes

Hashes for incenp.davpoint-0.2.1.tar.gz
Algorithm Hash digest
SHA256 154e71dfd702e767083e7790b394ff141ab95384113ee06faf65e566d7d69dec
MD5 e79db2e550d4c042f7106aaf76f45b0d
BLAKE2b-256 c3851ba5a98d1a32766164bb8ec1f1d4e0962207d42817bc5d9ac96511a63cb0

See more details on using hashes here.

File details

Details for the file incenp.davpoint-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: incenp.davpoint-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 21.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.14

File hashes

Hashes for incenp.davpoint-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c9e48206c49111bf91b5d1b518f84d99964680a4b5aec720995155319b56bca2
MD5 34cbbaf7972cbf1d8c1a386ef2579e11
BLAKE2b-256 d48ecf943a75a3ff094286a8b19e9f26e3b2e419ca6c0d82083accda5454a67a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page