How to list organizationalUnits in LDAP

Hi!

I use Lotus Domino 7.0.2 and I have the people of my organization in organizationalUnits, for example

dn: cn=Diego,ou=Enginnering,ou=Operations,o=organization

I need to list all organizatioalUnits that I have in my Organization, but I can’t?

I tried with the command: ldapsearch (objectClass=organizationalUnit) or (objectClass=ou) or (ou=*) and I don’t receive any results.

In the ldapsearch (objectClass=*) I don’t receive any organizationalUnit result too.

anyone can help me?

Thanks

Subject: How to list organizationalUnits in LDAP

If you run a all documents search on the LDAP server can you bring up any documents at all ? ? ?

If you cant then your BASE DN is incorrect.

Subject: RE: How to list organizationalUnits in LDAP

Thanks for your response

If I run the following command:

ldapsearch -x -H"ldap://192.168.0.135:390" -D"cn=ctmail,o=diegonieto" -b “” -W “ObjectClass=*”

I received (144) entries, beetween my organization and my Lotus Notes Users, However I don’t see the OrganizationalUnits as i.e:

dn: ou=Engineer,o=organziation

ou=Engineer

Can I get the OrganizationalUnits in LDAP or in throgh Lotus Domino in TXT file?