Require valid-user; how to automatically assume we mean the owner of the docroot?

steveluscher

Member
Feb 11, 2006
14
0
151
Here's one for you... I've set up a WebDAV server on Apache so that people can publish their iCals (for instance). I've set it up so far, such that everyone has to use ONE password, that I preset. Here is what I've put in httpd.conf

Code:
<Directory />
DAV Off
</Directory>

DAVLockDB /usr/local/apache/var/DAVLock
DAVMinTimeout 600
DAVDepthInfinity off
LimitXMLRequestBody 1000000
<Directory /home/*/public_html/ical>
        DAV On
        AllowOverride None
        Options None
        <Limit PUT POST DELETE PROPFIND PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
                AuthType Basic
                AuthName "iCal Repository"
                AuthUserFile /etc/icalpass
                Require user ical
        </Limit>
</Directory>
This works!

Question: How can I change this setup so that it asks for the user : pass of the owner of the curent document root? In other words, if I'm trying to publish an iCal to http://www.myserver.com/thisuser/ical/ how can I set it up so that it automatically knows to authenticate against "thisuser"?

Thanks!
Steve...
 
Last edited: