Dont lookup twice

bug/bundler_fix
Meatballs 2014-01-22 10:14:56 +00:00
parent 62729dd9ab
commit 156e3c046e
No known key found for this signature in database
GPG Key ID: 5380EAF01F2F8B38
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ module LDAP
default_naming_context = get_default_naming_context
vprint_status("Default Naming Context #{default_naming_context}")
if load_extapi
return session.extapi.adsi.domain_query(get_default_naming_context, filter, max_results, DEFAULT_PAGE_SIZE, fields)
return session.extapi.adsi.domain_query(default_naming_context, filter, max_results, DEFAULT_PAGE_SIZE, fields)
else
bind_default_ldap_server(max_results) do |session_handle|
return query_ldap(session_handle, default_naming_context, 2, filter, fields)