14 lines
434 B
Text
14 lines
434 B
Text
|
--- test/compare.rb.orig Wed Dec 20 13:37:14 2006
|
||
|
+++ test/compare.rb Wed Dec 20 13:37:26 2006
|
||
|
@@ -5,7 +5,9 @@ $test = File.dirname($0)
|
||
|
require "#{$test}/conf"
|
||
|
require "./ldap"
|
||
|
|
||
|
-LDAP::Conn.new($HOST, $PORT).bind{|conn|
|
||
|
+conn = LDAP::Conn.new($HOST, $PORT)
|
||
|
+conn.set_option(LDAP::LDAP_OPT_PROTOCOL_VERSION, 3)
|
||
|
+conn.bind{|conn|
|
||
|
conn.perror("bind")
|
||
|
begin
|
||
|
conn.compare("cn=Takaaki Tateishi, dc=localhost, dc=localdomain",
|