Using perl cgi script from browser, trying to create a OLE object on server returns following error.
User credentials cannot be used for local connections
Win32::OLE(0.1702) error 0x80041064 in METHOD/PROPERTYGET "ConnectServer" at D:/cgi-bin/simkill.pl
below is my sample code :
my $loc = Win32::OLE->new("WbemScripting.SWbemLocator") + or die "err stms here"; my $servCon = $loc->ConnectServer($server, "root/cimv2", $username, $p +assword, "MS_409", "ntlmdomain:".$strDomain);
I checked out that user runs with Iusr_ComputerName privilege using IE on IIS which is only a guest Account. So i am supplying administrator user name and password when creating an OLE object in the code above. same code from command prompt runs well both on local and remote machines but when a cgi script is made it fails to run from the browser. I feel there is some security aspect to it.
I tried hard to find a solution but could not.
Help me wise monks...
regards
amar
In reply to OLE object creation from browser returns error by Amar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |