seveas / python-hpilo

Accessing the HP iLO XML interface from python
https://seveas.github.io/python-hpilo
Other
320 stars 101 forks source link

User Account Login Permission #180

Closed Skitond closed 6 years ago

Skitond commented 6 years ago

Hello

In the functions for user editing (get_user, add_user, mod_user), there are a couple of values that can be set. However none of these are for granting an account only the login right, which you can set through the GUI on ILO5 devices. The values you can set with this module are: USER_NAME, USER_LOGIN, ADMIN_PRIV, REMOTE_CONS_PRIV, RESET_SERVER_PRIV, VIRTUAL_MEDIA_PRIV and CONFIG_ILO_PRIV

Essentially what I want to do is automate the creation of an account for only gathering information from the get_embedded_health function and not have permissions for doing anything else. For this to be done an account seems to need the Login permission set through the GUI.

Any insight as to how this could be accomplished would be welcome!

seveas commented 6 years ago

Setting all the *_priv argument to False should do the trick.

Skitond commented 6 years ago

Now it works. That did the trick!

Thanks for all your hard work! :)