Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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

Ubuntu 10.04 LDAP Replication - please help

I was trying to setup LDAP Replication.

But I put the wrong IP address in the consumer_sync.ldif file and now I am trying to fix it but I am getting the following error; please help me out!

jsmith@s2rweb2:/var/nfs$ sudo ldapadd -c -Y EXTERNAL -H ldapi:/// -f consumer_sync.ldif
SASL/EXTERNAL authentication started
SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth
modifying entry "cn=module{0},cn=config"
ldap_modify: Type or value exists (20)
    additional info: modify/add: olcModuleLoad: value #0 already exists

modifying entry "olcDatabase={1}hdb,cn=config"
ldap_modify: Type or value exists (20)
    additional info: modify/add: olcDbIndex: value #0 already exists
share|improve this question

migrated from Apr 18 '11 at 17:18

This question came from our site for professional and enthusiast programmers.

You are using the ldapadd command. It complains because you already have added those entries. You should use the ldapmodify command only containing your change of ip with the proper syntax – tomodachi Jun 15 '13 at 10:12
up vote 1 down vote accepted

The consumer_sync.ldif you use try to add attributes even added in your directory, now you have to write the LDIF file that modify them. Don't know if it's possible, but perhaps you can try to modify config with Apache Directory Studio.

You must adapt this, it's just given "as is" without test.

# syncrepl specific indices
dn: olcDatabase={1}hdb,cn=config
changetype: modify
replace: olcSyncRepl
olcSyncRepl: rid=0 
 provider=ldap://Your new adress
 binddn= The Bind DN
 credentials= Your secret
 retry="60 +"
replace: olcUpdateRef
olcUpdateRef: ldap://Your new adress
share|improve this answer

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.