openbmc / bmcweb

A do everything Redfish, KVM, GUI, and DBus webserver for OpenBMC
Apache License 2.0
148 stars 130 forks source link

Not able to get the Active Directory and OpenLDAP user's RoleId #261

Closed sivaprabug closed 11 months ago

sivaprabug commented 11 months ago

Environment AST2600


ID=openbmc-phosphor
NAME="Phosphor OpenBMC (Phosphor OpenBMC Project Reference Distro)"
VERSION="2.15.0-dev"
VERSION_ID=2.15.0-dev-748-ga428bfb743-dirty
VERSION_CODENAME="mickledore"
PRETTY_NAME="Phosphor OpenBMC (Phosphor OpenBMC Project Reference Distro) 2.15.0-dev"
CPE_NAME="cpe:/o:openembedded:openbmc-phosphor:2.15.0-dev-748-ga428bfb743-dirty"
BUILD_ID="20230810041701"
OPENBMC_TARGET_MACHINE="evb-ast2600"
EXTENDED_VERSION="2.15.0-dev-748-ga428bfb743-dirty"

To Reproduce Steps to reproduce the behavior:

After configuring the Active Directory and OpenLDAP credentials while fetching via

GET -> /redfish/v1/AccountService/Accounts/siva

How to include the external users' RoleId in AccountService/Accounts module?

Response:

{
  "error": {
    "@Message.ExtendedInfo": [
      {
        "@odata.type": "#Message.v1_1_1.Message",
        "Message": "The requested resource of type ManagerAccount named 'ami' was not found.",
        "MessageArgs": [
          "ManagerAccount",
          "ami"
        ],
        "MessageId": "Base.1.16.0.ResourceNotFound",
        "MessageSeverity": "Critical",
        "Resolution": "Provide a valid resource identifier and resubmit the request."
      }
    ],
    "code": "Base.1.16.0.ResourceNotFound",
    "message": "The requested resource of type ManagerAccount named 'ami' was not found."
  }
}
kirankumarb07 commented 11 months ago

@edtanous @gtmills @jmbills

edtanous commented 11 months ago

Based on your version information, this was not built off an upstream commit.

in addition, per the bug template, we do not accept questions in github bugs. Please ask questions on the mailing list.

if you have a bug in the future, please use the bug template.