Subject: | update for ILO.pm to allow privilege modification |
Date: | Tue, 1 Feb 2011 17:56:27 +0000 |
To: | "bug-Net-ILO [...] rt.cpan.org" <bug-Net-ILO [...] rt.cpan.org> |
From: | Chris Sarginson <Chris.Sarginson [...] ukfast.co.uk> |
Just a small update to add in the following under sub add_user, this has been tested ONLY on iLO3.
my $user_remote = $arg_ref->{remote} || 'No';
my $user_reset = $arg_ref->{user_reset} || 'No';
my $user_virtual = $arg_ref->{virtual} || 'No';
my $ilo_command = qq|
<USER_INFO MODE="write">
<ADD_USER USER_NAME="$user_name" USER_LOGIN="$user_login" PASSWORD="$user_password">
<ADMIN_PRIV value="$user_admin"/>
<REMOTE_CONS_PRIV value="$user_remote" />
<RESET_SERVER_PRIV value="$user_reset" />
<VIRTUAL_MEDIA_PRIV value="$user_virtual" />
</ADD_USER>
</USER_INFO>
|;