Thanks. I've seen that.

>From server.xml
==========
!-- configure intranet service -->
 
  <Service name="Tomcat-esgwNet">

    <!-- Define a Coyote/JK2 AJP 1.3 Connector on port 56999 -->
    <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
               port="56999" minProcessors="5" maxProcessors="75"
               enableLookups="true" redirectPort="56443"
               acceptCount="10" debug="0" connectionTimeout="0"
               useURIValidationHack="false"
               protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"
               tomcatAuthentication="false" />

     <Engine name="esgwNet" defaultHost="myServer" debug="0">

      <Logger className="org.apache.catalina.logger.FileLogger"
              prefix="intranet_log." suffix=".txt"
              timestamp="true"/>

                <Host name="myServer" debug="0" appBase="filePath/secure"
       unpackWARs="true" autoDeploy="true">

                <Context path="/Secure"
                        docBase="filePath/secure"
                        debug="0"
                        reloadable="false" >
                </Context>
                
                <Context path="Clients"
                        docBase="filePath/clients"
                        debug="0"
                        reloadable="false" >
                </Context>

                </Host>

    </Engine>

  </Service>

>>> [EMAIL PROTECTED] 01/05/04 04:22PM >>>

You have to tell Tomcat whether to get BASIC Auth remote user information from 
the connector (Apache) or from Tomcat itself.  See the following for details...

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12196 

Jake

Quoting Howard Watson <[EMAIL PROTECTED]>:

> Additional Info:
> 
> Enumerate HeaderNames
> ===============
> host : myServer:port
> user-agent : Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5)
> Gecko/20031007 Firebird/0.7
> accept :
> 
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,
video/x-mng,image/png,image/jpeg,image/gif;q=0.2,*/*;q=0.1
> accept-language : en-us,en;q=0.5
> accept-encoding : gzip,deflate
> accept-charset : ISO-8859-1,utf-8;q=0.7,*;q=0.7
> keep-alive : 300
> connection : keep-alive
> cookie : JSESSIONID=8E46392BD10C29E8DCF62E608D81DF5F
> authorization : Basic aG93YXJkdzphdXRoZW50aWNhdGVtZQ==
> cache-control : max-age=0
> content-length : 0
> =============
> End Request Headers
> 
> request.getAuthType() returns null
> request.getRemoteUser() returns null
> 
> End Additional Info
> 
> >>> [EMAIL PROTECTED] 12/31/03 12:03PM >>>
> Original message reformatted to match message posted at ApacheUser.
> 
> Porting web application from Apache1.3/Tomcat3.3.
> Before stumbling on this partial fix all my JSPs and servlets returned
> getRemoteUser null. This fix works for JSPs but doesn't help much for
> servlets.
> 
> Apache2.0.48
> Tomcat4.1.29
> mod_jk1.2.5
> jvm1.4.1_02a
> 
> Does anyone have any idea why a JSP referenced by name in a url would return
> getRemoteUser = null and the same JSP referenced through DirectoryIndex in
> Apache2 would return getRemoteUser = expected user name.
> 
> Example:
> http://serverAddr/DisplayUser.jsp returns null
> 
> In Apache conf
> DirectoryIndex DisplayUser.jsp
> 
> http://serverAddr/ returns DisplayUser.jsp with user name
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED] 
> For additional commands, e-mail: [EMAIL PROTECTED] 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED] 
> For additional commands, e-mail: [EMAIL PROTECTED] 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to