Authentification Problem WebDAV, CalDAV (Lightning)

Ask all your questions regarding OC 5.x Please read the Support Forum Rules
Forum rules
ownCloud 5.x reached end of life and is officially unsupported. For details see Wiki page.

Please upgrade your ownCloud.
octom
Beginner
Posts: 28
Joined: Fri Feb 17, 2012 1:03 pm

Authentification Problem WebDAV, CalDAV (Lightning)

Postby octom » Fri Feb 17, 2012 3:38 pm

Hi all,

I just installed the owncloud 3 Version (git) on my webspace (no root). Everything wen fine and I can fully use the Web Interface.

As soon as I try to connect to the WebDAV (with nautilus in Ubuntu and WebDAV File Manager on Android) or CalDAV (with Thunderbird 10.0 with Lightning 1.2.1) server I get an authentification problem. I double checked username an password, created a new owncloud user but nothing happens. I can not connect.

I used following URLs
WebDAV nautilus: dav://www.domain.de/owncloud/files/webdav.php
WebDAV Android: http://www.domain.de/owncloud/files/webdav.php
CalDAV Lightning: http://domain.de/owncloud/apps/calendar ... ame/privat

Do I have to activate remote access?

Passed Tests (5)
  • PHP Version:5.3.8-nmm1
  • Server Software:(Apache) Apache
  • php.ini:upload_max_filesize:200M
  • php.ini:post_max_size:200M
  • File upload limit:Upload files up to 64 MB
No Problems Detected.
Critical Issues (3)
  • File Upload:Please check your settings (see warning below)
  • php.ini:memory_limit:Upload limited in memory_limit (64M)
  • Config (Writeable):Config is missing. Writeable: No

EDIT:
I just installed owncloud on my ubuntu machine and there both works!
The only difference is that on my webspace I use SQLite on my ubuntu machine I use mySQL. Could this be the factor?

basti
Newbie
Posts: 6
Joined: Sun Feb 12, 2012 12:30 am

Re: Authentification Problem WebDAV, CalDAV (Lightning)

Postby basti » Fri Feb 17, 2012 4:24 pm

Hey,

seems like we're facing similar issues:

viewtopic.php?f=3&t=1846

Haven't found any solution yet...

octom
Beginner
Posts: 28
Joined: Fri Feb 17, 2012 1:03 pm

Re: Authentification Problem WebDAV, CalDAV (Lightning)

Postby octom » Fri Feb 17, 2012 4:29 pm

Seems so. Do you have a problem with WebDAV as well?

basti
Newbie
Posts: 6
Joined: Sun Feb 12, 2012 12:30 am

Re: Authentification Problem WebDAV, CalDAV (Lightning)

Postby basti » Fri Feb 17, 2012 4:48 pm

yes, which is actually weird. I did install owncloud a couple of times since then and it did work once! I did a fresh install just a couple of hours back and carddav works, but webdav doesn't...


try this:

http://bugs.owncloud.org/thebuggenie/ow ... ues/oc-232

helped at least for me!

octom
Beginner
Posts: 28
Joined: Fri Feb 17, 2012 1:03 pm

[SOLVED] Re: Authentification Problem WebDAV, CalDAV (Lightn

Postby octom » Fri Feb 17, 2012 9:44 pm

basti, thanks for your help.
In your thread I found the solution http://bugs.owncloud.org/thebuggenie/owncloud/issues/oc-164

My .htaccess is now

Code: Select all

AddHandler php53-cgi .php
ErrorDocument 404 /owncloud/core/templates/404.php
<IfModule mod_php5.c>
php_value upload_max_filesize 512M
php_value post_max_size 512M
SetEnv htaccessWorking true
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule .* - [env=REMOTE_USER:%{HTTP:Authorization},last]
</IfModule>
Options -Indexes


and /lib/base.php
FIND

Code: Select all

//set http auth headers for apache+php-cgi work around if variable gets renamed by apache
      if (isset($_SERVER['REDIRECT_HTTP_AUTHORIZATION']) && preg_match('/Basic\s+(.*)$/i', $_SERVER['REDIRECT_HTTP_AUTHORIZATION'], $matches))
      {
         list($name, $password) = explode(':', base64_decode($matches[1]));
         $_SERVER['PHP_AUTH_USER'] = strip_tags($name);
         $_SERVER['PHP_AUTH_PW'] = strip_tags($password);
      }

ADD AFTER

Code: Select all

if (isset($_SERVER['REDIRECT_REMOTE_USER']) && preg_match('/Basic\s+(.*)$/i', $_SERVER['REDIRECT_REMOTE_USER'], $matches))
   {
   list($name, $password) = explode(':', base64_decode($matches[1]));
   $_SERVER['PHP_AUTH_USER'] = strip_tags($name);
   $_SERVER['PHP_AUTH_PW'] = strip_tags($password);
   }

WebDAV and CalDAV works! :D

basti
Newbie
Posts: 6
Joined: Sun Feb 12, 2012 12:30 am

Re: Authentification Problem WebDAV, CalDAV (Lightning)

Postby basti » Sat Feb 18, 2012 11:53 am

does webdav work as expected? I can mount it and see the shared folder, but can't do anything else... no file copies nothing..

octom
Beginner
Posts: 28
Joined: Fri Feb 17, 2012 1:03 pm

Re: Authentification Problem WebDAV, CalDAV (Lightning)

Postby octom » Sat Feb 18, 2012 2:18 pm

Strange! Sometime I can write sometimes not (Connection terminated unexpectedly)

ChrisTi
Starter
Posts: 71
Joined: Wed Oct 24, 2012 3:40 pm

Re: Authentification Problem WebDAV, CalDAV (Lightning)

Postby ChrisTi » Tue Jan 08, 2013 4:18 pm

I would be thankful if this could be addressed in the next core update, as is hindering to get an easy upgrade way fo OC on every hosting situation.
Using oC SQLite on all-inkl Shared Hosting Server (Ubuntu, no shell access); Apache 2; PHP 5.4.x (CGI/FastCGI)

User avatar
RandolphCarter
ownCloud master
Posts: 5134
Joined: Wed May 30, 2012 8:42 am
ownCloud version: 8.1.1
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.5.x

Re: Authentification Problem WebDAV, CalDAV (Lightning)

Postby RandolphCarter » Tue Jan 08, 2013 4:35 pm

I would be thankful if this could be addressed in the next core update, as is hindering to get an easy upgrade way fo OC on every hosting situation.


Edit: I guess you still need to edit lib/base.php? Could you post an issue for it on github? I'm not sure about the REDIRECT_REMOTE_USER stuff, maybe the devs can figure it out...

ChrisTi
Starter
Posts: 71
Joined: Wed Oct 24, 2012 3:40 pm

Re: Authentification Problem WebDAV, CalDAV (Lightning)

Postby ChrisTi » Tue Jan 08, 2013 5:01 pm

Thanks! I will wait for the next update and look exactly in the details and log them exactly for citation. reconstruct all now after I did so many changements to my system is probably not suggestable.
Using oC SQLite on all-inkl Shared Hosting Server (Ubuntu, no shell access); Apache 2; PHP 5.4.x (CGI/FastCGI)


  • Similar Topics
    Replies
    Views
    Last post

Return to “ownCloud Community Edition 5.x and older”

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest