That's configured in 'httpd.conf'. Here's an example stanza, which will cause sending of the information to any CGI script in the '/cgi-bin' directory:
<Directory /httpd/cgi-bin/>
    AuthType Basic
    AuthName PT_internal
    AuthUserFile /usr/local/apache/etc/passwd
    AuthGroupFile /usr/local/apache/etc/group
<Limit GET POST>
    require group users
</Limit>
</Directory>
Of course, you have to set up the password/group database, etc. I've tried a similar approach with the servlet directory, and it doesn't seem to work. There must be a parallel method of accomplishing this, but I can't find it!

Constantin
---
Robert Crawford wrote:

On Tue, Feb 01, 2000 at 08:40:22AM -0700, Constantin Nickonov wrote:
> A quick question: how do you configure Apache/Jserv (on Linux) to enable
> the getRemoteUser() method in servlets. My current implementation
> returns "null", even after authentication. It must be a zone
> configuration, but I cannot seem to find documentation on how it is set
> up.

        How do you configure Apache to get a valid REMOTE_USER in
CGIs?

--
                                                [EMAIL PROTECTED]

"The bullets are just his way of saying 'Keep it down, I've got a
hangover.'"

--
----------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to