Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    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...
     
    #1 steveluscher, Feb 16, 2006
    Last edited: Feb 16, 2006
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice