Comments (4)
I thought the privilege (operator, administrator) was assigned to the user at user creation time? It seems weird that the CLI/Rubyipmi would be able to override the role that is assigned to the user.
To answer your question about extending support. Yes it would be really simple to add the priv option to the connection object. Basically would need to do the following in the initialize method of the connection object.
If you want to code this yourself and issue a pull request it should be fairly simple to do. Otherwise I can probably take care of this next week.
class Connection
def initialize
...
@options['L'] = opts[:priv] if opts.keys?(:priv)
# should probably check to make sure the priv type matches one of these
#-L <privlvl>
# Force session privilege level. Can be CALLBACK, USER, OPERATOR, ADMINISTRATOR. #Default is ADMINISTRATOR.
end
then call
conn = Rubyipmi.connect("username", "password", "hostname", {:priv => 'OPERATOR'})
from rubyipmi.
@mrichar1 just pushed branch 0.8.0 with this support. https://github.com/logicminds/rubyipmi/tree/0.8.0
I haven't merged to master yet until I can get my integration tests to pass. Feel free to test using this branch.
The privilege is optional as I am seeing weird issues sometimes when using it. Just provide this option to test out.
conn = Rubyipmi.connect("username", "password", "hostname", 'any', {:privilege => 'OPERATOR'})
# PRIV_TYPES = ['CALLBACK', 'USER', 'OPERATOR', 'ADMINISTRATOR']
from rubyipmi.
Hi,
I've done some testing and it seems to work as expected, both with ipmitool and freeipmi.
Many thanks!
from rubyipmi.
this has now been merge to master. Will release to ruby gems shortly.
from rubyipmi.
Related Issues (20)
- Add "get" subcommamd to sensors.rb HOT 1
- Add acceptance test feature HOT 2
- enhancement: user manipulation ability HOT 2
- Ipmitool::Sensors#parse overwrites same name Sensor HOT 1
- Change license to LGPL HOT 5
- Make host optional HOT 12
- Need to be able to specify the lan_2_0 driver HOT 7
- make the driver default to lan20 HOT 1
- freeipmi failed parsing on sensor data HOT 5
- ArgumentError: invalid byte sequence in UTF-8 for IBM MMI x3650 M4 HOT 3
- update testing to use gitlab-ci HOT 1
- convert gem to use basic bundler tasks instead of jeweler HOT 1
- add timeout to runcmd
- Need an ability to manipulate BMC users with rubyipmi/ipmitool provider HOT 1
- need SOL functionality in rubyipmi HOT 2
- Add support for raw IPMI commands HOT 2
- New release needed HOT 7
- add github actions for testing HOT 1
- Dependency on highline HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rubyipmi.