chown www-data:www-data /webdav/
chmod 777 /webdav/
Modifier la configuration d'Apache :a2enmod authnz_ldap
a2enmod dav_fs
L'accès via le web se fera sur IP_WEBDAV/wwwdav/
L'accès WebDAV se fera sur IP_WEBDAV/webdav/
Ajouter à la fin de /etc/apache2/sites-enabled/000-default :
Tout utilisateur enregistré dans l'annuaire aura accès.<Directory /webdav/>
Options Indexes
AuthType Basic
AuthName LDAP-WEB
AuthBasicProvider ldap
AuthLDAPURL "ldap://IP_LDAP:389/ou=people,dc=DOMAINE,dc=BE?uid?sub?(objectClass=*)"
Require valid-user
</Directory>
Alias /wwwdav /webdav/
Alias /webdav /webdav/
<Location /webdav>
Dav On
AuthType Basic
AuthName LDAP-DAV
AuthBasicProvider ldap
AuthLDAPURL "ldap://IP_LDAP:389/ou=people,dc=DOMAINE,dc=BE?uid?sub?(objectClass=*)"
Require valid-user
</Location>
Créer /etc/apache2/mods-available/encoding.conf :apt-get install libapache2-mod-encoding
Activer le module :EncodingEngine on
SetServerEncoding UTF-8
DefaultClientEncoding UTF-8 CP932 EUCJP-MS
AddClientEncoding "Microsoft .* DAV 1.1" UTF-8
AddClientEncoding "Microsoft .* DAV" UTF-8
AddClientEncoding "(Microsoft .* DAV $)" UTF-8
AddClientEncoding "(Microsoft .* DAV 1.1)" UTF-8
AddClientEncoding "Microsoft-WebDAV*" UTF-8
AddClientEncoding "RMA/*" UTF-8
AddClientEncoding "xdwin9x/" UTF-8
AddClientEncoding "cadaver/" UTF-8
AddClientEncoding "Mozilla/" UTF-8
Redémarrer Apache :a2enmod encoding
Comme client Windows, je vous conseille : NetDrive./etc/init.d/apache2 restart
Mount sous Linux : http://camille.wordpress.com/2006/03/12/webdav-mounting-under-linux/
Sources :
http://perso.ens-lyon.fr/sebastien.mei/wiki/doku.php?id=documentations:mod_dav_ldap
http://httpd.apache.org/docs/2.2/mod/mod_authnz_ldap.html
http://httpd.apache.org/docs/2.2/mod/mod_dav.html