kontron / python-ipmi

A pure python IPMI library
GNU Lesser General Public License v2.1
185 stars 74 forks source link

Changing privilege level #143

Closed suuchan closed 1 year ago

suuchan commented 1 year ago

This is more of a feature request than a bug report.

Currently the privilege level is hard-wired to ADMINISTRATOR. We have a use case, where we only get an IPMI user with OPERATOR level access to systems not directly managed by us. The admin obviously does not want to give us full rights. We also do not need them as we only want to power on and power off the target systems, for which operator is enough.

Would it be hard to make setting the privilege level changeable?

hthiery commented 1 year ago

This should be feasable. I will take a look on that.

hthiery commented 1 year ago

there is a branch/pull-request with support for changing the priviledge level. Please give it a try and let me know: https://github.com/kontron/python-ipmi/pull/144

suuchan commented 1 year ago

Thanks a lot, going to try this out!

hthiery commented 1 year ago

Thanks a lot, going to try this out!

any feedback?

suuchan commented 1 year ago

Sorry, I sent feedback as a mail response back in April but that did not end up here:

Just found a minute to try it out, it works great after adding a

conn.session.set_priv_level('operator')

in the right spot and switching to and OPERATOR IPMI account on the system in question.

Thanks a lot for the promt implementation!

hthiery commented 1 year ago

so I will close the issue