X hits on this document

PDF document

February 10, 2006 - page 68 / 238

666 views

0 shares

0 downloads

0 comments

68 / 238

56

CHAPTER 3. IPMI INTERFACES

  • *

    password set is for 16-byte passwords, the password2 is for 20-byte

    • *

      passwords.

*/ int ipmi int ipmi int ipmi int ipmi int ipmi

_ _ _ _ _

user_get_name_len(ipmi_user_t *user, unsigned int *len); user_get_name(ipmi_user_t *user, char *name, unsigned int *len); user_set_name(ipmi_user_t *user, char *name, unsigned int len); user_set_password(ipmi_user_t *user, char *pw, unsigned int len); user_set_password2(ipmi_user_t *user, char *pw, unsigned int len);

/*

  • *

    Various bits of information about a user, this is per-channel.

*/ int int int int int int int int int int

ipmi ipmi ipmi ipmi ipmi ipmi ipmi ipmi ipmi ipmi

_ _ _ _ _ _ _ _ _ _

user_get_link_auth_enabled(ipmi_user_t *user, unsigned int *val); user_set_link_auth_enabled(ipmi_user_t *user, unsigned int val); user_get_msg_auth_enabled(ipmi_user_t *user, unsigned int *val); user_set_msg_auth_enabled(ipmi_user_t *user, unsigned int val); user_get_access_cb_only(ipmi_user_t *user, unsigned int *val); user_set_access_cb_only(ipmi_user_t *user, unsigned int val); user_get_privilege_limit(ipmi_user_t *user, unsigned int *val); user_set_privilege_limit(ipmi_user_t *user, unsigned int val); user_get_session_limit(ipmi_user_t *user, unsigned int *val); user_set_session_limit(ipmi_user_t *user, unsigned int val);

_ _ _ _ int ipmi user_get enable(ipmi user t *user, unsigned

int

*val);

_ _ _ _ int ipmi user_set enable(ipmi user t *user, unsigned

int

val);

  • *

    fetched and will return an error unless set.

*/

/*

  • *

    The enable for the user.

Note that the enable value cannot be

To actually set the user information on the BMC, the following command can be used:

unsigned int

channel,

unsigned int

num,

ipmi_user_t

*user,

_ _ _ ipmi mc done cb handler,

void

_ *cb data);

i n t i p m i _ m c _ s e t _ u s e r ( i p m i _ m c _ t

*mc,

Note that OpenIPMI keeps track of what has changed in the user and will only write out the changed information. If you wish to rewrite all information in the user (like if you want to write the same information to a new user number) you can call ipmi_user_set_all() with the user to set the changed bits for all items. Then you can write the user out.

3.11.2

User

management

commands

Table 3.19 on the facing page shows the command used to set the enables for the user (this is not the same as the user enable). These are all per-channel.

Document info
Document views666
Page views666
Page last viewedFri Dec 09 17:30:02 UTC 2016
Pages238
Paragraphs8090
Words85809

Comments