$OpenBSD: patch-test_compare_rb,v 1.1.1.1 2007/01/18 12:30:37 bernd Exp $
--- 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",
