[jboss-jira] [JBoss JIRA] (AS7-1581) tomcatAuthentication attribute on the AJP connector

Usman Saleem (JIRA) jira-events at lists.jboss.org
Thu Dec 13 18:41:18 EST 2012


    [ https://issues.jboss.org/browse/AS7-1581?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12741368#comment-12741368 ] 

Usman Saleem commented on AS7-1581:
-----------------------------------

Hi Jean,

You modified http://anonsvn.jboss.org/repos/jbossweb/tags/JBOSSWEB_7_0_17_FINAL/java/org/apache/coyote/ajp/AjpAprProcessor.java with following change:
{noformat}
 protected boolean tomcatAuthentication = 
        Boolean.valueOf(System.getProperty("org.apache.coyote.ajp.AprProcessor.TOMCATAUTHENTICATION", "true")).booleanValue();
{noformat}
However, AjpAprProtocol.java modified this value as follows:
{noformat}
    /**
     * Should authentication be done in the native webserver layer, 
     * or in the Servlet container ?
     */
    protected boolean tomcatAuthentication = true;

...
// --------------------------------------  AjpConnectionHandler Inner Class
    protected static class AjpConnectionHandler implements Handler {
...
protected AjpAprProcessor createProcessor() {
            AjpAprProcessor processor = new AjpAprProcessor(proto.packetSize, proto.endpoint);
            processor.setAdapter(proto.adapter);
            processor.setTomcatAuthentication(proto.tomcatAuthentication); // <--- This will override the system property settings.
            processor.setRequiredSecret(proto.requiredSecret);
            register(processor);
            return processor;
}
{noformat}
Hence, the change should also be made in AjpAprProtocol.java as:
{noformat}
 protected boolean tomcatAuthentication = 
              Boolean.valueOf(System.getProperty("org.apache.coyote.ajp.AprProcessor.TOMCATAUTHENTICATION", "true")).booleanValue();
{noformat}

Thanks,

Usman

                
> tomcatAuthentication attribute on the AJP connector
> ---------------------------------------------------
>
>                 Key: AS7-1581
>                 URL: https://issues.jboss.org/browse/AS7-1581
>             Project: Application Server 7
>          Issue Type: Feature Request
>          Components: Web
>    Affects Versions: 7.0.0.Final
>         Environment: Windows Server 2003 32 bit, IIS 6, tomcat connector 1.2.28 used as an extension
>            Reporter: Brett Prucha
>            Assignee: Jean-Frederic Clere
>            Priority: Minor
>             Fix For: 7.2.0.CR1
>
>
> In JBoss 5.1.0 I could set the tomcatAuthentication attribute of the AJP connector to false to allow IIS to handle the authentication and pass that along to JBoss. I'm wanting to upgrade to JBoss 7 but unable to set this attribute in version 7.0.0 final to make this work. This attribute is descibed in the tomcat documentation at http://tomcat.apache.org/tomcat-7.0-doc/config/ajp.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list