On 26/6/06 6:36, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

> Hello everybody;
> 
>    Assume I want to get the number of  results of  a certain object
> class, that fulfil certain conditions. Is there a better way to do it
> like select count(*) in relational databases,than  getting the results
> and count them myself in my java program?

As long as you can express the conditions in an LDAP search filter, then
just go and do the search, requesting no attributes back (for efficiency).
Then obtain the result count using $mesg->count().

Cheers,

Chris


Reply via email to