i run a webdav server with a number of users.
each user has access to a private space and everybody has access to a common space

user access their space with https://dav.example.com/Theirname
and the common space with https://dav.klam.ca/Common

to make life easier for myself and the other admins we created a apache macro to configure the webdav site, see below. For each user is added to a list that invokes the macro with their webdav space name and their userid.

I want users to be able to access any space that they have username and password for, plus they automagically get access tot eh Common area.

If Joe wants access his space he can log with his userid and has password and he gets accress to the areas Joe and Common, no problem. But if he wants then log in the Dogpound user he gets rejected with a message that the space is already being access under another user id.
Why?
What to do about it?

/
//<Macro WebDavUser %location %user>//
//# %location//
//
//Â Â Â  Alias /%location /srv/webdav/data/%location//
//
//Â Â Â  <Directory /srv/webdav/data/%location>//
//Â Â Â Â Â Â Â  DAV On//
//Â Â Â Â Â Â Â  Options +Indexes +MultiViews +FollowSymLinks//
//Â Â Â Â Â Â Â IndexOptions -IconsAreLinks +NameWidth=* +FancyIndexing +SuppressLastModified +FoldersFirst +HTMLTable//
//Â Â Â Â Â Â Â  IndexOrderDefault Ascending Name//
//Â Â Â Â Â Â Â  DirectoryIndex .harryboy.none//
//Â Â Â Â Â Â Â  AllowOverride None//
//Â Â Â Â Â Â Â  Order allow,deny//
//Â Â Â Â Â Â Â  Allow from all//
//Â Â Â Â Â Â Â  DavDepthInfinity on//
//Â Â Â Â Â Â Â  DavMinTimeout 600//
//Â Â Â Â Â Â Â  <RequireAny>//
//Â Â Â Â Â Â Â Â Â Â Â  <RequireAll>//
//Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â  Require expr %{REQUEST_URI} =~ m#Common$#//
//Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â  Require valid-user//
//Â Â Â Â Â Â Â Â Â Â Â  </RequireAll>//
//Â Â Â Â Â Â Â Â Â Â Â  <RequireAll>//
//Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â  AuthType Digest//
//Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â  AuthName "webdav"//
//Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â  AuthDigestProvider file//
//Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â  AuthUserFile /srv/webdav/auth.d/digest_pw//
//Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â  Require user %user//
//Â Â Â Â Â Â Â Â Â Â Â  </RequireAll>//
//Â Â Â Â Â Â Â  </RequireAny>//
//Â Â Â  </Directory>//
//</Macro>/

Reply via email to