Open acaeti opened 10 years ago
Hello,
Seems I can run a query using either a filter, or attributes, but not both.
If I try to specify both:
user = ActiveDirectory::Users.find(:all, filter, :select => ['sn','givenname'])
I get back results as if I submitted only the filter.
Attributes work fine if I submit with a simple-type find, however:
user = ActiveDirectory::Users.find(:all, :displayname => "Bob*", :select => ['sn','givenname'])
NPM
I have found that I can use find_all like so:
users = ActiveDirectory::Users.find_all(:filter => filter, :select => ['sn','givenname'])
Perhaps I am making a syntax mistake with my .find(:all)?
Hello,
Seems I can run a query using either a filter, or attributes, but not both.
If I try to specify both:
user = ActiveDirectory::Users.find(:all, filter, :select => ['sn','givenname'])
I get back results as if I submitted only the filter.
Attributes work fine if I submit with a simple-type find, however:
user = ActiveDirectory::Users.find(:all, :displayname => "Bob*", :select => ['sn','givenname'])
NPM