Limit Net::LDAP results

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

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 Mc

I’ll take that as a feature request.

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’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 :).

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.

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?