From: Bing D. <Bi...@ci...> - 2000-08-01 16:34:36
|
We have Net::LDAP::Control and Net::LDAP::LDAP::sort installed on the system. But I did not find any document on them. 'perldoc Net::LDAP::Control' said: No documentation found for "Net::LDAP::Control". However, try perldoc Net::LDAP::Control::sort Then I did 'perldoc Net::LDAP::Control::sort' and got: No documentation found for "Net::LDAP::Control::sort". I read the Control.pm and sort.pm. But they are not self-explanatory enough to me. Can anybody show me how to use Control.pm and sort.pm? Thanks. Bing >>> Graham Barr <gb...@po...> 08/01/00 10:59AM >>> On Tue, Aug 01, 2000 at 05:50:45PM +0200, Stefan Kiesow wrote: > Hi, > > is it possible to perform a ldapserach similar to a select-clause in SQL? > I want to get back the results ordered by some attributes and I want to > reduce the number of results to a specific limit. > > So is there something similar to > > order by NAME Well if your server supports v3 controls you could use the Sort control. Net::LDAP::Control::Sort will be in the next release. > and > > set rowcount N Again v3 controls. You could use the Paged control and just get the first page. Graham. |