Re: [Freeipmi-devel] Re: bmc-config in C

2006-07-07 Thread Al Chu
One other thought.  

We should also test to see if the output of Password20 makes sense,
since it won't on many IPMI 1.5 machines.  I think it would be
sufficient to run the Set user Password command and try to test a dummy
20 byte password.   If the result comes back invalid input (I think
that's completion code 0xCC), we know it isn't and we shouldn't output
the config option.

Al

-- 
Albert Chu
[EMAIL PROTECTED]
925-422-5311
Computer Scientist
High Performance Systems Division
Lawrence Livermore National Laboratory



___
Freeipmi-devel mailing list
Freeipmi-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/freeipmi-devel


Re: [Freeipmi-devel] Re: bmc-config in C

2006-07-06 Thread Al Chu
 I can't recall if you can checkout k_r or k_g keys.  If we can't, then the
 above also holds for k_r and k_g.

I double checked, and it seems you can checkout k_r and k_g, so the
previous comments I made don't apply to k_r and k_g.

Al

-- 
Albert Chu
[EMAIL PROTECTED]
925-422-5311
Computer Scientist
High Performance Systems Division
Lawrence Livermore National Laboratory



___
Freeipmi-devel mailing list
Freeipmi-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/freeipmi-devel


Re: [Freeipmi-devel] Re: bmc-config in C

2006-07-06 Thread Anand Avati

 So instead, how about the default checkout for Password and Password20
 have those keys automatically commented out?  like

This exact thought had crossed my mind. With this 'default' comment in
place, would it suffice if it was ensured that (password AND password20)
entry case is  detected in 1st pass before committing anything?

Every keyvalue's -validate () is called in the 1st pass. there i could
set two global variables passwd_is_specified and passwd20_is_specified
and check for the other not being set and set this.

regards,
avati


___
Freeipmi-devel mailing list
Freeipmi-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/freeipmi-devel


Re: [Freeipmi-devel] Re: bmc-config in C

2006-07-06 Thread Al Chu
On Thu, 2006-07-06 at 09:02 -0700, Anand Avati wrote:
 Every keyvalue's -validate () is called in the 1st pass. there i could
 set two global variables passwd_is_specified and passwd20_is_specified
 and check for the other not being set and set this.

Yeah, I think that would work.  Just comment it to make sure we
understand why this is a special case.  I'm sure a year from now I'll
look at the code and wonder what the heck is going on :P

Al

-- 
Albert Chu
[EMAIL PROTECTED]
925-422-5311
Computer Scientist
High Performance Systems Division
Lawrence Livermore National Laboratory



___
Freeipmi-devel mailing list
Freeipmi-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/freeipmi-devel