webdav : digest authentication

Clément Février clement at forumanalogue.fr
Thu May 20 17:10:15 UTC 2010


Le 20/05/2010 10:21, Sundar Nagarajan a écrit :
> Clement,
>
> please ignore my earlier email. After replying, I tried the instructions
> myself on a lucid server, and found that there are some confusing /
> incomplete instructions out there.
>
> Bottom line is, at least on Lucid, you need to use the
> "AuthDigestProvider file" and the "AuthUser" directive to point at the
> digest password file, rather than the "AuthDigest" directive.
>
> My clue was this thread on the Ubuntu forums:
> http://ubuntuforums.org/archive/index.php/t-157415.html
>
> I wrote a HOWTO on the Ubuntu Community wiki:
> https://help.ubuntu.com/community/Apache2WebDavDigestAUTH
>
> Hope this helps you get going.
>
>

... some minutes (hours) later ...

Really helpful ! I didn't find this howto during my previous research on 
the Ubuntu community wiki.

I enable the three mods :
dav_fs
auth_digest
authn_file

changed the user/group to the webdav : www-data:www-data

In the virtualhost, I replaced the section about the webdav by the one 
given in the howto

	<Location /webdav/>
         Dav On
         AuthType Digest
         AuthName "webdav"
         AuthDigestDomain /webdav/
         AuthDigestProvider file
         AuthUserFile /home/www/www/.htdigest
         Require valid-user
	</Location>

Recreating the password file :
htdigest -c /home/www/www/.htdigest webdav clement

Again, the same issue :
access.log :

127.0.0.1 - - [20/May/2010:18:48:52 +0200] "OPTIONS /webdav/ HTTP/1.1" 
401 881 "-" "cadaver/0.23.3 neon/0.29.0"
127.0.0.1 - clement [20/May/2010:18:49:02 +0200] "OPTIONS /webdav/ 
HTTP/1.1" 401 796 "-" "cadaver/0.23.3 neon/0.29.0"

error.log :

[Thu May 20 18:49:02 2010] [error] [client 127.0.0.1] GROUP: clement not 
in required group(s).

So, still not working ... I really don't understand what's the problem.


-- 
Clément Février
http://www.forumanalogue.fr/
Président d'Ubuntu-Lyon
http://www.ubuntu-lyon.org/?accueil




More information about the ubuntu-users mailing list