ModAuthUserDir

Apache2 module to create private user folders mainly for using the WebDAV? protocol. Users will have only permissions to access to their own directory. It only matches a given path with the attached username to the path of the acutal request. If they match the user is granted access. The actual user authentication (login and password) is delegated to other Apache modules like mod_authnz_ldap.

It is based on an earlier implementation by Genos: http://www.genos.org/index.php/Mod_auth_user_dir.

How it works

Let's take a look on how this module works/should work by an example where an alias is defined in Apache:
Alias /webdav/ /home/webdav/
<Location /webdav/>
  AuthType Basic
  AuthBasicProvider ldap
  AuthName "User-Homes"
  AuthLDAPURL "ldaps://ldap.example.org/dc=example,dc=org?uid"
  Require valid-user
  AuthUserDirRoot /home/webdav/
</Location>

Protected Path Requested Filename Username Result
/home/webdav/ /webdav/FooBar/ FooBar choice-yes Access is granted.
/home/webdav/ /webdav/FooBar/directory/page.html FooBar choice-yes Access is granted.
/home/webdav/ /FooBar/ FooBar question Not inside protected path, so no decision is made.
/home/webdav/ /webdav/ FooBar choice-no No private path requested but user is logged in. In the current 0.2 release access is denied but this maybe changes in the next releases.
/home/webdav/ /webdav/JohnDoe/ FooBar choice-no Username does not match requested path, access is denied.
/home/webdav/ /webdav/FooBar2/ FooBar choice-no Username does not match requested path, access is denied.

Sourcecode

Browse

To take a quick look on the source you can browse the Subversion repository either by WebSVN or in raw format.

Checkout

svn co http://subversion.fladi.at/scratchpad/FladischerMichael/trunk/mod_auth_user_dir/

Download

Packages

Debian

All packages are signed with my GPG-key 0x314C5066.
Topic revision: r3 - 19 Mar 2009 - 09:30:55 - FladischerMichael
 
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Fladi.at? Send feedback