From 817998fe0ad14670f7e7d9aa552c061d26274a69 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 5 Aug 2014 14:05:29 -0400 Subject: [PATCH] Change to name-only lookups in RAKP In IPMI2, there are two modes the BMC can regard the Role parameter. It can either consider it a 'max privilege' or 'match privilege'. It defaulted to 'match privilege' in order to enhance compatibility with some earlier BMC implementations that misinterpreted the specification in a way that allowed 'match privilege' to work but 'max privilege' to break without a specific workaround for that BMC. That BMC family is pretty much out of service and if the same issue arises later, we can put in auto-detect and workaround pretty cheaply. With this in mind, change the mode to look account up by name only since that is how 99% of ipmitool invocations are done and it also is a more straightforward model. Change-Id: Ibf82b70e1b85e4e05c93365a684e21c434b4d5b4 --- pyghmi/ipmi/private/session.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/pyghmi/ipmi/private/session.py b/pyghmi/ipmi/private/session.py index 11e55fb2..fc45fc48 100644 --- a/pyghmi/ipmi/private/session.py +++ b/pyghmi/ipmi/private/session.py @@ -345,6 +345,7 @@ class Session(object): self.privlevel = 4 self.maxtimeout = 3 # be aggressive about giving up on initial packet self.incommand = False + self.nameonly = 16 # default to name only lookups in RAKP exchange self.initialized = True self.cleaningup = False self.lastpayload = None @@ -1159,7 +1160,7 @@ class Session(object): list(struct.unpack("4B", struct.pack("