Skip to content

Add delegation for SPNEGO back to JMeter - #387

Closed
FSchumacher wants to merge 2 commits into
apache:trunkfrom
FSchumacher:delegate-krb
Closed

Add delegation for SPNEGO back to JMeter#387
FSchumacher wants to merge 2 commits into
apache:trunkfrom
FSchumacher:delegate-krb

Conversation

@FSchumacher

Copy link
Copy Markdown
Contributor

Description

Newer httpclient versions (at least in the 4.x branch) have dropped the support for delegation of kerberos tickets over SPNEGO. This patch brings back the support to delegation back to JMeter.

Motivation and Context

Older versions of JMeter always tried to get forwardable tickets when using SPNEGO. As I need this functionality for a service, I would like to have the forwarding back. As the default forwarding could be seen critical from a security standpoint, the patch disables it by default. It can be enabled by a system property.

How Has This Been Tested?

Tested it on a service that depends on delegation of tickets.

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue) (At least I see this as a regression)

Checklist:

  • My code follows the code style of this project.
  • I have updated the documentation accordingly.

@pmouawad

pmouawad commented Jun 8, 2018

Copy link
Copy Markdown
Contributor

Thanks for PR.
Just wondering, why do we use httpcomponents package ?

  • org.apache.http.impl.auth.DelegatingKerberosScheme
  • org.apache.http.impl.auth.DelegatingSPNegoScheme

Thanks

@FSchumacher

Copy link
Copy Markdown
Contributor Author

I thought I hat to overwrite the method createGSSContext, which is only possible on a subclass in the same package. I changed it now explicitly to call another method and placed the classes in JMeter's package namespace. Will check on Monday, if it is still working.

@pmouawad

pmouawad commented Jun 8, 2018

Copy link
Copy Markdown
Contributor

Thanks Felix

@pmouawad

Copy link
Copy Markdown
Contributor

Hi Felix,
Did you have time to check the changes are working ?
If yes, +1 for committing it.

@asfgit asfgit closed this in 2a3694f Jun 16, 2018
asfgit pushed a commit that referenced this pull request Jun 16, 2018
Follow up to r1833637

Bugzilla Id: 62462
Relates to #387 on github



git-svn-id: https://svn.apache.org/repos/asf/jmeter/trunk@1833640 13f79535-47bb-0310-9956-ffa450edef68
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants