wifang / mollify

Automatically exported from code.google.com/p/mollify
0 stars 0 forks source link

WebDAV authentication fails #346

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Installed WebDAV Plugin
2. edited parameters in index.php to reflect my configuration
3. go to https://myhost/backend/dav

What is the expected output? What do you see instead?

I should see a blank page in browser or my OSX should mount the drive. Instead 
of that the Login field is constantly showing again and again, hence the 
authentication fails.

What version of the product are you using? On what operating system?

I installed yesterday, so the versions should be the newest. I am running 
Ubuntu LTS (10.04),Apache, PHP with mod_fcgid.

Please provide any additional information below.

PHP log: 
[Sun Jan 08 15:10:54 2012] [error] [client 91.190.225.145] File does not exist: 
/var/customers/webs/web5/cloud.xx.xx/favicon.ico
[Sun Jan 08 15:11:00 2012] [warn] [client 91.190.225.145] mod_fcgid: stderr: 
MOLLIFY DEBUG: MySQL DB: web5sql6@localhost:web5sql6(mollify_) port= socket=
[Sun Jan 08 15:11:00 2012] [warn] [client 91.190.225.145] mod_fcgid: stderr: 
MOLLIFY DEBUG: EVENT HANDLER: registering 'filesystem/': ShareHandler
[Sun Jan 08 15:11:00 2012] [warn] [client 91.190.225.145] mod_fcgid: stderr: 
MOLLIFY DEBUG: EVENT HANDLER: registering '*': EventLogger
[Sun Jan 08 15:11:00 2012] [warn] [client 91.190.225.145] mod_fcgid: stderr: 
MOLLIFY DEBUG: VERSION: - SERVER: {PHP_FCGI_MAX_REQUESTS:250, 
PHPRC:/var/www/php-fcgi-scripts/web5/cloud.xx.xx/, PHP_FCGI_CHILDREN:0, 
PWD:/var/www/php-fcgi-scripts/web5/cloud.xx.xx, FCGI_ROLE:RESPONDER, HTTPS:on, 
SSL_TLS_SNI:cloud.xx.xx, HTTP_CACHE_CONTROL:max-age=0, 
HTTP_COOKIE:MOLLIFY-SESSION=bcce74534814f71fe34456a3ae679690, 
SCRIPT_FILENAME:/var/customers/webs/web5/cloud.xx.xx/backend/dav/index.php, 
SERVER_PROTOCOL:HTTP/1.1, REQUEST_METHOD:GET, QUERY_STRING:, 
REQUEST_URI:/backend/dav/, SCRIPT_NAME:/backend/dav/index.php, 
PHP_SELF:/backend/dav/index.php, REQUEST_TIME:1326031860}
[Sun Jan 08 15:11:00 2012] [warn] [client 91.190.225.145] mod_fcgid: stderr: 
MOLLIFY DEBUG: SETTINGS: {debug:1}
[Sun Jan 08 15:11:00 2012] [warn] [client 91.190.225.145] mod_fcgid: stderr: 
MOLLIFY DEBUG: CONFIGURATION PROVIDER (MySQLConfiguration): supported 
features={0:change_password, 1:descriptions, 2:administration, 3:user_groups, 
4:permission_inheritance} auth=1
[Sun Jan 08 15:11:00 2012] [warn] [client 91.190.225.145] mod_fcgid: stderr: 
MOLLIFY DEBUG: FEATURES: {limited_http_methods:, file_upload:1, 
folder_actions:1, file_upload_progress:, zip_download:, change_password:1, 
descriptions:1, administration:1, user_groups:1, mail_notification:, 
retrieve_url:, folder_protection:, event_logging:1}
[Sun Jan 08 15:11:00 2012] [warn] [client 91.190.225.145] mod_fcgid: stderr: 
MOLLIFY DEBUG: FILESYSTEM: allowed_file_upload_types={}
[Sun Jan 08 15:11:00 2012] [warn] [client 91.190.225.145] mod_fcgid: stderr: 
MOLLIFY DEBUG: SESSION: {user_id:1, groups:{}, username:matthias, 
default_permission:A, auth:pw}
[Sun Jan 08 15:11:00 2012] [warn] [client 91.190.225.145] mod_fcgid: stderr: 
MOLLIFY DEBUG: AUTH: is_authentication_required=1, is_authenticated=1
[Sun Jan 08 15:11:00 2012] [warn] [client 91.190.225.145] mod_fcgid: stderr: 
MOLLIFY DEBUG: DAV authentication missing

Original issue reported on code.google.com by m...@gw.ms on 8 Jan 2012 at 2:20

GoogleCodeExporter commented 9 years ago
I have solved the issue. Perhaps you may add this informationn to the WebDAV 
Readme file:

From: http://code.google.com/p/sabredav/wiki/Authentication

Apache + (Fast)CGI
If you use PHP through CGI or FastCGI and Apache authentication headers are not 
passed through by default. You can enable this with the following mod_rewrite 
rule:

<IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
</IfModule> 
If you already had a mod_rewrite rule to map all urls to a server file, you 
might need to change this to something like:

<IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteRule .* /server.php [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
</IfModule> 
Note the /server.php. Make sure this reflects the correct location of your 
server file.

So my .htaccess has now:

RewriteEngine on
RewriteRule ^(.+) index.php [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]

Original comment by m...@gw.ms on 8 Jan 2012 at 2:58

GoogleCodeExporter commented 9 years ago
I have the same problem, but didn't solve with

RewriteEngine on
RewriteRule ^(.+) index.php [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]

on my .htaccess, any clue?

Original comment by armin.ar...@gmail.com on 13 Jan 2012 at 12:35