-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redfish: Added support for displaying and setting account types #6871
Redfish: Added support for displaying and setting account types #6871
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
Signed-off-by: Mike Raineri <[email protected]>
@sseekamp FYI. The service I have is pretty static in terms of what it will put in place for account types, so it essentially ignores whatever the user is requesting and fills in its own values (at least on the version of firmware I have available it appears to do this). As far as I can tell from traces, it's following the spec though. It would be good for you to try it out on one of your systems, but I'm happy from the traces I've instrumented. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I'm okay with merging the pull request now. Everything on paper and from the traces looks good to me, and since these are optional parameters, we won't break anyone who is adding users with the existing commands today. |
Backport to stable-7: 💚 backport PR created✅ Backport PR branch: Backported as #6919 🤖 @patchback |
* Redfish: Added support for displaying and setting account types Signed-off-by: Mike Raineri <[email protected]> * Update 6823-redfish-add-account-type-management.yml * CI fixes Signed-off-by: Mike Raineri <[email protected]> --------- Signed-off-by: Mike Raineri <[email protected]> (cherry picked from commit 9adc82d)
…playing and setting account types (#6919) Redfish: Added support for displaying and setting account types (#6871) * Redfish: Added support for displaying and setting account types Signed-off-by: Mike Raineri <[email protected]> * Update 6823-redfish-add-account-type-management.yml * CI fixes Signed-off-by: Mike Raineri <[email protected]> --------- Signed-off-by: Mike Raineri <[email protected]> (cherry picked from commit 9adc82d) Co-authored-by: Mike Raineri <[email protected]>
…ble-collections#6871) * Redfish: Added support for displaying and setting account types Signed-off-by: Mike Raineri <[email protected]> * Update 6823-redfish-add-account-type-management.yml * CI fixes Signed-off-by: Mike Raineri <[email protected]> --------- Signed-off-by: Mike Raineri <[email protected]>
Thanks @mraineri - I'll test shortly! |
@mraineri apologies for revising a super old thread here. This change is great for new accounts, but we need to modify existing accounts and it isn't behaving as I expected. Is this a case of needing an explicit "modify_accounttypes" method? Example - run successfully, but does not update AccountTypes as expected:
I can do a raw curl and update the accounttypes array successfully on the same node |
@sseekamp AddUser is strictly for creating an entirely new user. We'd need to add a new "UpdateUserAccountTypes" command to redfish_command.py (like how there are other "UpdateUserXYZ" commands under Accounts). It could use account_types and oem_account_types just like in the AddUser command for inputs. Let's open a new issue to track it. |
Perfect - thanks sir! I'll get that rolling! |
SUMMARY
Redfish allows for clients to specify what a user account is allowed to access on a device with the
AccountTypes
andOEMAccountTypes
properties. This pull request adds support for setting and displaying the account types (and OEM account types) for Redfish user accounts when invoking AddUser and ListUsers. These are optional parameters; users can still provide the simple "UserName, Password, RoleId" combination when creating user accounts.Fixes #6823
ISSUE TYPE
COMPONENT NAME
redfish_utils.py, redfish_info.py, redfish_command.py
ADDITIONAL INFORMATION
Playbook with new options when making a new user account
Sample output from the ListUsers operation after invoking the above playbook