Here is the output on a working machine (password is removed): Net::LDAP=HASH(0x1040e31c) sending:
30 30 02 01 01 60 2B 02 01 03 04 1C 70 6F 73 74 00...`+.....post 66 69 78 40 64 69 67 69 74 61 6C 2D 63 6F 6E 74 [EMAIL PROTECTED] 72 6F 6C 73 2E 63 6F 6D 80 08 00 00 00 00 00 00 rols.com..000000 00 00 __ __ __ __ __ __ __ __ __ __ __ __ __ __ 00 Net::LDAP=HASH(0x1040e31c) received: Net::LDAP=HASH(0x1040e31c) sending: 30 82 01 92 02 01 02 63 82 01 65 04 29 6F 75 3D 0......c..e.)ou= 54 53 47 20 53 65 72 76 69 63 65 2C 64 63 3D 64 TSG Service,dc=d 69 67 69 74 61 6C 2D 63 6F 6E 74 72 6F 6C 73 2C igital-controls, 64 63 3D 63 6F 6D 0A 01 02 0A 01 02 02 01 00 02 dc=com.......... 01 00 01 01 00 A0 82 01 25 87 0C 6D 61 69 6C 6E ........%..mailn 69 63 6B 6E 61 6D 65 A1 82 01 13 A0 52 A3 18 04 ickname.....R... 0E 6F 62 6A 65 63 74 43 61 74 65 67 6F 72 79 04 .objectCategory. 06 70 65 72 73 6F 6E A3 13 04 0B 6F 62 6A 65 63 .person....objec 74 43 6C 61 73 73 04 04 75 73 65 72 A2 09 87 07 tClass..user.... 68 6F 6D 65 4D 44 42 A2 16 87 14 6D 73 45 78 63 homeMDB....msExc 68 48 6F 6D 65 53 65 72 76 65 72 4E 61 6D 65 A0 hHomeServerName. 50 A3 18 04 0E 6F 62 6A 65 63 74 43 61 74 65 67 P....objectCateg 6F 72 79 04 06 70 65 72 73 6F 6E A3 13 04 0B 6F ory..person....o 62 6A 65 63 74 43 6C 61 73 73 04 04 75 73 65 72 bjectClass..user A1 1F 87 07 68 6F 6D 65 4D 44 42 87 14 6D 73 45 ....homeMDB..msE 78 63 68 48 6F 6D 65 53 65 72 76 65 72 4E 61 6D xchHomeServerNam 65 A0 32 A3 18 04 0E 6F 62 6A 65 63 74 43 61 74 e.2....objectCat 65 67 6F 72 79 04 06 70 65 72 73 6F 6E A3 16 04 egory..person... 0B 6F 62 6A 65 63 74 43 6C 61 73 73 04 07 63 6F .objectClass..co 6E 74 61 63 74 A3 17 04 0E 6F 62 6A 65 63 74 43 ntact....objectC 61 74 65 67 6F 72 79 04 05 67 72 6F 75 70 A3 1E ategory..group.. 04 0E 6F 62 6A 65 63 74 43 61 74 65 67 6F 72 79 ..objectCategory 04 0C 70 75 62 6C 69 63 46 6F 6C 64 65 72 30 00 ..publicFolder0. A0 24 30 22 04 16 31 2E 32 2E 38 34 30 2E 31 31 .$0"..1.2.840.11 33 35 35 36 2E 31 2E 34 2E 33 31 39 04 08 30 06 3556.1.4.319..0. 02 02 03 DE 04 00 __ __ __ __ __ __ __ __ __ __ ...... Net::LDAP=HASH(0x1040e31c) received: Net::LDAP=HASH(0x1040e31c) received: Net::LDAP=HASH(0x1040e31c) received: Net::LDAP=HASH(0x1040e31c) received: Net::LDAP=HASH(0x1040e31c) received: Net::LDAP=HASH(0x1040e31c) received: Net::LDAP=HASH(0x1040e31c) received: Net::LDAP=HASH(0x1040e31c) received: Net::LDAP=HASH(0x1040e31c) received: Net::LDAP=HASH(0x1040e31c) received: Net::LDAP=HASH(0x1040e31c) received: Net::LDAP=HASH(0x1040e31c) received: Net::LDAP=HASH(0x1040e31c) received: Net::LDAP=HASH(0x1040e31c) received: Net::LDAP=HASH(0x1040e31c) received: Net::LDAP=HASH(0x1040e31c) received: Net::LDAP=HASH(0x1040e31c) received: Net::LDAP=HASH(0x1040e31c) received: Net::LDAP=HASH(0x1040e31c) received: Net::LDAP=HASH(0x1040e31c) received: Net::LDAP=HASH(0x1040e31c) received: Net::LDAP=HASH(0x1040e31c) received: Here is the output from the Linux server in question(password removed): Net::LDAP=HASH(0x3f24f4) sending: 30 30 02 01 01 60 2B 02 01 03 04 1C 70 6F 73 74 00...`+.....post 66 69 78 40 64 69 67 69 74 61 6C 2D 63 6F 6E 74 [EMAIL PROTECTED] 72 6F 6C 73 2E 63 6F 6D 80 08 00 00 00 00 00 00 rols.com..000000 00 00 __ __ __ __ __ __ __ __ __ __ __ __ __ __ 00 error:I/O Error Resource temporarily unavailable Packets are identical with the exception of the TCP window size. 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.
