简体   繁体   English

JMeter NTLM,应包含哪个请求?

[英]JMeter NTLM, which request should be included?

I am using JMeter to automate a site that involves NTLM authentication. 我正在使用JMeter自动化涉及NTLM身份验证的站点。

I have recorded the traffic and identified three main requests with below Response Headers: 我已经记录了访问量,并在响应头下方标识了三个主要请求:

1st request: 第一个要求:

HTTP/1.1 401 Unauthorized

WWW-Authenticate: Negotiate
WWW-Authenticate: NTLM

2nd request: 第二个要求:

HTTP/1.1 401 Unauthorized

WWW-Authenticate: Negotiate + authentication token

3rd request: 第三个要求:

HTTP/1.1 200 OK

My question is, which request should I keep in my test plan and which requests should I remove, considering that JMeter Authorization Manager seems to be able to handle the process of NTLM. 我的问题是,考虑到JMeter Authorization Manager似乎能够处理NTLM的过程,我应该保留在测试计划中的哪个请求以及应该删除哪些请求。

I have read many blogs related to JMeter and NTLM but I have not seen any reference to this particular question. 我已经阅读了许多与JMeter和NTLM相关的博客,但是我没有看到有关此特定问题的任何参考。

Thanks in advance. 提前致谢。

Given you properly configure HTTP Authorization Manager , to wit provide: 只要您正确配置了HTTP Authorization Manager ,即可提供:

  • Username 用户名
  • Password 密码
  • Domain
  • and optionally Realm 以及可选的领域

You should leave only one request, HTTP Authorization Manager will automatically construct proper Authorization Header which should let you in. 您只应留下一个请求,HTTP Authorization Manager将自动构造适当的Authorization Header ,该标题应允许您进入。

See Windows Authentication with Apache JMeter article for more details. 有关更多详细信息,请参见使用Apache JMeter进行Windows身份验证

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM