Module: ActiveLdap::Operations::Find
- Defined in:
- lib/active_ldap/operations.rb
Instance Method Summary collapse
-
#find(*args) ⇒ Object
find.
Instance Method Details
#find(*args) ⇒ Object
find
Finds the first match for value where |value| is the value of some |field|, or the wildcard match. This is only useful for derived classes. usage: Subclass.find(:attribute => “cn”, :value => “some*val”)
Subclass.find('some*val')
170 171 172 173 174 175 176 177 178 179 180 181 182 |
# File 'lib/active_ldap/operations.rb', line 170 def find(*args) = (args) args = [:first] if args.empty? and !.empty? case args.first when :first find_initial() when :all [:value] ||= args[1] find_every() else find_from_dns(args, ) end end |