预计Windows NTLM授权挑战

时间:2014-12-15 08:10:25

标签: apache http jmeter

我一直在尝试使用jmeter进行NTLM身份验证,但需要关注 "预期NTLM授权挑战"。

此外,我看到NTLM响应和NTLM客户端挑战在服务器响应上为空。

2014/12/14 21:07:51 DEBUG - jmeter.control.GenericController: Calling next on: org.apache.jmeter.control.LoopController 
2014/12/14 21:07:51 DEBUG - jmeter.protocol.http.sampler.HTTPHC3Impl: notifyFirstSampleAfterLoopRestart 
2014/12/14 21:07:51 DEBUG - jmeter.protocol.http.sampler.HTTPHC3Impl: Start : sample htt p://ip.comain.com/csc/startup.do?subscriberid=101316984952&externalcaseid=51145083&xdgid=101316984952&user=101316984952@fiber&context=FTTb 
2014/12/14 21:07:51 DEBUG - jmeter.protocol.http.sampler.HTTPHC3Impl: method GET 
2014/12/14 21:07:51 DEBUG - jmeter.protocol.http.sampler.HTTPHC3Impl: Created new HttpClient: @1552866196 
2014/12/14 21:07:51 DEBUG - jmeter.protocol.http.control.HC3CookieHandler: Found 0 cookies for htt p://ip.comain.com/csc/startup.do?subscriberid=101316984952&externalcaseid=51145083&xdgid=101316984952&user=101316984952@fiber&context=FTTb 
2014/12/14 21:07:51 DEBUG - jmeter.protocol.http.control.AuthManager: Target URL strings to match against: htt p://ip.domain.com/csc/startup.do?subscriberid=101316984952&externalcaseid=51145083&xdgid=101316984952&user=101316984952@fiber&context=FTTb and htt p://ip.domain.com:80/csc/startup.do 
2014/12/14 21:07:51 DEBUG - jmeter.protocol.http.control.AuthManager: Checking match against auth'n entry:  
2014/12/14 21:07:51 DEBUG - jmeter.protocol.http.control.AuthManager: Matched 
2014/12/14 21:07:51 DEBUG - jmeter.protocol.http.sampler.HTTPHC3Impl: XXXX >  D=XXX D= R= 
2014/12/14 21:07:52 DEBUG - jmeter.protocol.http.sampler.HTTPHC3Impl: Response headersSize=458 bodySize=415 Total=873 
2014/12/14 21:07:52 DEBUG - jmeter.protocol.http.control.HC3CookieHandler: Received Cookie: JSESSIONID=9QKpJNgDFLRd59GkZByHkvJhYSTcfGCHXCRTTNjpWQ1tmsQZc4FM!-1889773499; path=/; HttpOnly From: htt p://ip.domain.com/csc/startup.do?subscriberid=101316984952&externalcaseid=51145083&xdgid=101316984952&user=101316984952@fiber&context=FTTb 
2014/12/14 21:07:52 DEBUG - jmeter.protocol.http.control.CookieManager: Add cookie to store ip.comain.com                TRUE                /              FALSE    0             JSESSIONID        9QKpJNgDFLRd59GkZByHkvJhYSTcfGCHXCRTTNjpWQ1tmsQZc4FM!-1889773499 
2014/12/14 21:07:52 DEBUG - jmeter.protocol.http.sampler.HTTPSamplerBase: Location set to - htt p://ip.domain.com/csc/spnego;jsessionid=9QKpJNgDFLRd59GkZByHkvJhYSTcfGCHXCRTTNjpWQ1tmsQZc4FM!-1889773499 
2014/12/14 21:07:52 DEBUG - jmeter.protocol.http.sampler.HTTPHC3Impl: Start : sample htt p://ip.domain.com/csc/spnego;jsessionid=9QKpJNgDFLRd59GkZByHkvJhYSTcfGCHXCRTTNjpWQ1tmsQZc4FM!-1889773499 
2014/12/14 21:07:52 DEBUG - jmeter.protocol.http.sampler.HTTPHC3Impl: method GET 
2014/12/14 21:07:52 DEBUG - jmeter.protocol.http.sampler.HTTPHC3Impl: Reusing the HttpClient: @1552866196 
2014/12/14 21:07:52 DEBUG - jmeter.protocol.http.control.HC3CookieHandler: Found 1 cookies for htt p://ip.domain.com/csc/spnego;jsessionid=9QKpJNgDFLRd59GkZByHkvJhYSTcfGCHXCRTTNjpWQ1tmsQZc4FM!-1889773499 
2014/12/14 21:07:52 DEBUG - jmeter.protocol.http.control.HC3CookieHandler: Cookie: JSESSIONID=9QKpJNgDFLRd59GkZByHkvJhYSTcfGCHXCRTTNjpWQ1tmsQZc4FM!-1889773499 
2014/12/14 21:07:52 DEBUG - jmeter.protocol.http.control.AuthManager: Target URL strings to match against: htt p://ip.comain.com/csc/spnego;jsessionid=9QKpJNgDFLRd59GkZByHkvJhYSTcfGCHXCRTTNjpWQ1tmsQZc4FM!-1889773499 and htt p://ip.comain.com:80/csc/spnego;jsessionid=9QKpJNgDFLRd59GkZByHkvJhYSTcfGCHXCRTTNjpWQ1tmsQZc4FM!-1889773499 
2014/12/14 21:07:52 DEBUG - jmeter.protocol.http.control.AuthManager: Checking match against auth'n entry:  
2014/12/14 21:07:52 DEBUG - jmeter.protocol.http.control.AuthManager: Matched 
2014/12/14 21:07:52 DEBUG - jmeter.protocol.http.sampler.HTTPHC3Impl: EXT0191698 >  D=EXT0191698 D= R= 
2014/12/14 21:07:52 INFO  - org.apache.commons.httpclient.auth.AuthChallengeProcessor: ntlm authentication scheme selected 
2014/12/14 21:07:52 ERROR - org.apache.commons.httpclient.HttpMethodDirector: ntlm authorization challenge expected, but not found org.apache.commons.httpclient.auth.AuthenticationException: ntlm authorization challenge expected, but not found
                at org.apache.commons.httpclient.auth.AuthChallengeProcessor.processChallenge(AuthChallengeProcessor.java:159)
                at org.apache.commons.httpclient.HttpMethodDirector.processWWWAuthChallenge(HttpMethodDirector.java:694)
                at org.apache.commons.httpclient.HttpMethodDirector.processAuthenticationResponse(HttpMethodDirector.java:668)
                at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:193)
                at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
                at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
                at org.apache.jmeter.protocol.http.sampler.HTTPHC3Impl.sample(HTTPHC3Impl.java:269)
                at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:74)
                at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.followRedirects(HTTPSamplerBase.java:1411)
                at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.resultProcessing(HTTPSamplerBase.java:1482)
                at org.apache.jmeter.protocol.http.sampler.HTTPAbstractImpl.resultProcessing(HTTPAbstractImpl.java:306)
                at org.apache.jmeter.protocol.http.sampler.HTTPHC3Impl.sample(HTTPHC3Impl.java:361)
                at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:74)
                at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1105)
                at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1094)
                at org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:429)
                at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:257)
                at java.lang.Thread.run(Unknown Source)

2014/12/14 21:07:52 DEBUG - jmeter.protocol.http.sampler.HTTPHC3Impl: Response headersSize=253 bodySize=0 Total=253 
2014/12/14 21:07:52 DEBUG - jmeter.protocol.http.sampler.HTTPHC3Impl: End : sample 
2014/12/14 21:07:52 DEBUG - jmeter.protocol.http.sampler.HTTPHC3Impl: End : sample

1 个答案:

答案 0 :(得分:0)

您是否可以显示测试计划屏幕截图或描述HTTP Authorization Manager的配置方式以及计划中的位置?

有关配置JMeter以使用NTLM身份验证的示例,请参阅Windows Authentication with Apache JMeter指南。