Hi, On Sunday, 4. May 2008, MickB wrote: > Hello everybody, > > I encounter a little problem with a script using the Net-LDAP module. I > post here because I believe Net-LDAP is the root of this annoyance, > although I could be wrong of course. I've probably made a mistake so > your help may be very useful ;). > Here's more details : > > - script's goal : connection to a list of AD's servers to extract > the 'lastLogon' attribute of all users > - problem : script is sometime hanging so I must kill it, frequency > and server are unpredictables. > - context : the following script is running under Windows with > ActivePerl 5.8.8.822, using Net-LDAP 0.34 provided by ActivePerl itself. > This is mandatory, no possibility to test or use under a Linux > distribution. - others usefuls informations : problem occurs under Windows > 2000 SP4 and Server 2003. However, I noticed problem appears a lot more > under Windows 2000 than under Server 2003 > > What I've tried and noticed : > - tried Net-LDAP 0.35 : no change > - perl's CPU usage when problem occurs : 0%. It seems to wait for > something... > - 'netstat' command always shows connection to AD's server is > established when it's hanging. > - 'netstat' has allowed me to see it's not a particular server > which is causing this trouble. > > [...] > > was added just after the loop. I judged this unnecessary because I'm using > the 'die' method on error. But I may be wrong... > > Anyway, any help would be greatly appreciated.
I did not look at the code, but did you try to check - using Net::LDAP's debug method/option - with a network sniffer to see in more detail what's going on? Maybe it's the server not responding. Regards Peter -- Peter Marschall [EMAIL PROTECTED]