WebDAV broken; cannot login?

Ask all your questions regarding OC 4.x and older. Please read the Support Forum Rules
Forum rules
Before you post; make sure you are using at least PHP Version 5.3.x - Also read How To Solve Problems By Yourself

WebDAV broken; cannot login?

Postby ectoplasmosis » Sat May 26, 2012 6:44 am

I've just installed ownCloud 4 on a server running Open Media Vault. As a first-time Linux user I've got to say the whole process was much less painful than anticipated.

All is well except I simply cannot access ownCloud via WebDAV. When attempting either via a browser or OSX Finder "Connect to Server" dialog, I am asked for my login details only for them to be rejected. After three attempts I get the following error in my browser:

Code: Select all
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
<s:exception>Sabre_DAV_Exception_NotAuthenticated</s:exception>
<s:message>No basic authentication headers were found</s:message>
<s:sabredav-version>1.6.2</s:sabredav-version>
</d:error>


What could be causing this? As mentioned, everything else is working fine.

Many thanks in advance!


Environment: Open Media Vault Server
Server: Apache
Database: mySQL
Client: Chrome/Safari/OSX Finder WebDAV
OC-Version: 4
PHP-Version: PHP 5.3.3-7+squeeze9 with Suhosin-Patch (cli) (built: May 8 2012 10:41:34)
ectoplasmosis
Beginner
 
Posts: 21
Joined: Sat May 26, 2012 6:31 am

Re: WebDAV broken; cannot login?

Postby lurch » Sat May 26, 2012 10:42 am

Whats the path you're trying to connect to?
Anything unusual about the users? ie: LDAP?
I'm not a coder, but happy to help where I can.
lurch
Beginner
 
Posts: 47
Joined: Wed May 23, 2012 1:14 am

Re: WebDAV broken; cannot login?

Postby ectoplasmosis » Sat May 26, 2012 4:10 pm

I'm trying:

https://SERVER:8181/remote.php/webdav/
https://SERVER:8181/files/webdav.php

Neither work.

Nothing unusual about users; I don't know what LDAP is. I just created a few users via the ownCloud admin panel, and can log in using their credentials just fine using the web interface.

WebDAV is a no-go, making ownCloud completely useless. Any ideas very gratefully received!
ectoplasmosis
Beginner
 
Posts: 21
Joined: Sat May 26, 2012 6:31 am

Re: WebDAV broken; cannot login?

Postby ectoplasmosis » Sat May 26, 2012 8:51 pm

Just tried the ownCloud OSX client and got this:

Trying to connect to ownCloud at http://192.168.1.104:8181/...
Successfully connected to http://192.168.1.104:8181: ownCloud version 4 (4.0.0)

Checking local sync folder /Users/ectoplasmosis/ownCloud
Local sync folder /Users/ectoplasmosis/ownCloud already exists, setting it up for sync.

Remote folder creation failed probably because the provided credentials are wrong.
Please go back and check your credentials.


This is driving me mad...
ectoplasmosis
Beginner
 
Posts: 21
Joined: Sat May 26, 2012 6:31 am

Re: WebDAV broken; cannot login?

Postby ectoplasmosis » Mon May 28, 2012 3:55 pm

Can anyone help me with this?

I have tried disabling SSL, logging in with Linux and Windows clients, all still give authentication errors and the following message via browser WebDAV login:

Sabre_DAV_Exception_NotAuthenticated No basic authentication headers were found 1.6.2
ectoplasmosis
Beginner
 
Posts: 21
Joined: Sat May 26, 2012 6:31 am

Re: WebDAV broken; cannot login?

Postby ectoplasmosis » Tue May 29, 2012 11:21 am

Still none the wiser as to what's causing this...
ectoplasmosis
Beginner
 
Posts: 21
Joined: Sat May 26, 2012 6:31 am

Re: WebDAV broken; cannot login?

Postby marty » Tue May 29, 2012 1:03 pm

Do you use php with worker or (F)CGI? Read this, perhaps it helps...
http://code.google.com/p/sabredav/wiki/Authentication (Chapter Webserver configuration)
http://discussion.dreamhost.com/thread-134155.html
marty
Starter
 
Posts: 72
Joined: Tue Mar 20, 2012 1:40 pm

Re: WebDAV broken; cannot login?

Postby ectoplasmosis » Tue May 29, 2012 7:15 pm

marty wrote:Do you use php with worker or (F)CGI? Read this, perhaps it helps...
http://code.google.com/p/sabredav/wiki/Authentication (Chapter Webserver configuration)
http://discussion.dreamhost.com/thread-134155.html


I don't know what either of those things are (complete novice here), but tried adding the following mod_rewrite rule to httpd.conf and it made no difference:

Code: Select all
<IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
</IfModule>



I think the following quote off the Sabre wiki is important, but I don't know how to go about checking what it refers to:

If you're going to implement HTTP Basic, you must use Sabre_DAV_Auth_Backend_AbstractBasic as your parent class and implement the validateUserPass method.
ectoplasmosis
Beginner
 
Posts: 21
Joined: Sat May 26, 2012 6:31 am

Re: WebDAV broken; cannot login?

Postby marty » Tue May 29, 2012 8:07 pm

ectoplasmosis wrote:I don't know what either of those things are (complete novice here)

No problem, I'll try to walk you through.
Please create a file with the name test.php and the following contents:
Code: Select all
<?php
phpinfo()
?>

Put this file into your owncloud folder and then open http://yoursite.com/path_to_owncloud/test.php in your browser.

The heading on the top of the page shows the php version. What does it show? What does "Server API" read?
marty
Starter
 
Posts: 72
Joined: Tue Mar 20, 2012 1:40 pm

Re: WebDAV broken; cannot login?

Postby ectoplasmosis » Tue May 29, 2012 9:03 pm

It reads "CGI/FastCGI"

You can have a look at the full output here: http://109.224.131.200:81/test.php
ectoplasmosis
Beginner
 
Posts: 21
Joined: Sat May 26, 2012 6:31 am

Next

Return to OwnCloud Community Edition 4.x and older

Who is online

Users browsing this forum: No registered users and 11 guests