mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 10:37:22 +00:00
Fix 'user help' output
Commit fixes padding of 'user help' output. Also, list of expected values of privilege leves have been added.
This commit is contained in:
parent
50bd7d01a8
commit
1d1ce49bf4
@ -487,16 +487,40 @@ ipmi_user_test_password(
|
|||||||
static void
|
static void
|
||||||
print_user_usage(void)
|
print_user_usage(void)
|
||||||
{
|
{
|
||||||
lprintf(LOG_NOTICE, "User Commands:");
|
|
||||||
lprintf(LOG_NOTICE, " summary [<channel number>]");
|
|
||||||
lprintf(LOG_NOTICE, " list [<channel number>]");
|
|
||||||
lprintf(LOG_NOTICE, " set name <user id> <username>");
|
|
||||||
lprintf(LOG_NOTICE, " set password <user id> [<password>]");
|
|
||||||
lprintf(LOG_NOTICE, " disable <user id>");
|
|
||||||
lprintf(LOG_NOTICE, " enable <user id>");
|
|
||||||
lprintf(LOG_NOTICE,
|
lprintf(LOG_NOTICE,
|
||||||
" priv <user id> <privilege level> [<channel number>]");
|
"User Commands:");
|
||||||
lprintf(LOG_NOTICE, " test <user id> <16|20> [<password]>\n");
|
lprintf(LOG_NOTICE,
|
||||||
|
" summary [<channel number>]");
|
||||||
|
lprintf(LOG_NOTICE,
|
||||||
|
" list [<channel number>]");
|
||||||
|
lprintf(LOG_NOTICE,
|
||||||
|
" set name <user id> <username>");
|
||||||
|
lprintf(LOG_NOTICE,
|
||||||
|
" set password <user id> [<password>]");
|
||||||
|
lprintf(LOG_NOTICE,
|
||||||
|
" disable <user id>");
|
||||||
|
lprintf(LOG_NOTICE,
|
||||||
|
" enable <user id>");
|
||||||
|
lprintf(LOG_NOTICE,
|
||||||
|
" priv <user id> <privilege level> [<channel number>]");
|
||||||
|
lprintf(LOG_NOTICE,
|
||||||
|
" Privilege levels:");
|
||||||
|
lprintf(LOG_NOTICE,
|
||||||
|
" * 0x1 - Callback");
|
||||||
|
lprintf(LOG_NOTICE,
|
||||||
|
" * 0x2 - User");
|
||||||
|
lprintf(LOG_NOTICE,
|
||||||
|
" * 0x3 - Operator");
|
||||||
|
lprintf(LOG_NOTICE,
|
||||||
|
" * 0x4 - Administrator");
|
||||||
|
lprintf(LOG_NOTICE,
|
||||||
|
" * 0x5 - OEM Proprietary");
|
||||||
|
lprintf(LOG_NOTICE,
|
||||||
|
" * 0xF - No Access");
|
||||||
|
lprintf(LOG_NOTICE, "");
|
||||||
|
lprintf(LOG_NOTICE,
|
||||||
|
" test <user id> <16|20> [<password]>");
|
||||||
|
lprintf(LOG_NOTICE, "");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user