Bug 62462 - Re-enable credential delegation for SPNEGO
Summary: Re-enable credential delegation for SPNEGO
Status: RESOLVED FIXED
Alias: None
Product: JMeter - Now in Github
Classification: Unclassified
Component: HTTP (show other bugs)
Version: 4.0
Hardware: All All
: P2 normal (vote)
Target Milestone: JMETER_5.0
Assignee: JMeter issues mailing list
URL:
Keywords: FixedInTrunk
Depends on:
Blocks:
 
Reported: 2018-06-16 13:11 UTC by Felix Schumacher
Modified: 2018-06-16 14:48 UTC (History)
1 user (show)



Attachments
re-enable credential delegation for SPNEGO (16.51 KB, patch)
2018-06-16 13:11 UTC, Felix Schumacher
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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
Comment 3 The ASF infrastructure team 2022-09-24 20:38:13 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/4798