community.egroupware.org: Community wiki

  
Community wiki
WorkaroundDAV
1. Apache - Einstellungen/Settings
mod_rewrite = on
register_globals = Off

2. Speichern Sie die Dateien / Save the following files if anything goes wrong :
/.htaccess
/webdav.php
/groupdav.php
(Trunk >= r30059) /phpgwapi/inc/class.egw_digest_auth.inc.php

3. Editieren der .htaccess / Edit .htaccess:
HINZUFÜGEN / ADD:
RewriteEngine on
RewriteCond %{HTTP:Authorization} ^Basic.*
RewriteRule ^webdav.* webdav.php?auth=%{HTTP:Authorization} [QSA,L]
RewriteRule ^groupdav.* groupdav.php?auth=%{HTTP:Authorization} [QSA,L]


4. Editieren der class.egw_digest_auth.inc.php / Edit class.egw_digest_auth.inc.php:
SUCHE & ERSETZE / SEARCH & REPLACE:
static public function autocreate_session_callback(&$account)
{

DURCH / WITH:
static public function autocreate_session_callback(&$account)
{
if(isset($_GET['auth']))
{
if (preg_match('/Basic\s+(.*)$/i', $_GET['auth'], $auth))
{
list($_SERVER['PHP_AUTH_USER'],$_SERVER['PHP_AUTH_PW']) = explode(':', base64_decode($auth[1]));
}
}

5. Fertig / that's all...

This workaround is written by DaKu?
You are here