Hi,

I was wondering if anyone knows any reason why the GET_USER_NAME in  
channel getaccess wasn't coded to be as forgiving as the GET_USER_NAME  
in user list  regarding unset/nonenabled User IDs?  In 2005, Duncan  
Laurie set 'user list' to not fail a GET_USER_NAME completion code of  
0xcc in ipmi_user.c (Rev 1.13) but the same was never done in  
ipmi_channel.c.

I have a server where this is an issue.  Does anyone mind if I add the  
same 0xcc code forgiveness to the GET_USER_NAME in ipmi_channel.c?  My  
proposed patch is below.

Thanks much,

Carol

---------

--- lib/ipmi_channel.c.prev   2009-03-25 16:10:03.000000000 -0700
+++ lib/ipmi_channel.c  2009-03-25 16:23:14.000000000 -0700
@@ -402,6 +402,10 @@
                   return -1;
             }
             if (rsp->ccode > 0) {
+                 if (rsp->ccode == 0xcc) {
+                       curr_uid ++;
+                       continue;
+                 }
                   lprintf(LOG_ERR, "Get User Name (id %d) failed: %s",
                         rqdata[0], val2str(rsp->ccode, completion_code_vals));
                   return -1;





------------------------------------------------------------------------------
_______________________________________________
Ipmitool-devel mailing list
Ipmitool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipmitool-devel

Reply via email to