[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: how to paginate the dataset from ldap



On Fri, Apr 24, 2009 at 08:30:55PM +0800, owen nirvana wrote:

> sometime a query might get hundreds of data from the LDAP server, I
> could not find a way to display these data by paginating,

If you really mean to paginate the *display* (presumably from
ldapsearch), simply pipe the output into 'more' (or 'less' if you
prefer).

The command-line tools are intended more for scripting than for direct
use by human end-users. If you want an easier tool for browsing, try
'gq', 'jXplorer', 'ldap browser-editor' etc.

If you want to write an LDAP client program that receives result sets
in pages of a certain size, you will need to use the 'paged results'
control on the search operation and then be prepared to read a number
of pages as they come back. Note that this is entirely different from
paginating the display.

Andrew
-- 
-----------------------------------------------------------------------
|                 From Andrew Findlay, Skills 1st Ltd                 |
| Consultant in large-scale systems, networks, and directory services |
|     http://www.skills-1st.co.uk/                +44 1628 782565     |
-----------------------------------------------------------------------