From: Drew R. <dr...@ph...> - 2002-01-23 22:16:31
|
I have a working script with changes users passwords in an OpenLDAP 2.0.18 database. Using version 0.25 of perl-ldap. However, I get an Operations error when I try to start_tls. Here's the snippet of code: my $ldap = Net::LDAP->new( 'ldap.phg.mc.vanderbilt.edu', version=>3, debug=>12 ) or error_msg($@); my $mesg = $ldap->start_tls( verify=>'optional', cafile=>"$cafile" ); error_msg( $mesg->code . "/" . $mesg->error ); $mesg = $ldap->bind( "uid=$username,ou=people,$DN", password=>$cur_pass) or error_msg($@); The $ldap->start_tls is what generates the error. I captured the output of the attempt, but don't know what it means. root@mays ( ~ )$ cat /tmp/ldappw_tls Net::LDAP=HASH(0x333a4c) sending: 0000 29: SEQUENCE { 0002 1: INTEGER = 1 0005 24: [APPLICATION 23] { 0007 22: [CONTEXT 0] 0009 : 31 2E 33 2E 36 2E 31 2E 34 2E 31 2E 31 34 36 36 1.3.6.1.4.1.1466 0019 : 2E 32 30 30 33 37 __ __ __ __ __ __ __ __ __ __ .20037 001F : } 001F : } Net::LDAP=HASH(0x333a4c) received: 0000 12: SEQUENCE { 0002 1: INTEGER = 1 0005 7: [APPLICATION 24] { 0007 1: ENUM = 0 000A 0: STRING = '' 000C 0: STRING = '' 000E : } 000E : } What's going on? -- Drew |