Move print statement

bug/bundler_fix
Meatballs 2014-01-24 23:37:20 +00:00
parent cb53ca261f
commit be1da0e8a8
No known key found for this signature in database
GPG Key ID: 5380EAF01F2F8B38
1 changed files with 2 additions and 2 deletions

View File

@ -98,8 +98,7 @@ module LDAP
# @param [Array] String array containing attributes to retrieve
# @return [Hash] Entries found
def query(filter, max_results, fields)
vprint_status("Default Naming Context #{default_naming_context}")
if load_extapi
if false#load_extapi
default_naming_context = datastore['DOMAIN']
default_naming_context ||= get_default_naming_context
return session.extapi.adsi.domain_query(default_naming_context, filter, max_results, DEFAULT_PAGE_SIZE, fields)
@ -122,6 +121,7 @@ module LDAP
first_entry_fields = query_result[:results].first
# Value from First Attribute of First Entry
default_naming_context = first_entry_fields.first
vprint_status("Default naming context #{default_naming_context}")
return default_naming_context
end
end