jmeter-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 60696] New: SPNEGO always canonicalizes host names, Option to pick behavior would be welcome
Date Mon, 06 Feb 2017 20:55:38 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=60696

            Bug ID: 60696
           Summary: SPNEGO always canonicalizes host names, Option to pick
                    behavior would be welcome
           Product: JMeter
           Version: 3.1
          Hardware: PC
                OS: Mac OS X 10.1
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTTP
          Assignee: issues@jmeter.apache.org
          Reporter: zolyfarkas@yahoo.com
  Target Milestone: ---

At:

https://github.com/apache/jmeter/blob/c616f4f84d11812febbf442806b90b02c306fe0c/src/protocol/http/org/apache/jmeter/protocol/http/control/AuthManager.java#L474

SPNegoSchemeFactory is created like:

new SPNegoSchemeFactory(isStripPort(url)));

the scheme factory has an alternate constructor
(https://github.com/apache/httpclient/blob/4.5.x/httpclient/src/main/java/org/apache/http/impl/auth/SPNegoSchemeFactory.java#L53)
that allows to pick canonicalization behavior for the host name:

   /**
     * @since 4.4
     */
    public SPNegoSchemeFactory(final boolean stripPort, final boolean
useCanonicalHostname) {

Unfortunately for certain use cases where we have a load balancer serving
multiple names mapped to the same IP address the canonicalization breaks
authentication for us by generating a incorrect SPN.

It would be helpful to be able to control this behavior in JMeter either via UI
or config.

-- 
You are receiving this mail because:
You are the assignee for the bug.
Mime
View raw message