Raise error if no domain found or specified

bug/bundler_fix
Meatballs 2014-02-08 12:16:48 +00:00
parent 33da3a414b
commit 76f0783eef
No known key found for this signature in database
GPG Key ID: 5380EAF01F2F8B38
1 changed files with 4 additions and 0 deletions

View File

@ -112,6 +112,10 @@ module LDAP
domain ||= datastore['DOMAIN']
domain ||= get_domain
if domain.blank?
raise RuntimeError, "Unable to find the domain to query."
end
if load_extapi
return session.extapi.adsi.domain_query(domain, filter, max_results, DEFAULT_PAGE_SIZE, fields)
else