LDAP: unable to enter DIT LDIF: LDAP_NO_SUCH_OBJECT error

ldap

I've finally got my LDAP server to work but now I'm having trouble constructing the DIT.
The LDIF for the DIT goes as follows:

dn: ou=uSocial,dc=ulyssis,dc=org
ou: uSocial
objectClass: top
objectClass: organizationalUnit

dn: ou=Kringen,dc=uSocial,dc=ulyssis,dc=org
ou: Kringen
objectClass: top
objectClass: organizationalUnit

dn: ou=Personen,dc=uSocial,dc=ulyssis,dc=org
ou: Personen
objectClass: top
objectClass: organizationalUnit

The suffix is "dc=ulyssis,dc=org". When I try adding the ldif (be it using ldapadd or through the phpLDAPadmin) I get the following error:

Could not add the object to the LDAP server.

LDAP said: No such object

Error number: 0x20 (LDAP_NO_SUCH_OBJECT)

Description: That object does not exist.

What object is it that doesn't exist? The error is pretty vague..

When I remove all the suffixes from the ldif I get the following error:

No DN or CONTAINER?

I do have a DN specified for every entry so I don't know what I'm doing wrong here either.

Can anyone please help me on doing this correctly?
Any help is greatly appreciated!

Best Answer

You'll need to add the DSE dn first.

dn: dc=ulyssis,dc=org
objectClass: domain
dc: dc=ulyssis

This error indicates that the suffix is not configured correctly.

ldap_add: Server is unwilling to perform (53)
        additional info: no global superior knowledge