ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl-win32-users
perl-win32-users
RE: win32::Lanman Error
by Shailja Agrawal other posts by this author
May 19 2005 3:41AM messages near this date
view in the new Beta List Site
RE: win32::Lanman Error | RE: win32::Lanman Error
Hello Paul,

Actually I am trying to retrieve the information for all the users on my
domain and I am running on WIN2000 professional.

And also, I am not sure what error:53 means but definitely "network path
not found" with meaning as such does not apply. Because, I have checked
it and the path is present.

Also I am not sure of the domain, if NT4 domain means NT domain then I
am not using WINNT but running on Win2000 professional and I use Active
directory to check the completeness of the file I fetch. Hope I have
answered all your queries. And would like to try new improved things.

Thanks and Regards,
Shailja Agrawal



-----Original Message-----
From: perl-win32-users-bounces@[...].com
[mailto:perl-win32-users-bounces@[...].com] On Behalf Of
Paul Sobey
Sent: Thursday, May 19, 2005 2:29 PM
To: perl-win32-users@[...].com
Subject: RE: win32::Lanman Error

>  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,
>  \@userdata))
>   {
>  	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
Perl-Win32-Users@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved