From: Chris R. <chr...@me...> - 2000-08-01 15:57:27
|
Stefan Kiesow <Ste...@nw...> 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 > > and > > set rowcount N > > ??? > > Thanks for help, > Stefan You can limit the numbers of entries returned in a search by setting the sizelimit in the search operation (perldoc Net::LDAP) Directories are defined to return the results in any order, however once you get them back, you can do what you want with them, including sorting them. When you get the results back then, you can sort them using the sorted method (perldoc Net::LDAP::Search) Cheers, Chris |