Enable Kerberos Auth via the Authorization Manager
I'm currently trying to reach a server accepting websockets/http requests that is behind a corporate proxy with Kerberos authentication. I have added on the AuthorizationManager my Kerberos credentials and my local machine have a valid ticket. When I try hitting the http:// api it works flawlessly, but when using the WebSocker Single Writer Sampler the Authorization credentials are not picked up from the authorization manager.
I would like to know if it is possible to make the plugin to be aware of the authorization manager so it can be used in the presence of a kerberos corporate proxy.
Comments (5)
-
repo owner -
repo owner Of course it is possible, but it is more work than i initially expected. Adding other Managers has been a simple task (e.g. https://bitbucket.org/pjtr/jmeter-websocket-samplers/issues/4/cookies-support), but this one will take of lot more effort. As i don’t need it myself and up to now you’re the only one requesting it, it’s very unlikely that i will add it.
But, of course, contributions are welcome
.
Regards
Peter
-
repo owner And maybe there is a work-around by first doing a regular HTTP request to obtain the kerberos token and then put the token in the header manager to have it send with the initial websocket request?
-
I tried the workaround, extracted the token from the previous request, and entered it in the 'HTTP Header Manager' for the Authorization parameter but I was getting the ‘krb5krb_ap_err_repeat 401’ in the response (checked in Wireshark, JMeter was only displaying 401). Seems like there is no option to obtain the token from another HTTP request. Any chance to implement support for Kerberos in the near future?
-
repo owner Not by me. But contributions are always welcome ;-)
- Log in to comment
Hi,
I think that would be possible; i’ll have a look.
Regards, Peter