The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'General Discussion' started by steveluscher, Feb 16, 2006.

  1. steveluscher

    steveluscher Member

    Joined:
    Feb 11, 2006
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    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...
     
    #1 steveluscher, Feb 16, 2006
    Last edited: Feb 16, 2006
Loading...

Share This Page