On 31 Aug 2004, at 21:37, Scott George wrote:
Here is the output on a working machine (password is removed):


Packets are identical with the exception of the TCP window size.

I doubt it is the TCP window size. But if it was, then it is nothing todo with Net::LDAP or anything else in perl.


Have you tried doing a search with any other ldap command line tool, for example ldapsearch ?

Is there anything in the log on the server ? The error indicated an error on the server causing the bind to fail.

Graham.


Scott George


-----Original Message----- From: Graham Barr [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 31, 2004 4:17 PM To: Scott George Cc: [EMAIL PROTECTED] Subject: Re: Problem with Linux and Net::LDAP

On 31 Aug 2004, at 16:50, Scott George wrote:
I run the following script:


$mesg = $ldap->bind ( dn => $user,
                     password =>$passwd); if ( $mesg->code()) {
   die ("error:", $mesg->code(),"\n"); }



I am getting the output:

"error:1" from the script

If you used ->error instead of ->code in your die, the you would have seen

   error:Server encountered an internal error

I run "strace" on the script and I see "Resource temporarily
unavailable" in the trace output at the point of failure.

Are you 100% sure the packet contents are identical. Add
$ldap->debug(1); after ->new and run on both systems. Compare the output
on stderr.


Graham.





Reply via email to