Permalink
Browse files

Merge pull request #448 from joefiorini/patch-1

Use `base` from options if it's passed in
  • Loading branch information...
2 parents 54a73ca + 2a0e430 commit 90fc42c9fd634b63b64ca5cc461e909c95d1af29 @sferik sferik committed Aug 30, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 oa-enterprise/lib/omniauth/strategies/ldap/adaptor.rb
@@ -125,12 +125,12 @@ def bound?
end
def search(options={}, &block)
- base = options[:base]
+ base = options[:base] || @base
filter = options[:filter]
limit = options[:limit]
args = {
- :base => @base,
+ :base => base,
:filter => filter,
:size => limit
}

0 comments on commit 90fc42c

Please sign in to comment.