From 6edb374efeb84f59f020e4748f308481cb17ceec Mon Sep 17 00:00:00 2001 From: lissav Date: Mon, 8 Mar 2010 18:24:11 +0000 Subject: [PATCH] add username to the request git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5403 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/Client.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/perl-xCAT/xCAT/Client.pm b/perl-xCAT/xCAT/Client.pm index 7f087887a..bb9b3c5aa 100644 --- a/perl-xCAT/xCAT/Client.pm +++ b/perl-xCAT/xCAT/Client.pm @@ -89,7 +89,8 @@ sub submit_request { unless ($certfile) { $certfile = xCAT::Utils->getHomeDir()."/.xcat/client-cred.pem"; } unless ($cafile) { $cafile = xCAT::Utils->getHomeDir()."/.xcat/ca.pem"; } $xCAT::Client::EXITCODE = 0; # clear out exit code before invoking the plugin - +# add current userid to the request +$request->{username}->[0] = getpwuid($>); # If XCATBYPASS is set, invoke the plugin process_request method directly # without going through the socket connection to the xcatd daemon