Bug 62462

Summary: Re-enable credential delegation for SPNEGO
Product: JMeter Reporter: Felix Schumacher <felix.schumacher>
Component: HTTPAssignee: JMeter issues mailing list <issues>
Status: RESOLVED FIXED    
Severity: normal CC: p.mouawad
Priority: P2 Keywords: FixedInTrunk
Version: 4.0   
Target Milestone: JMETER_5.0   
Hardware: All   
OS: All   
Attachments: re-enable credential delegation for SPNEGO

Description Felix Schumacher 2018-06-16 13:11:48 UTC
Created attachment 35969 [details]
re-enable credential delegation for SPNEGO

Newer versions of commons httpclient disabled the delegation of credentials when using SPNEGO for authentication.

The attached patch (same as pr 387 on github) makes it possible to enable delegation again. It is disabled by default, though.
Comment 1 Felix Schumacher 2018-06-16 13:39:26 UTC
Date: Sat Jun 16 13:37:58 2018
New Revision: 1833637

URL: http://svn.apache.org/viewvc?rev=1833637&view=rev
Log:
Make delegation of credentials in SPNEGO possible again.

Newer versions of httpcomponents-client (at least in the 4.x branch) removed the ability to delegate
kerberos credentials via SPNEGO. This will make it possible to re-enable delegation by specifying
a system property.

Bugzilla Id: 62462
Closes #387 on github

Added:
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/DelegatingKerberosScheme.java   (with props)
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/DelegatingSPNegoScheme.java   (with props)
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/DynamicSPNegoSchemeFactory.java   (with props)
Modified:
    jmeter/trunk/bin/jmeter.properties
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/DynamicKerberosSchemeFactory.java
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC4Impl.java
    jmeter/trunk/xdocs/changes.xml
    jmeter/trunk/xdocs/usermanual/component_reference.xml
    jmeter/trunk/xdocs/usermanual/properties_reference.xml
Comment 2 Felix Schumacher 2018-06-16 14:48:32 UTC
Date: Sat Jun 16 14:47:37 2018
New Revision: 1833640

URL: http://svn.apache.org/viewvc?rev=1833640&view=rev
Log:
Make checkstyle happy.

Follow up to r1833637

Bugzilla Id: 62462
Relates to #387 on github


Modified:
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/DynamicKerberosSchemeFactory.java
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/DynamicSPNegoSchemeFactory.java