mmanders    01/07/20 15:08:16

  Modified:    src/share/org/apache/tomcat/modules/server Ajp13.java
  Log:
  When calling setUserPrincipal, use the RemoteUser we just read instead of reading 
the next string in the message.  Otherwise, we through the message/protocol off.
  
  Revision  Changes    Path
  1.21      +1 -1      
jakarta-tomcat/src/share/org/apache/tomcat/modules/server/Ajp13.java
  
  Index: Ajp13.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/modules/server/Ajp13.java,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- Ajp13.java        2001/07/17 04:06:29     1.20
  +++ Ajp13.java        2001/07/20 22:08:16     1.21
  @@ -330,7 +330,7 @@
                req.setRemoteUser( msg.getString());
                // XXX recycle ?
                // Note that roles are not integrated with apache
  -             req.setUserPrincipal( new SimplePrincipal( msg.getString()));
  +             req.setUserPrincipal( new SimplePrincipal( req.getRemoteUser() ));
                   break;
                
            case SC_A_AUTH_TYPE    :
  
  
  

Reply via email to