Skip to content
Browse files

Use `base` from options if it's passed in

  • Loading branch information...
1 parent 54a73ca commit 2a0e430654c191f5d6c89c9ddb7655d34e440dde @joefiorini joefiorini committed Aug 30, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 oa-enterprise/lib/omniauth/strategies/ldap/adaptor.rb
View
4 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 2a0e430

Please sign in to comment.
Something went wrong with that request. Please try again.