WEBDAV

Hi, i try to say it in a shot list:

  • 5 PCs should use a WebDAV Server (in local Network)
  • every PC should save an own calendar on the server (Thunderbird, Lightning)
  • the server should been accessible from internet too for extern workers
  • the server is an OpenSuse 10.3

The access by DynDNS on the webserver works fine. I can see there the WebDAV directory. But there is no authentification if i try to open directory in browser f.e.

http://192.168.1.55/webdav or http://www.something.de/webdav (from internet)

I can only see the directory in the browser:


Index of /webdav

Icon  Name                    Last modified      Size  Description[DIR] Parent Directory                             -   

Apache/2.2.4 (Linux/SUSE) Server at 192.168.1.55 Port 80

When i want to add an save a new calendar in Thunderbird(Lightning), i must insert an username and password. But it wont work with pw from the user that iam add in tutorial. root pw wont work too.

The tutorial:

Webdav - openSUSE

Can you say me the error?

Lots of things could be wrong, hard to say without any clues. Maybe you made a typo in the authentication section of the config and it doesn’t enforce authentication. You should be asked for a username and password, even if coming in from a web browser. It should prompt you with the string in AuthName.

Here is my config file:


<IfModule mod_dav_fs.c>
	#Location of the WebDAV lock database
	DavLockDB /var/lib/apache2/dav/lockdb
</IfModule>

<IfModule mod_dav.c>
	#XML request bodies are loaded into memory;
	#limit to 128K by default
	LimitXMLRequestBody 131072

	#Location of the WebDAV Respository.
	Alias /webdav "/srv/www/webdav"

	<Directory /srv/www/webdav>
		#enable webdav for this directory
		Dav On
		Options +Indexes
		IndexOptions FancyIndexing
		AddDefaultCharset UTF-8
		AuthType Basic
		AuthName "WebDAV Server"

		#htpasswd2 -c /etc/apache2/dav_users.db <username>
		AuthUserFile /etc/apache2/dav_users.db
		<LimitExcept GET OPTIONS>
			Require vaild-user
		</LimitExcept>
		Order allow,deny
		Allow from all
	</Directory>
</IfModule>

I hope there is no error?!?

Did you do this step and restart apache?

Edit /etc/sysconfig/apache2 and add dav and dav_fs to the APACHE_MODULES variable.

Do a:

/usr/sbin/httpd2 -M 2>&1 | grep dav

and post the result.

I have the same Problem:

Horst:~ # /usr/sbin/httpd2 -M 2>&1 | grep dav
 dav_module (shared)
 dav_fs_module (shared)
Horst:~ #

can you help me?