簡體   English   中英

Windows NTLM授權質詢

[英]Windows NTLM authorization challenge expected

我一直在嘗試通過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

您可以顯示測試計划屏幕截圖或描述HTTP Authorization Manager的配置方式以及它在計划中的放置位置嗎?

您可以參考Windows身份驗證與Apache JMeter指南,以獲取配置JMeter與NTLM身份驗證一起使用的示例。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM