Project

General

Profile

Authentication from LDAP for WebDAV (with SSL)

Added by jstarek over 16 years ago

Hello everyone,

I am trying to set up a lighttpd 1.4.13 server on Debian Etch so that users can access their home directory with WebDAV. The connection needs to be secured with SSL. A list of valid users is maintained in an openLDAP server (running on the same machine).

From the documentation on http://redmine.lighttpd.net/wiki/lighttpd/Docs:ModAuth, it is not clear to me how I'll have to configure the authentication. Each user should only be able to access their own home directory, so I assume from reading the wiki page that I'd have to create an entry like

auth.require = ( "/home/user1/" => 
                   ( 
                    "method"  => "plain",
                    "realm"   => "User1's home dir",
                    "require" => "user=user1" 
           ),

for each user in the config file. This, however, is surely not how lighttpd's ldap authentication is supposed to work -- what am I missing?

Besides, do you think what I have in mind is the right approach? I was also thinking about giving every user access to the entire /home/ tree and locking them out of others' directories just by using access rights. This would have the advantage of allowing the use of a "shared" folder where every user could put stuff for everyone else to use...

Many thanks in advance for all hints

Jürgen