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

Re: How list all of the contents of an LDAP Directory.



There may be a size limit set in the slapd.conf file that will inhibit you from retrieving more than 499 entries at a time.  I think, from what the ldapsearch man page says, that if you bind to the server as the rootdn you can add a -z 0 to your ldapsearch to retrieve everything.  So you could do something like this:

ldapsearch -z 0 -b "o=somecompany.com" -D "cn=manager,o=somecompany.com" -W "(objectclass=*)"

and you should get everything back.

Dan

Carles Xavier Munyoz Baldó wrote:

-----BEGIN PGP SIGNED MESSAGE-----

Hi,
How can I list all the entries of one LDAP Directory while the slapd daemon
is running in read-write mode (I can't use the slapcat command if the slapd
daemon is in read-write mode) ?

I'm trying to use the ldapsearch, but it only list 499 entries.
May I list all the entries with the ldapsearch command ?

Any help is wellcome :)
Thanks.
---
Carles Xavier Munyoz Baldó / cmunyoz@es.wanadoo.com
VAS - Experto en Sistemas IP
Wanadoo España - http://www.wanadoo.es/
Tel: +34 96 5040046 - Fax: +34 96 5040047
---

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
MessageID: ViWr0GEKQ9GX+XQPUTCyB6Y835/ju4Qk

iQA/AwUAOrs91RAGkoZz8//aEQIcXwCg/f7qPuJxndqDQOyQV99XpnoTDlQAoNIr
ybIjqp9NSgPKjX7EU1qcm4pj
=groJ
-----END PGP SIGNATURE-----

-- 
Daniell Freed
Computer Services
Dewitt, Ross, & Stevens S.C.

He who fights with monsters might take care 
lest he thereby become a monster. 
And if you gaze for long into an abyss, 
the abyss gazes also into you.

Beyond Good and Evil
Friedrich Wilhelm Nietzche