Setup LDAP syncrepl again




I setup syncrepl for slapd on lisa132 today, its pretty easy, just have to add a couple of things to /etc/ldap/slapd.conf:

rootdn ...
moduleload  syncprov
overlay syncprov
syncprov-checkpoint 100 10
syncprov-sessionlog 100
 
syncrepl rid=132
        provider=ldap://255.255.255.255:389
        type=refreshOnly
        interval=00:00:01:00
        searchbase="dc=example,dc=com"
        filter="(objectClass=*)"
        scope=sub

Note - after doing this, I checked my setup with ldapsearch. I still had to use the basedn flag:

ldapsearch -x -b dc=example,dc=com

2 Responses to “Setup LDAP syncrepl again”


  1. 1 Gavin Henry

    Of course you did ;-)

    The seaerchbase si for the syncrepl statement only.

    You need to add dc=example,dc=com to your /etc/ldap.conf or /etc/openldap/ldap.conf depending on how you built OpenLDAP.

  2. 2 Albert

    Hi Gavin, thanks for the tip. I’ll try that out. Also, I can never figure out where that file is supposed to live!

Leave a Reply