Wiki Display Wiki Display

« Back to FrontPage

Enabling WebDAV interface for EMI3 DPM Storages

Requirements #

  • DPM version > 1.8.7
  • SELinux disabled (or properly configured for http)

Update to the latest LCGDM-DAV release #

1. Enable the EPEL testing* repo:

[root@vega-se yum.repos.d]# cat /etc/yum.repos.d/epel-testing.repo 
name=Extra Packages for Enterprise Linux 6 - Testing - $basearch 

2. run yum update to get the latest RPMs:

yum update lcgdm-dav-*

Configure LCGDM-DAV interface via YAIM #

3. Edit your site-info.def and add/edit the following variables:

DPM_DAV="yes"              # Enable DAV access
DPM_DAV_NS_FLAGS="Write"   # Allow write access on the NS node
DPM_DAV_DISK_FLAGS="Write" # Allow write access on the disk nodes
DMLITE="yes"               # Enable DMLite (Required!)
DMLITE_TOKEN_PASSWORD="used-to-encrypt-the-tokens" # This password is used by dmlite to generate the tokens
DPM_DAV_SECURE_REDIRECT="Off" # Enable redirection from head to disk using plain HTTP. It can be On or Off.

4. Run yaim to enable the WebDAV interface

/opt/glite/yaim/bin/yaim -r -s <site-info.def> -n emi_dpm_mysql -f config_DPM_dav

Your DPM server now can be accessed through any WebDAV client, for download and upload via HTTP(s)

You can find some example here:

Enabling direct downloads/uploads using Catania Science Gateway Authentication System #

5. Edit /etc/httpd/conf.d/zlcgdm-dav.conf

and add (inside the <LocationMatch "^/dpm.*"> tag) any of the following rulez according to which SG you want to support:

  NSTrustedDNS "/C=IT/O=INFN/OU=Robot/L=Catania/CN=Robot: INDICATE e-Cultural Science Gateway - Antonio Calanducci"
  NSTrustedDNS "/C=IT/O=INFN/OU=Robot/L=COMETA/CN=Robot: Digital Repository of China Relics - Roberto Barbera"
  NSTrustedDNS "/C=IT/O=INFN/OU=Robot/L=Catania/CN=Robot: agINFRA Science Gateway - Roberto Barbera"
  NSTrustedDNS "/C=IT/O=INFN/OU=Robot/L=COMETA/CN=Robot: EarthServer Science Gateway - Roberto Barbera"
  NSTrustedDNS "/C=IT/O=INFN/OU=Robot/L=Catania/CN=Robot: DCHRP eCulture Science Gateway  - Roberto Barbera"
  NSTrustedDNS "/C=IT/O=INFN/OU=Robot/L=GARR/CN=Robot: DECIDE Science Gateway - Fulvio Galeazzi"
  NSTrustedDNS "/C=IT/O=INFN/OU=Robot/L=Catania/CN=Robot: Catania Science Gateway  - Roberto Barbera"
  NSTrustedDNS "/C=IT/O=INFN/OU=Robot/L=Catania/CN=Robot: EUMEDGRID Science Gateway - Roberto Barbera"

6. and the following rulez to enable XHR2 (AJAX) upload/downloads

<VirtualHost *:80>
Header set Access-Control-Allow-Origin "*"
Header set Access-Control-Allow-Methods POST,GET,DELETE,PUT,OPTIONS,TRACE
Header set Access-Control-Allow-Headers Content-Type,Content-Disposition,X-Requested-With,X-File-Type,X-File-Name,X-File-Size


7. Restart the httpd daemon

0 Attachments
Average (0 Votes)