WEBDAV Denksport

Alles, was den Apache betrifft, kann hier besprochen werden.

WEBDAV Denksport

Postby MasterT » 22. September 2016 08:42

Hi @ all,

bisher haben mir alle Beiträge aus dem Forum wunderbar geholfen ohne ein eigenes Thema erstellen zu müssen :-)
aber nun bin ich etwas ratlos bzw. stehe irgendwie auf dem Schlauch. Vielleicht kann mir da jemand wieder runterhelfen....

Umgebung:
Server 2012 R2
Apache 2.4 absoult minimalistisch instlaliert, eigentlich ist nur webdav aktiv. Kein Webseiten oder ähnliches
offizielles GEOTrust Zertifikat

Das Laufwerk wird problemlos via https und externem Name auf einem PC gemappt. ich kann wunderbar darauf zugreifen, speichern, löschen, erstellen ...
Problem war, dass keine Office Dokumente erstellt oder aufgerufen werden konnten. seit ich dann die Änderungen im httpd-dav.conf vorgenommen habe, geht das. aber genau ab diesem Zeitpunkt habe ich keine Userauthentifizierung mehr :-)
Anpassungen, damit der Office Kram geht:

Code: Select all
<LimitExcept GET PROPFIND OPTIONS HEAD PUT LOCK UNLOCK>

anstatt
Code: Select all
<LimitExcept GET HEAD OPTIONS>


und die mime Einträge, wobei ich auch ohne das Modul keine Probleme habe (Deshalb ist es auskommentiert)

die Frage ist jetzt: wie bekomme ich es hin, dass nicht jeder User auf jedes Verzeichnis zugreifen kann und trotzdem die Office Dokumente laufen?!

Ich denke der Rest ist weitestgehend selbsterklärend. wenn nich, bitte schreiben.
dir3 ist u.A. anders konfiguriert, reagiert aber komplett genau so wie alle andern Verzeichnisse.
jeder User kann auf alle Verzeichnisse zugreifen. zwar nicht schreibend aber lesend.. das soll natürlich nicht sein.
vor der Anpassung oben konnte jeder user zwar das Laufwerk verbinden, sah aber keine Dateien oder Ordner. genau so hätte ich es gerne wieder.
in de httpd.conf steht übrigens fast nix, da ja nur webdav genutzt wird includiere ich einfach die httpd-dav.conf und mache darin alles.

komplette httpd-dav.conf

Code: Select all
<IfModule dav_module>
<IfModule dav_fs_module>
<IfModule setenvif_module>
<IfModule alias_module>
<IfModule auth_digest_module>
<IfModule authn_file_module>
#<IfModule mime_module>

DavLockDB "E:/Dav.Lock"
DAVMinTimeout 600

Alias /webdav "E:/WEBDAV/"
Alias /dir1 "E:/WEBDAV/dir1"
Alias /dir2 "E:/WEBDAV/dir2"
Alias /dir3 "E:/WEBDAV/dir3/subdir01"
Alias /dir3_all "E:/WEBDAV/dir3"

<Directory "E:/WEBDAV">
#Require all granted
    Dav On
   Options Indexes

   AuthType Digest
   AuthName DAV-upload
   AuthUserFile "E:\user.passwd"
   AuthDigestProvider file
#Order allow,deny

</Directory>

<Directory "E:/WEBDAV/dir1">
Require all granted
   Options None

#Order allow,deny
#allow from all
   
    <LimitExcept GET PROPFIND OPTIONS HEAD PUT LOCK UNLOCK>
        require user usr1 admin
    </LimitExcept>
</Directory>

<Directory "E:/WEBDAV/dir2">
#Require all granted
   Options none

    <LimitExcept GET PROPFIND OPTIONS HEAD PUT LOCK UNLOCK>
        require user admin usr2
    </LimitExcept>
      
</Directory>

<Directory "E:/WEBDAV/dir3/subdir01">
#Require all granted
   Options None

   Order allow,deny
   allow from all
   
    <LimitExcept GET PROPFIND OPTIONS HEAD PUT LOCK UNLOCK>
        require user usr3 usr4 admin
    </LimitExcept>
</Directory>

<Directory "E:/WEBDAV/dir3">
#Require all granted
   Options None

   Order allow,deny
   allow from all
   
    <LimitExcept GET PROPFIND OPTIONS HEAD PUT LOCK UNLOCK>
        require user usr4 admin
    </LimitExcept>
</Directory>


BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
BrowserMatch "MS FrontPage" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[01234]" redirect-carefully
BrowserMatch "^gnome-vfs/1.0" redirect-carefully
BrowserMatch "^XML Spy" redirect-carefully
BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully
BrowserMatch " Konqueror/4" redirect-carefully
BrowserMatch "MSIE" AuthDigestEnableQueryStringHack=On

# Open Office Dokumente
AddType application/vnd.oasis.opendocument.text .odt
AddType application/vnd.oasis.opendocument.spreadsheet .ods
AddType application/vnd.oasis.opendocument.presentation .odp
AddType application/vnd.oasis.opendocument.graphics .odg
AddType application/vnd.oasis.opendocument.chart .odc
AddType application/vnd.oasis.opendocument.formula .odf
AddType application/vnd.oasis.opendocument.image .odi
AddType application/vnd.oasis.opendocument.text-master .odm

# Open Office Vorlagen
AddType application/vnd.oasis.opendocument.text-template .ott
AddType application/vnd.oasis.opendocument.spreadsheet-template .ots
AddType application/vnd.oasis.opendocument.presentation-template .otp
AddType application/vnd.oasis.opendocument.graphics-template .otg
AddType application/vnd.oasis.opendocument.chart-template .otc
AddType application/vnd.oasis.opendocument.formula-template .otf
AddType application/vnd.oasis.opendocument.image-template .oti
AddType application/vnd.oasis.opendocument.text-web .oth

# MS Office Dokumente
AddType application/msword doc
AddType application/msword dot
AddType application/vnd.openxmlformats-officedocument.wordprocessingml.document docx
AddType application/vnd.openxmlformats-officedocument.wordprocessingml.template dotx
AddType application/vnd.ms-word.document.macroEnabled.12 docm
AddType application/vnd.ms-word.template.macroEnabled.12 dotm
AddType application/vnd.ms-excel xls
AddType application/vnd.ms-excel xlt
AddType application/vnd.ms-excel xla
AddType application/vnd.openxmlformats-officedocument.spreadsheetml.sheet xlsx
AddType application/vnd.openxmlformats-officedocument.spreadsheetml.template xltx
AddType application/vnd.ms-excel.sheet.macroEnabled.12 xlsm
AddType application/vnd.ms-excel.template.macroEnabled.12 xltm
AddType application/vnd.ms-excel.addin.macroEnabled.12 xlam
AddType application/vnd.ms-excel.sheet.binary.macroEnabled.12 xlsb
AddType application/vnd.ms-powerpoint ppt
AddType application/vnd.ms-powerpoint pot
AddType application/vnd.ms-powerpoint pps
AddType application/vnd.ms-powerpoint ppa
AddType application/vnd.openxmlformats-officedocument.presentationml.presentation pptx
AddType application/vnd.openxmlformats-officedocument.presentationml.template potx
AddType application/vnd.openxmlformats-officedocument.presentationml.slideshow ppsx
AddType application/vnd.ms-powerpoint.addin.macroEnabled.12 ppam
AddType application/vnd.ms-powerpoint.presentation.macroEnabled.12 pptm
AddType application/vnd.ms-powerpoint.template.macroEnabled.12 potm
AddType application/vnd.ms-powerpoint.slideshow.macroEnabled.12 ppsm

#</IfModule>
</IfModule>
</IfModule>
</IfModule>
</IfModule>
</IfModule>
</IfModule>


vermutlich nut ne Kleinigkeit.. ich sehe sie aber nicht.

Vielen Dank schonmal voarb.
MasterT
MasterT
 
Posts: 1
Joined: 22. September 2016 08:27
XAMPP version: 5.6.24
Operating System: MS Server 2012 R2

Return to Apache

Who is online

Users browsing this forum: thumbpiano and 217 guests