From: <Sim...@wi...> - 2000-05-26 13:03:34
|
>This might be related to the "what does unbind really do" discussion >that Kurt from OpenLDAP had with us recently. > >I am of the opinion that unbind leaves the TCP connection open, and it >looks like Simon is too. Kurt was of the opinion that unbind closed the >TCP connection. > >The workaround is probably to destroy the $ldap object after unbinding >the first time, and then recreate it before binding the second time. > >Cheers, > >Chris Chris, The unbind was commented out because I didn't think it was necessary (according to the examples). When I uncommented it, it doesn't run correctly and throws an error 1. Traces from the program are below. I enabled both in and out packet tracing in case it helps some. Rgds, Simon. ---------------Perl trace-------------------- Net::LDAP=HASH(0x866075c) sending: 30 2F 02 01 01 60 2A 02 01 02 04 1C 63 6E 3D 6E 0/...`*.....cn=n 65 78 75 73 61 64 6D 2C 6F 75 3D 53 79 73 55 73 exusadm,ou=SysUs 65 72 73 2C 6F 3D 77 6C 80 07 61 70 70 6C 65 37 ers,o=wl..apple7 37 __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ 7 Net::LDAP=HASH(0x866075c) received: 30 0C 02 01 01 61 07 0A 01 00 04 00 04 00 __ __ 0....a........ Net::LDAP=HASH(0x866075c) sending: 30 3A 02 01 02 63 35 04 0D 6F 75 3D 75 73 65 72 0:...c5..ou=user 73 2C 6F 3D 77 6C 0A 01 02 0A 01 02 02 01 00 02 s,o=wl.......... 01 00 01 01 00 A3 0F 04 03 75 69 64 04 08 74 65 .........uid..te 73 74 75 73 65 72 30 04 04 02 64 6E __ __ __ __ stuser0...dn Net::LDAP=HASH(0x866075c) received: 30 22 02 01 02 64 1D 04 19 63 6E 3D 74 65 73 74 0"...d...cn=test 75 73 65 72 2C 6F 75 3D 75 73 65 72 73 2C 6F 3D user,ou=users,o= 77 6C 30 00 __ __ __ __ __ __ __ __ __ __ __ __ wl0. Net::LDAP=HASH(0x866075c) received: 30 0C 02 01 02 65 07 0A 01 00 04 00 04 00 __ __ 0....e........ Net::LDAP=HASH(0x866075c) sending: 30 05 02 01 03 42 00 __ __ __ __ __ __ __ __ __ 0....B. Net::LDAP=HASH(0x866075c) sending: 30 25 02 01 04 60 20 02 01 02 04 19 63 6E 3D 74 0%...` .....cn=t 65 73 74 75 73 65 72 2C 6F 75 3D 75 73 65 72 73 estuser,ou=users 2C 6F 3D 77 6C 80 00 __ __ __ __ __ __ __ __ __ ,o=wl.. user testuser failed bind: 1, I/O Error 494f3a3a536f636b65743a3a494e45543d474c4 f422830783838626332663429 at test.pl line 50. ----------------Novell LDAP trace----------------------- *** NDS Trace Utility - BEGIN Logging *** Fri May 26 13:58:51 2000 LDAP: listening for activity in monitor thread 0x82c on: LDAP: 0x83da28r LDAP: before select in monitor thread 0x82c, active_threads 0 LDAP: select activity LDAP: Accepting TCP connection LDAP: Found usable monitor thread 0x82c LDAP: new connection on 0x83d958 LDAP: select activity in monitor thread 0x82c LDAP: read activity on 0x83da28 LDAP: listening for activity in monitor thread 0x82c on: LDAP: 0x83da28r LDAP: 0x83d958r LDAP: before select in monitor thread 0x82c, active_threads 0 LDAP: select activity in monitor thread 0x82c LDAP: read activity on 0x83d958 LDAP: listening for activity in monitor thread 0x82c on: LDAP: 0x83da28r LDAP: 0x83d958r LDAP: before select in monitor thread 0x82c, active_threads 1 LDAP: do_bind LDAP: bind: protocol version 2 dn (cn=nexusadm,ou=SysUsers,o=wl) method 128 LDAP: dn (cn=nexusadm,ou=SysUsers,o=wl), ndsDn (CN=nexusadm.OU=SysUsers.O=wl) LDAP: send_ldap_result 0:: LDAP: select activity in monitor thread 0x82c LDAP: read activity on 0x83d958 LDAP: listening for activity in monitor thread 0x82c on: LDAP: 0x83da28r LDAP: 0x83d958r LDAP: before select in monitor thread 0x82c, active_threads 1 LDAP: do_search LDAP: SRCH base "ou=users,o=wl" scope 2 deref 2 LDAP: sizelimit 0 timelimit 0 attrsonly 0 LDAP: begin get_filter LDAP: EQUALITY LDAP: filter: (uid=testuser) LDAP: attrs: LDAP: dn LDAP: => send_search_entry (cn=testuser,ou=users,o=wl) LDAP: send_ldap_result 0:: LDAP: select activity in monitor thread 0x82c LDAP: read activity on 0x83d958 LDAP: listening for activity in monitor thread 0x82c on: LDAP: 0x83da28r LDAP: 0x83d958r LDAP: before select in monitor thread 0x82c, active_threads 1 LDAP: do_unbind LDAP: select activity in monitor thread 0x82c LDAP: read activity on 0x83da28 LDAP: listening for activity in monitor thread 0x82c on: LDAP: 0x83da28r LDAP: close conn in close_connection 0x5635c78 on skt 0x83d958 from opid -1 LDAP: called by "monitor_thread7" LDAP: freeing conn 0x5635c78 at index 1 in monitor thread 0x53c8308 LDAP: before select in monitor thread 0x82c, active_threads 0 *** NDS Trace Utility - END Logging *** Fri May 26 13:58:57 2000 |