Documentation

WebDAV

Configure WebDAV

The apache hub site configuration files are preconfigured to support this. Update the LDAP configuration to match the BASEDN of your site:

Edit /etc/apache2/sites-available/hub-ssl

        <Directory /webdav>
        ...
                AuthLDAPURL ldap://localhost/ou=users,dc=myhub,dc=org?uid
        ...
        </Directory>

This enables webDAV for the /webdav directory space, rewriting the url to always be under the user's directory. The 'usermap' tool (see next section) is used to map files from the user's home directory into the /webdav space (and mapping ownership to www-data).

Then restart the apache webserver to enable your changes.

# /etc/init.d/apache2 restart

Test

# install --owner www-data --group www-data --mode 0770 -d /webdav/home/apps
# touch /webdav/home/apps/test

Browse to your site's https /webdav address (e.g. https://myhub/webdav). You should get prompted for a username and password. Use the apps account. You should see a directory listing including the file "test".

Now test using a WebDAV client.

# apt-get install cadaver
# cadaver https://myhub.org/webdav

You will be prompted to accept self signed certificate (if it is still installed) and then to enter your username and password. Use the 'apps' account again to test. When you get the "dav:/webdav/>" prompt just enter "ls" and it should show the test file.

Finally clean up test case

# apt-get purge cadaver
# rm /webdav/home/apps/test
# rmdir /webdav/home/apps /webdav/home /webdav

Last modified:

  • Copyright © 2022 Hubzero
  • Powered by Hubzero®