Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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
ldapadd: wrong attributeType at line 4, entry "olcDatabase={1}hdb,cn=config"

It looks fine to me -- what's the problem?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

The problem turned out to be a trailing space on on this line:

add: olcMirrorMode 


share|improve this answer
How did you find out? –  RelaXNow May 23 '14 at 6:01
Good question! I don't think any diagnostic tools helped - I think I just noticed as I was examining the config, weeping. Sorry I can't be more specific, it was a while ago now. –  seb Jun 2 '14 at 9:20

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.