-Fix problem in previous checkin where audit changes precluded getdestiny from working
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5649 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
2b1673a9d0
commit
89fa9fad6a
@ -1656,7 +1656,6 @@ sub validate {
|
||||
# too many of them
|
||||
#print Dumper($request);
|
||||
if ($rule->{rule}) {
|
||||
if (($request->{command}->[0] ne "getdestiny") && ($request->{command}->[0] ne "getbladecons") && ($request->{command}->[0] ne "getipmicons")) {
|
||||
my $logst;
|
||||
my $rc;
|
||||
my $status;
|
||||
@ -1669,6 +1668,7 @@ sub validate {
|
||||
$status = "Denied";
|
||||
$rc=0;
|
||||
}
|
||||
if (($request->{command}->[0] ne "getdestiny") && ($request->{command}->[0] ne "getbladecons") && ($request->{command}->[0] ne "getipmicons")) {
|
||||
# set username authenticated to run command
|
||||
# if from Trusted host, use input username, else set from creds
|
||||
if (($request->{username}) && defined($request->{username}->[0])) {
|
||||
@ -1735,8 +1735,8 @@ sub validate {
|
||||
} else { # getpostscript or getcredentials, just syslog
|
||||
xCAT::MsgUtils->message("S",$logst);
|
||||
}
|
||||
return $rc;
|
||||
} # end getbladecons,etc check
|
||||
return $rc;
|
||||
} else { #Shouldn't be possible....
|
||||
xCAT::MsgUtils->message("S","Impossible line in xcatd reached");
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user