Skip to content

Commit f0c7cc2

Browse files
committed
Remove a piece of dead code
1 parent e346ae8 commit f0c7cc2

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

lib/msf/core/exploit/remote/ldap/queries.rb

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -20,23 +20,6 @@ def safe_load_queries(filename)
2020
settings['queries']
2121
end
2222

23-
def perform_ldap_query(ldap, filter, attributes, base, schema_dn, scope: nil)
24-
results = []
25-
perform_ldap_query_streaming(ldap, filter, attributes, base, schema_dn, scope: scope) do |result|
26-
results << result
27-
end
28-
29-
query_result_table = ldap.get_operation_result.table
30-
validate_result!(query_result_table, filter)
31-
32-
if results.nil? || results.empty?
33-
print_error("No results found for #{filter}.")
34-
return nil
35-
end
36-
37-
results
38-
end
39-
4023
def perform_ldap_query_streaming(ldap, filter, attributes, base, schema_dn, scope: nil)
4124
if attributes.nil? || schema_dn.nil?
4225
attribute_properties = {}

0 commit comments

Comments
 (0)