You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by ra...@ca.ibm.com on 2000/11/03 20:27:32 UTC

Bug in mod_jk using AJP13 when passing Auth header to JDBCRealm ?



code snip: SecurityTools.java

start ------------------------
  public static void basicCredentials( Request req, Hashtable credentials )
    {
     Context ctx=req.getContext();

     String authMethod=ctx.getAuthMethod();
     if( authMethod==null || "BASIC".equals(authMethod) ) {

         String authorization = req.getHeader("Authorization");

         if (authorization == null )
          return; // no credentials
         if( ! authorization.startsWith("Basic "))
          return; // wrong syntax

end  ------------------------

String authorization = req.geHeader("Authorization") returns null.


System
Apache 1.3.14 using mod_jk and AJP13
Tomcat 3.1b6
WinNT 4.0

When I change the worker to AJP12 all works fine. Is there a fix available
for this?


Regards,
------------------------------------------------------------------------
Raimee Stevens
DB2 UDB NLV Team - IBM Toronto Lab

Email: raimee@ca.ibm.com   VM: RAIMEE@TOROLAB2
Phone: (416)448-3706   T/L 778-3706  Fax: (416)448-4414