Previous Topic

Next Topic

MOD_USER

The MOD_USER command is used to modify an existing local user's account. The USER_LOGIN parameter must exist in the current user database. For this command to parse correctly, the command must appear within a USER_INFO command block, and USER_INFO MODE must be set to write. The user must have the administrative privilege. A user without the administrative privilege can only modify their individual account password.

Example:

<RIBCL VERSION="2.0">

<LOGIN USER_LOGIN="adminname" PASSWORD="password">

<USER_INFO MODE="write">

<MOD_USER USER_LOGIN="loginname">

<USER_NAME value="username"/>

<USER_LOGIN value="newloginname"/>

<PASSWORD value="password"/>

<ADMIN_PRIV value="No"/>

<REMOTE_CONS_PRIV value="Yes"/>

<RESET_SERVER_PRIV value="No"/>

<VIRTUAL_MEDIA_PRIV value="No"/>

<CONFIG_ILO_PRIV value="Yes"/>

</MOD_USER>

</USER_INFO>

</LOGIN>

</RIBCL>

Reset administrator password example:

<RIBCL VERSION="2.0">

<LOGIN USER_LOGIN="adminname" PASSWORD="password">

<USER_INFO MODE="write">

<MOD_USER USER_LOGIN="Administrator">

<PASSWORD value="password"/>

</MOD_USER>

</USER_INFO>

</LOGIN>

</RIBCL>

Change password example:

<RIBCL VERSION="2.0">

<LOGIN USER_LOGIN="adminname" PASSWORD="password">

<USER_INFO MODE="write">

<MOD_USER USER_LOGIN="username">

<PASSWORD value="newpassword"/>

</MOD_USER>

</USER_INFO>

</LOGIN>

</RIBCL>