Using Jmeter with OAM Windows Native Authentication

Using Jmeter (Apache Jmeter) to test Oracle Access Manager windows native authentication, WNA
Discussion here  LINK
Jmeter is not a browser. You need to pass it parameters for authentication.

http://jmeter.apache.org/usermanual/component_reference.html#HTTP_Authorization_Manager
The HttpClient3.1 implementation defaults to pre-emptive authentication if the setting has not been defined. To disable this, set the values as below, in which case authentication will only be performed in response to a challenge.

  •   In the file jmeter.properties set httpclient.parameters.file=httpclient.parameters and in httpclient.parameters set http.authentication.preemptive$Boolean=false
 Note: the above settings only apply to the HttpClient sampler.

http://stackoverflow.com/questions/10197961/jmeter-ntlm-windows-authentication-load-testing?rq=1
OK. Finally I got what was missing.

First, I had to change the implementation of every request to HttpClient3.1
Second, it was really frustrating to see that JMeter documentation was misleading.
It says that the config file httpclient.parameters, should be edited as following:

http.authentication.preemptive$Boolean=false
Change this to true and it should work fine.

Comments

Post a Comment

Popular posts from this blog

VMware fix for Invalid manifest and ova file import failed errors

SOAPUI - import certificate

Session Timeout in Oracle Access Manager