From 69158b7b16033223552a4a9a42c8c7803b12c672 Mon Sep 17 00:00:00 2001 From: blackhedd Date: Wed, 26 Jul 2006 21:35:38 +0000 Subject: [PATCH] left out some encryption calls. --- lib/net/ldap.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/net/ldap.rb b/lib/net/ldap.rb index 1c0450f..414f02a 100644 --- a/lib/net/ldap.rb +++ b/lib/net/ldap.rb @@ -634,7 +634,7 @@ module Net } else @result = 0 - conn = Connection.new( :host => @host, :port => @port ) + conn = Connection.new( :host => @host, :port => @port, :encryption => @encryption ) if (@result = conn.bind( args[:auth] || @auth )) == 0 @result = conn.search( args ) {|entry| result_set << entry if result_set @@ -696,7 +696,7 @@ module Net if @open_connection @result = @open_connection.bind @auth else - conn = Connection.new( :host => @host, :port => @port ) + conn = Connection.new( :host => @host, :port => @port , :encryption => @encryption) @result = conn.bind @auth conn.close end @@ -747,7 +747,7 @@ module Net @result = @open_connection.add( args ) else @result = 0 - conn = Connection.new( :host => @host, :port => @port ) + conn = Connection.new( :host => @host, :port => @port, :encryption => @encryption) if (@result = conn.bind( args[:auth] || @auth )) == 0 @result = conn.add( args ) end @@ -831,7 +831,7 @@ module Net @result = @open_connection.modify( args ) else @result = 0 - conn = Connection.new( :host => @host, :port => @port ) + conn = Connection.new( :host => @host, :port => @port, :encryption => @encryption ) if (@result = conn.bind( args[:auth] || @auth )) == 0 @result = conn.modify( args ) end @@ -903,7 +903,7 @@ module Net @result = @open_connection.rename( args ) else @result = 0 - conn = Connection.new( :host => @host, :port => @port ) + conn = Connection.new( :host => @host, :port => @port, :encryption => @encryption ) if (@result = conn.bind( args[:auth] || @auth )) == 0 @result = conn.rename( args ) end @@ -933,7 +933,7 @@ module Net @result = @open_connection.delete( args ) else @result = 0 - conn = Connection.new( :host => @host, :port => @port ) + conn = Connection.new( :host => @host, :port => @port, :encryption => @encryption ) if (@result = conn.bind( args[:auth] || @auth )) == 0 @result = conn.delete( args ) end