PowerFlex 管理平台:LDAP 用户无法进行 API 调用

Summary: 启用 LDAP 的用户在进行 API 调用时收到“no role assigned to user”错误。

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

情况说明

LDAP 用户可以通过 UI 登录,但 不能 进行 API 调用。错误消息,如下面的屏幕截图所示:“No role assigned to user”:
未为用户分配角色屏幕截图

影响

无法将 API 与 LDAP 用户配合使用。

 

Cause

如果用户只是组角色的一部分,则软件设计缺陷不允许识别 LDAP 用户角色。

使用 SSO 时 — 将 LDAP 用户分配给 LDAP 组,并为 LDAP 组配置了用户角色时,REST 登录命令会因“no role assigned to user”而失败。

 

Resolution

解决方法是将用户添加到 UI 中的 Remote Users/Groups部分。即使用户已在列出的组之一中。当未找到 API 调用的类型用户时,会触发此错误。

在下图中,即使用户“xxxxx”是 sio_admin 组的成员,用户也无法进行 API 调用,除非我们在此处将该用户添加为 Type = User。

如果从此部分中删除用户“xxxx”,则不允许 API 调用。用户必须存在且类型 = 用户。
远程用户/组

 

Additional Information

受影响的版本

PFMP 4.x

 

Affected Products

PowerFlex rack RCM Software
Article Properties
Article Number: 000280795
Article Type: Solution
Last Modified: 17 Feb 2025
Version:  3
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.