# File lib/net/ldap.rb, line 696 696: def bind auth=@auth 697: if @open_connection 698: @result = @open_connection.bind auth 699: else 700: conn = Connection.new( :host => @host, :port => @port , :encryption => @encryption) 701: @result = conn.bind @auth 702: conn.close 703: end 704: 705: @result == 0 706: end