安全 Web 服务 (NTLM) - Jmeter

2024-01-01

我正在尝试使用 Jmeter 测试 Web 服务。 Web 服务受 NTLM 身份验证(Windows)保护。我可以使用加载 WSDLWebService(SOAP) Request采样器。 目前,仅当我将代理服务器与本文中提到的 BurpSuit 一起使用时,它才有效所以答案 https://stackoverflow.com/questions/914899/testing-webservice-with-soapui-windows-authentication(我使用的是 Jmeter 和 BurpSuite,而不是 SOUP UI)。

但是我不想使用代理服务器,而是想直接在 Jmeter 中使用带有 NTLM 身份验证的 Web 服务。我已经尝试过HTTP Authentication Manager通过ntlm认证。但它仍然给了401 Authorization Required在回应中

谢谢您的帮助。

采样器结果。

Thread Name: WebSVC 1-1
Sample Start: 2010-06-28 13:54:08 IST
Load time: 752
Latency: 0
Size in bytes: 401
Sample Count: 1
Error Count: 0
Response code: 200
Response message: OK

Response headers:
Date=Mon, 28 Jun 2010 08:24:08 GMT
Server=Apache/2.2.9 (Unix) DAV/2 mod_jk/1.2.26
Connection=close
WWW-Authenticate=NTLM


SampleResult fields:
ContentType: text/html; charset=iso-8859-1
DataEncoding: iso-8859-1

和回应

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>401 Authorization Required</title>
</head><body>
<h1>Authorization Required</h1>
<p>This server could not verify that you
are authorized to access the document
requested.  Either you supplied the wrong
credentials (e.g., bad password), or your
browser doesn't understand how to supply
the credentials required.</p>
</body></html>

我设法让它工作使用SOAP/XML-RPC Request Sampler with Use keepAlive选项已启用(当然在HTTP Authentication Manager.

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

安全 Web 服务 (NTLM) - Jmeter 的相关文章

随机推荐