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

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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
Not sure if you use vim, but: – Paul Stengel Jan 22 at 15:02

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.