Module DAV: Difference between revisions

From Dolibarr ERP CRM Wiki
Jump to navigation Jump to search
Tag: 2017 source edit
mNo edit summary
Tag: 2017 source edit
Line 28: Line 28:
For example, if your directory is protected by  
For example, if your directory is protected by  


<source lang="php">
<Directory "/mypathtomydolibarrhdocs">
<Directory "/mypathtomydolibarrhdocs">
AuthType Basic
AuthType Basic
Line 35: Line 36:
Require user homebasic admin
Require user homebasic admin
</Directory>
</Directory>
</source>


You must add an exclusion like this one
You must add an exclusion like this one
<source lang="php">
<Directory "/mypathtomydolibarrhdocs/dav">
<Directory "/mypathtomydolibarrhdocs/dav">
Require all granted
Require all granted
</Directory>
</Directory>
</source>


= Usage =
= Usage =
Just go on setup page to get the WebDAV repository that is enabled and available with WebDAV protocol.
Just go on setup page to get the WebDAV repository that is enabled and available with WebDAV protocol.
Use any WebDAV client to access this repository.
Use any WebDAV client to access this repository.

Revision as of 14:18, 3 September 2020

DAV
Numero/ID of module
User doc. of module This page
Developer doc. of module Module DAV (developer)

Introduction

The DAV module add a server component to offer a shared public (no login required) and/or a private directory (need to use a Dolibarr login) that you can access with any WebDAV client. The content of the manuel directory of the Module ECM can also be accessed (nedd to use a Dolibarr login).

Installation

This module is included with the Dolibarr distribution, so there is no need to install it.

Configuration

To use this module, you must first enable it using an administrator account, via the menu option "Home - Setup - Modules".

Choose the tab where the module is listed. Then click on "Activate".

The module is now activated.

If a cog icon appears Cog circle.svg on module thumb or at end of the line of the module, click on it to access the setup page specific to the module.

For the section that are protected by a login, Dolibarr use a HTTP Basic authentication. So if you already protected your Dolibarr directory with a HTTP Basic authantication protection, you must exclude the path */dav* from this protection to avoid a duplicate HTTP Basic authantication that will conflict. For example, if your directory is protected by

<Directory "/mypathtomydolibarrhdocs">
AuthType Basic
AuthName "Restricted Files - Basic global"
#AuthBasicProvider file
AuthUserFile "/home/ldestailleur/git/passwords"
Require user homebasic admin
</Directory>

You must add an exclusion like this one

<Directory "/mypathtomydolibarrhdocs/dav">
Require all granted
</Directory>

Usage

Just go on setup page to get the WebDAV repository that is enabled and available with WebDAV protocol. Use any WebDAV client to access this repository.