webdav user login/validation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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>

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux