PowerEdge:iDRAC HTTP 基本身份验证更改

Summary: iDRAC HTTP 基本身份验证默认设置已更改为未通告(之前的默认设置为已启用)。进行这些更改是为了提高凭据安全性并减少 Redfish 服务中 HTTP 基本身份验证的意外暴露。

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Symptoms

从通用客户端访问 Redfish 资源,但原始请求(例如,网页浏览器)未提供身份验证,将返回以下错误,并且不会自动提示输入凭据。 

  {
    "error": {
        "code": "Base.1.8.GeneralError",
        "message": "A general error has occurred. See ExtendedInfo for more information.",
        "@Message.ExtendedInfo": [
        {
            "@odata.type": "#Message.v1_1_0.Message",
            "MessageId": "Base.1.8.AccessDenied",
            "Message": "The authentication credentials included with this request are missing or invalid.",
            "MessageArgs": [],
            "MessageArgs@odata.count": 0,
            "RelatedProperties":[],
            "RelatedProperties@odata.count": 0,
            "Severity": "Critical",
            "Resolution": "Attempt to ensure that the URI is correct and that the service has the appropriate credentials."
        }
        ]
    }
}

Cause

新行为 

HTTPBasicAuth 默认值设置为 Unadvertised。如果发送初始 HTTP 请求时没有身份验证标头,则服务不会在 WWW-Authenticate 响应标头中通告基本身份验证。这可防止自动提示或通用客户端(例如浏览器)的访问。

< HTTP/1.1 401 Unauthorized
< Date: Mon, 09 Mar 2026 17:21:26 GMT
< Server: Apache

 

传统行为 

The HTTPBasicAuth 默认值设置为 已启用。如果发送初始 HTTP 请求时没有身份验证标头,则服务会在 WWW-Authenticate 响应标头中通告基本身份验证。这允许自动提示或由通用客户端(例如浏览器)进行访问。

< HTTP/1.1 401 Unauthorized
< Date: Mon, 09 Mar 2026 17:21:57 GMT
< Server: Apache
< WWW-Authenticate: Basic realm="RedfishService"

Resolution

iDRAC9 7.30.10.50(第 14 代为 7.00.00.184)iDRAC10 1.30.10.50 开始,HTTP 基本身份验证默认设置已更改为未通告(以前的默认设置为已启用)。进行这些更改是为了提高凭据安全性并减少 Redfish 服务中 HTTP 基本身份验证的意外暴露。

Redfish AccountService、DMTF 属性名称中引入了用于 HTTP 基本身份验证处理的新可配置控件 HTTPBasicAuth。此新属性支持三个可能的值:

未通告( 新默认设置):

- 该服务不会在 WWW-Authenticate 响应标头中通告 basic,这会阻止自动提示或通用客户端(例如浏览器)的访问。

已启用: 

- HTTP 基本身份验证已启用并使用 WWW-Authenticate: basic 标头在 401 未经授权的响应上显式通告。

Disabled

- Redfish 服务完全禁用了 HTTP 基本身份验证,执行 Redfish 操作需要 X-auth token 会话(推荐)等其他方法。 

 

HTTP 基本身份验证设置可以从 Redfish、Web UI 和 RACADM iDRAC 界面配置。 

注意: 在运行 iDRAC9 7.00.00.184 的第 14 代系统上,HTTP 基本身份验证只能通过 RACADM Redfish。此版本不支持通过 iDRAC Web UI 进行配置。
Redfish: 

-	PATCH DMTF property HTTPBasicAuth under AccountService
-	PATCH OEM attribute Redfish.BasicAuthState under DellAttributes

RACADM:

-	Set OEM attribute iDRAC.Redfish.BasicAuthState

GUI:

-	iDRAC Settings -> Services -> Redfish -> HTTP Basic Authentication 

Additional Information

当 BasicAuthState 设置为 Unadvertised 时,客户端必须明确地在初始请求上发送身份验证标头。例如, ansible.builtin.uri 此超链接会将您带往 Dell Technologies 之外的网站。 模块必须指定 force_basic_auth: true 以便对第一个请求发送基本身份验证标头。 


有关使用 X-auth 令牌的 GET 请求的详细信息,请参阅有关 iDRAC Redfish 的常见问题(第 1.19 节和 1.20 节)。 

 

Affected Products

iDRAC10 - 1.20.xx Series, iDRAC10 - 1.30.xx Series, iDRAC9 - 7.xx Series
Article Properties
Article Number: 000437501
Article Type: Solution
Last Modified: 17 Jul 2026
Version:  6
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.