On Wed, 2013-08-28 at 18:07 +0400, Nikita Yushchenko wrote: > Hi > > I'm trying to handle 'invalid user' and 'invalid password' errors in > openipmi-based application. > > I've found how I can detect 'invalid user'.In this case, error passed to > connection callback is either 0x1000081 or 0x200000d, depending on if > RMCP+ is used or not. First originates from 0x81 completion code returned > by Get Session Channenge command, and second is RMCP 'unauthorized name' > error. > > However, for 'invalid password' situation is worse. > Without RMCP+, there is just timeout. Perhaps hardware issue.
I don't believe this is a hardware issue. In IPMI 1.5 the Activate Session command has no error code for "invalid password". Therefore, many manufacturers simply do not respond to the activate session request. It's what I've seen on most motherboards w/ IPMI 1.5. Al > With RMCP+, there is EINVAL, originatiing from > > if (memcmp(data+40, integ_data, rinfo->key_len) != 0) > return EINVAL; > > in rakp_hmac_c2(). > > I suggest to replace this EINVAL with something other, to let application > detect and handle invalid login credentials. Maybe EACCES, or some > specific error code. > > > Other very questionable EINVAL is where ''Requested authentication not > supported' message is logged in auth_cap_done(). Some better value could > be returned here, maybe ENOTSUP. > > What do you think? > > Nikita > > ------------------------------------------------------------------------------ > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! > Discover the easy way to master current and previous Microsoft technologies > and advance your career. Get an incredible 1,500+ hours of step-by-step > tutorial videos with LearnDevNow. Subscribe today and save! > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk > _______________________________________________ > Openipmi-developer mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/openipmi-developer -- Albert Chu [email protected] Computer Scientist High Performance Systems Division Lawrence Livermore National Laboratory ------------------------------------------------------------------------------ Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk _______________________________________________ Openipmi-developer mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openipmi-developer
