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

Can you use the Null DN??



I am trying to setup a small database on my RH 5.2 Linux machine and I keep
getting the same error.  I want to populate the database with top-level
organizations.  The modify I am running looks like this:

    ldapmodify -v -D "cn=root" -w "secret" -a

    dn: o=companyname
    objectclass: top

But, when I end it, it gives me "no such object".  I know this doesn't
exist, that's why I am trying to add it.  I have turned on debugging and it
says that there is no parent, that the parent doesn't exist.

So, my question is, does the OpenLDAP database support using the null dn?

I can provision stuff under the "dc=<company>, dc=com" dn, but I don't want
this.  I want stuff like this:

    dn: o=top1
    objectclass: top
    objectclass: organization
    o: top1

    dn: o=top2
    objectclass: top
    objectclass: organization
    o: top2


Can this be done?  I don't want one large tree, I would rather have several
smaller trees.

Any help would be appreciated.

Thanks,
Brian Benson