> Hello Rob,
> 
> Actually, I initially thought that because of the volume of 
> the data (it
> fetches around 60k records so) I had an impression that it might take
> some time, but your statement has raised an alarm to me.
> 
> Also, last night the job failed again but this time I have 
> captured the
> error successfully (hopefully).
> 
> if(!Win32::Lanman::NetUserEnum("$PDC", &FILTER_NORMAL_ACCOUNT,
> [EMAIL PROTECTED]))
>  {
>       print "Sorry, something went wrong; error: ";
>       # get the error code
>       print Win32::Lanman::GetLastError();
>  }
> 
> Result:
> "Sorry, something went wrong; error: 53"

net helpmsg 53 shows 'The network path was not found.'. Not sure if this
helps - it can be displayed for a variety of reasons including
authentication problems.

Out of interestm why are you using Lanman? All those old NT4 calls are a
bit legacy. You may well get better results with ADSI, particularly if
on an Active Directory, but also with an NT4 domain. I can probably find
you sample code if you let me know whether you want an AD or NT4
domain...

Cheers,
Paul

*****************************************************************
Gloucester Research Limited believes the information 
provided herein is reliable. While every care has been 
taken to ensure accuracy, the information is furnished 
to the recipients with no warranty as to the completeness 
and accuracy of its contents and on condition that any 
errors or omissions shall not be made the basis for any 
claim, demand or cause for action.
*****************************************************************


_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to