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

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



I doubt about it.  The option '-z' can just control how many entries the client wants to be returned rather than how many entries that the server can return.  The sizelimit configured on the server controls.  If your server size limit has been set to 499, you can ask fewer but not more.

Correct me please if I'm wrong.

Bing 

Bing Du <bing-du@tamu.edu, 979-845-9577>
Texas A&M University, CIS, Operating Systems, Unix

>>> Daniell Freed <dxf@dewittross.net> 03/23/01 08:37AM >>>
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