When attempting to load the following configuration
dn: olcDatabase={1}hdb,cn=config
changetype: modify
add: olcMirrorMode
olcMirrorMode: TRUE
I get the following error:
root@box:~# ldapadd -Y EXTERNAL -H ldapi:/// -f mirrormode.ldif
SASL/EXTERNAL authentication started
SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth
SASL SSF: 0
ldapadd: wrong attributeType at line 4, entry "olcDatabase={1}hdb,cn=config"
It looks fine to me -- what's the problem?

(export GREP_COLOR='0;41'; grep --col -Enm5 '\s+$' your.ldif)to remove:sed -ri 's,\s+$,,g' your.ldif– Boop Feb 24 '17 at 18:52export(just remove the semicolon):GREP_COLOR='0;41' grep --col -Enm5 '\s+$' your.ldif– Dennis Williamson Jul 25 '19 at 17:50