Re: no of entries searched

Michael Ströder <[email protected]>
Newsgroups gmane.comp.mozilla.devel.directory
Message-ID <[email protected]>
[email protected] wrote:
> I am looking for a solution when I need to get only no of entries
> found after ldapsearch command.

If you want just the number of search results without actually receiving 
the results then this is not possible with LDAP. LDAP client tools which 
pretend to only count results also retrieve them. You can limit the 
amount of network bandwidth by querying results without the attributes 
of the entries.

There is a solution for some special cases: Some LDAP servers are 
maintaining so-called operational attributes indicating e.g. the number 
of direct subordinates entries or the total of entries within a subtree. 
But this is vendor-specific.

So which searches are you doing and which server is used?

Ciao, Michael.

-- 
Michael Ströder
E-Mail: [email protected]
http://www.stroeder.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.