Is there a way to limit the number of records that doing a LDAP search will return? I would like to limit to a specific number, say 10. This is to prevent someone from doing a wild card search and returning thousands of records. I can truncate the array after they are returned, but I would rather prevent it in the first case. Thanks in advance, Don Mc --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Don Mc wrote:> Is there a way to limit the number of records that > doing a LDAP search will return? I would like > to limit to a specific number, say 10. This is to > prevent someone from doing a wild card search > and returning thousands of records. > > I can truncate the array after they are returned, > but I would rather prevent it in the first case. > > Thanks in advance, > Don McI''ll take that as a feature request. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
> Don Mc wrote: >> Is there a way to limit the number of records that >> doing a LDAP search will return? I would like >> to limit to a specific number, say 10. This is to >> prevent someone from doing a wild card search >> and returning thousands of records.<snip>> > I''ll take that as a feature request.I''ll second that feature request. I''m working on making ActiveLDAP act more like ActiveRecord, and that''s one feature I''d love to see :). --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Joe Francis wrote:>> Don Mc wrote: >>> Is there a way to limit the number of records that >>> doing a LDAP search will return? I would like >>> to limit to a specific number, say 10. This is to >>> prevent someone from doing a wild card search >>> and returning thousands of records. > <snip> >> >> I''ll take that as a feature request. > > I''ll second that feature request. I''m working on making ActiveLDAP act > more like ActiveRecord, and that''s one feature I''d love to see :).Ok, thanks. Anything else you can think of? Most of what I have on my roadmap are adding performance improvements and all the weird, insignificant little LDAP features they keep creating. I''d love to add something that actually enhances usability. Like an authorization scheme to go along with authentication. Anybody interested? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---