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

Re: enumeratin all ldap objects in a LDAP ?

On Fri, May 30, 2008 at 3:50 AM, Adrian Overbury <adrian@inomial.com> wrote:
> Well, I don't know necessarily what the *best* way is, but I can tell you
> what the simplest way in.  As root on whatever server the openLDAP database
> is on, run this command:
> slapcat | grep "^dn: " | wc -l

That should be   "^dn:"  to catch "dn:: base64-encoded DN" as well.

Though I agree with André it's best to not overuse root.  But then,
hopefully the server runs with the -u <user> option for the same
reason and then the slapcat should be done as that user.