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

root of the tree



Hi everybody,

  I´m new to ldap and have run into some trouble while building my own
directory structure. The samples, that where outlined in the
documentaion all worked well, so I think my software in general does
function ok.

  The question I have is: what do I have to do, if i want to build a
directory, which starts at the very root/top of the tree? That means, I
want to use an emty suffix/searchbase. So that, if I do a ´ldapsearch -b
"" -s one "(objectclass=*)"´, I get all the countries, that make up the
first level of my directory.

  From what I have been reading in various places, I thought the way to
do this is:
 (a) specify SUFFIX "" in slapd.conf
 (b) use an object of class top with an empty dn

..so my database would look like this:
  dn:
  objectclass: top

  dn: c=DE
  c: DE
  description: Germany
  objectclass: country

  dn: c=FR
  c: FR
  description: France
  objectclass: country

  dn: o=..., c=DE

  dn: cn=Lars Oppermann, o=...
  ...
  ...

  Now, if I do a ´ldapsearch -b "c=DE" -s one "(objectclass=*)"´ all
organizations under c=DE are returned correctly. When I do it for an
organization, alle persons in that organization are returned correctly.
But... when I do it with ´...-b "" -s one...´ nothing gets returned...

What am I missing?

All hints/pointers/... are greatly apreciated
Cheers
-Lars