简体   繁体   English

JMeter v.4 NTLM身份验证

[英]JMeter v. 4 NTLM Authentication

I have an issue with NTLM Authentication, I'm using JMeter v. 4 and this is first time I'm using JMeter, so I'm beginner. 我的NTLM身份验证有问题,我正在使用JMeter v。4,这是我第一次使用JMeter,所以是新手。

I've tried to follow couple of solutions that I found here but I'm still facing issue. 我尝试遵循这里找到的几种解决方案,但仍然面临问题。

HTTP Authorization Manager has following values: HTTP授权管理器具有以下值:

Base URL: http:// [test site] 基本网址:http:// [测试站点]
Username: [my user name] - (have even tested with user@domain) 用户名:[我的用户名]-(甚至已经用user @ domain测试过)
Password: [my password] 密码:[我的密码]
Domain: Domain 域:域
Realm: Empty - (have even tested with domain.local) 领域:空-(甚至已经用domain.local测试过)
Mechanism: BASIC_DIGEST - (have even tested with KERBEROS) 机制:BASIC_DIGEST-(甚至已使用KERBEROS测试)

My HTTP Request has following: 我的HTTP请求包含以下内容:
Basic 基本的
Server Name or IP: http:// [test site] 服务器名称或IP:http:// [测试站点]
Method: GET 方法:GET
Use KeepAlive is enabled 已启用使用KeepAlive
Browser.compatible headers is enabled 启用Browser.compatible标头
Advanced 高级
Implementation: HttpClient4 实现:HttpClient4

I have tried to edit \\bin\\user.properties\\ and added Setting httpclient4.auth.preemptive=true or httpclient4.auth.preemptive$Boolean=true but still having issue: 我尝试编辑\\ bin \\ user.properties \\,并添加了设置 httpclient4.auth.preemptive = truehttpclient4.auth.preemptive $ Boolean = true,但仍然存在问题:

Response message: Unauthorized 响应消息:未经授权

Response headers: 响应头:
HTTP/1.1 401 Unauthorized HTTP / 1.1 401未经授权
Content-Type: text/html 内容类型:text / html
Server: Microsoft-IIS/8.5 服务器:Microsoft-IIS / 8.5
WWW-Authenticate: Negotiate WWW认证:协商
WWW-Authenticate: NTLM WWW认证:NTLM
X-Powered-By: ASP.NET X-Powered-by:ASP.NET
X-UA-Compatible: IE=Edge 兼容X-UA:IE = Edge
Date: Fri, 02 Mar 2018 08:42:30 GMT 日期:2018年3月2日星期五08:42:30 GMT
Content-Length: 1293 内容长度:1293

HTTPSampleResult fields: HTTPSampleResult字段:
ContentType: text/html ContentType:text / html
DataEncoding: iso-8859-1 数据编码:iso-8859-1

The configurations that I have are based on JMeter NTLM authentication failing 1 . 我拥有的配置基于失败的JMeter NTLM身份验证1 Is there any difference between versions? 版本之间有什么区别吗? What am I missing? 我想念什么? What could be wrong? 有什么事吗

  1. According to HTTP Specification there could be multiple WWW-Authenticate headers in the server response. 根据HTTP规范 ,服务器响应中可能有多个WWW-Authenticate标头。
  2. According to RFC 2617 the client must choose the strongest option, in your case it is Negotiate which most probably means Kerberos so I would suggest trying out configuring JMeter for Kerberos. 根据RFC 2617 ,客户端必须选择最强的选项,在您的情况下,它是Negotiate ,这很可能意味着Kerberos,因此,我建议尝试为Kerberos配置JMeter。

Check out Windows Authentication with Apache JMeter article for more information on configuring JMeter to deal with advanced authentication challenges. 请参阅“ 使用Apache JMeter进行Windows身份验证”文章,以获得有关配置JMeter来处理高级身份验证挑战的更多信息。

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

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