Ldap – openLDAP Replication Error “invalid format entry: olcDatabase={1}mdb,cn=config”

ldapldifopenldap

I'm trying to set up an LDAP Replication server by following this (https://www.server-world.info/en/note?os=Ubuntu_16.04&p=openldap&f=5) tutorial.

At Step "[3] Configure LDAP Consumer" I've got the ldapadd error message "ldapass: invalid foramt (line 6) entry: "olcDatabase={1}mdb,cn=config"

My config file with ldapadd command

What am I doing wrong?

Update:

I´ve got 2 Virtual Machines with Ubuntu Server 16.04 LTS.
The First Server is an working LDAP Server. On the second one I´ve set up an "empty" LDAP server to use it as Replicant.

I have followed the given tutorial successfull until step 3. At this step appeard the (in the Picture above) given errormessage by adding the ldif config.

Best Answer

Solved.

This tutorial (http://www.linuxlasse.net/linux/howtos/OpenLDAP_N-Way_MultiMaster_Replication) has a Headline Errors and Fixes. There is said, that I schould add following lines among the changetype: modify line:

add: olcSuffix
olcSuffix: dc=test,dc=local

add: olcRootDN
olcRootDN: cn=admin,dc=test,dc=local

add: olcRootPW
olcRootPW: test

Now it works.