I assume that your WEB server runs as a service with the local system
account. This prevents, that your process can cross computer bounderies. The
local system account can is restricted to access objects within the computer
who the process runs.

The simplest way is to run the WEB server with an another account who has
access to the other servers. If unpossible, you'd put your script in in a
COM+-Object and configure the component (configured COM+ components can run
with an other account). See the first.wsc sample which comes with Perl how
to do that.


Jens

-----Original Message-----
From: Ailes, Kevin [mailto:[EMAIL PROTECTED]]
Sent: Montag, 14. Januar 2002 22:14
To: Perl-win32-admin list (E-mail)
Subject: Win32::Lanman


I am attempting to set up an administrative web-interface to a script I
swiped from the net that finds open files on a specified server.
The script uses Win32::Lanman and runs fine from the command line on the
server that houses the web server.
The web server is apache and the pages are secured using basic
authentication through apache.

I keep getting a return code of 5 from the Lanman module when the script
gets to the enumeration portion.(see code below)

--------------------------------
if(!Win32::Lanman::NetFileEnum("\\\\$server", '', '', \@infos))
 {
        print "Sorry, something went wrong; error: ";
        # get the error code
        print Win32::Lanman::GetLastError();
        exit 1;
 }
--------------------------------

I have searched through the lanman.pm module and found a reference to
"access denied" in relation to this error code and method call.

My question:  Has anyone set up anything similar?  If so, how did you set it
up?(did you use the same architecture?)

Thanks for any help,

Kevin Ailes
Administrator
OTTO Engineering

_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin

Reply via email to