Commit c62aa1f5 authored by Leigh Stoller's avatar Leigh Stoller

More fixes.

parent 972ac616
......@@ -116,7 +116,7 @@ sub iloctrl($$@) {
my ($krole,$kuid,$kkey,$kgkey,$kprivlvl);
while (my $row = $res->fetchrow_hashref()) {
$krole = $row->{'key_role'};
if ($krole eq "ipmi-passwd") {
if ($krole eq "ipmi-passwd" || $krole eq "ssh-key") {
$kuid = $row->{'key_uid'};
$kkey = $row->{'mykey'};
if ($row->{'key_privlvl'}) {
......@@ -141,9 +141,6 @@ sub iloctrl($$@) {
if ($kgkey && $kkey) {
$krole = 'ipmi-kgkey-passwd';
}
elsif ($kkey) {
$krole = 'ipmi-passwd';
}
elsif ($kgkey) {
$krole = 'ipmi-kgkey';
# restore previous behavior
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment