openbsd-ports/databases/ruby-ldap/patches/patch-test_search3_rb
bernd 635020d778 Initial import of ruby-ldap-0.9.7.
Ruby/LDAP is an extension library for Ruby. It provides the interface
to some LDAP libraries (e.g. OpenLDAP, UMich LDAP, Netscape SDK,
ActiveDirectory). The common API for application development is
described in RFC1823 and is supported by Ruby/LDAP.

Submitted and maintained by Jeremy Evans <jeremyevans0 at gmail dot com>.

with help from msf@
2007-01-18 12:30:37 +00:00

15 lines
518 B
Plaintext

$OpenBSD: patch-test_search3_rb,v 1.1.1.1 2007/01/18 12:30:37 bernd Exp $
--- test/search3.rb.orig Wed Dec 20 13:34:41 2006
+++ test/search3.rb Wed Dec 20 13:34:59 2006
@@ -8,8 +8,9 @@ require "./ldap"
$KCODE = "UTF8"
conn = LDAP::Conn.new($HOST, $PORT)
-conn.perror("bind")
+conn.set_option(LDAP::LDAP_OPT_PROTOCOL_VERSION, 3)
conn.bind{
+ conn.perror("bind")
# search2 returns an array of hash
print("search2 without a block:\n")
conn.search2("dc=localhost, dc=localdomain", LDAP::LDAP_SCOPE_SUBTREE,