override DSH_FROM_USERID with autheticated id in request->{username}, if it exists

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5475 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2010-03-15 15:50:16 +00:00
parent 5be73bd5dc
commit 5b53b638f3

View File

@ -529,6 +529,11 @@ sub process_request
my ($var, $value) = split(/=/, $envar, 2);
$ENV{$var} = $value;
}
# if request->{username} exists, set DSH_FROM_USERID to it
# override input, this is what was authenticated
if (($request->{username}) && defined($request->{username}->[0])) {
$ENV{DSH_FROM_USERID} = $request->{username}->[0];
}
if ($command eq "xdsh")
{
xdsh($nodes, $args, $callback, $command, $request->{noderange}->[0]);