Hi
OS: Windows 2012 R2
TS version - upgraded from 8.2.0.2 to 16.4
Since the upgrade Perl script call via FormApi is running the script as System, Even the execution of the simple script shown below
(https://URL/iw-cc/iw-bin/iw_cgi_wrapper.cgi/hello2.ipl returns the user value as nt authority\system. We have an open ticket with OpenText but it's not been resolved yet. Has anyone seen this issue before? There is a thread from April 2008 but no resolution is given in that.
hello2.ipl
#!D:\iw\TeamSite/iw-perl/bin/iwperl.exe
#
#
$| = 1;
open (STDERR, ">&STDOUT");
my $DEBUG = 1; # debug variable, set to 1 if debugging else set to 0
my $user = `whoami`;
## Open a logfile
my $logfile = "d:/iw/teamsite/local/logs/TEST.log";
open (LOG, ">>$logfile") or print "Could not open log file $file \<br\> Because $! \<br\>";
debug ("user: $user");
sub debug {
if ($DEBUG) {
print LOG "xxxx : @_\n";
}
}
sub printhtml {
print << "ENDOFDOC";
Content-type: text/html
<HTML>
<HEAD>
</HEAD>
<BODY>
<H1>HELLO WORLD $user</H1>
</BODY>
</HTML>
ENDOFDOC
}
printhtml();
exit 0;
Thank you.