Re: svn commit: r643181 - /tomcat/trunk/webapps/docs/config/ajp.xml

2008-04-01 Thread Peter Rossbach

HI Mark,

as you set request.secret=xxx you don't use request.useSecret=true.
With useSecret you generate a random requiredSecret,

Look at o.a.coyote.jk.common.HandlerRequest

LL 123
  public void setSecret( String s ) {
requiredSecret=s;
}

public void setUseSecret( boolean b ) {
if(b) {
requiredSecret=Double.toString(Math.random());
}
}

Is request.shutdownEnabled is also true you can find
the file  conf/ajp13.id with your AJP setup (s. generateAJp13Id()).

Regards
Peter


Am 01.04.2008 um 00:19 schrieb [EMAIL PROTECTED]:

Author: markt
Date: Mon Mar 31 15:19:20 2008
New Revision: 643181

URL: http://svn.apache.org/viewvc?rev=643181view=rev
Log:
Fix bug 44715. Document use of secret for AJP connector.

Modified:
tomcat/trunk/webapps/docs/config/ajp.xml

Modified: tomcat/trunk/webapps/docs/config/ajp.xml
URL: http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/config/ 
ajp.xml?rev=643181r1=643180r2=643181view=diff
== 


--- tomcat/trunk/webapps/docs/config/ajp.xml (original)
+++ tomcat/trunk/webapps/docs/config/ajp.xml Mon Mar 31 15:19:20 2008
@@ -274,6 +274,18 @@
   to a particular port number on a particular IP address./p
 /attribute

+attribute name=request.secret required=false
+  pOnly requests from workers with this secret keyword will  
be accepted.
+  This attribute only has an effect if  
coderequest.useSecret/code is

+  codetrue/code./p
+/attribute
+
+attribute name=request.useSecret required=false
+  pIf set to codetrue/code, then only requests from  
workers with the
+  same secret keyword will be accepted. This is set to  
codefalse/code

+  by default./p
+/attribute
+
 attribute name=tcpNoDelay required=false
   pIf set to codetrue/code, the TCP_NO_DELAY option will be
   set on the server socket, which improves performance under most



-
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]



Re: svn commit: r643181 - /tomcat/trunk/webapps/docs/config/ajp.xml

2008-04-01 Thread Mark Thomas

Peter Rossbach wrote:

HI Mark,

as you set request.secret=xxx you don't use request.useSecret=true.
With useSecret you generate a random requiredSecret,

Look at o.a.coyote.jk.common.HandlerRequest


Cheers. Fixed.

Mark


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