PDA

View Full Version : ldap replication


anandx
6th December 2008, 23:25
Hi,

I am looking for some ldap replication guide. I have a single ldap server which i would like to replicate to 2 slaves.

Tried to enable the example inside slapd.conf


replogfile /var/lib/ldap/openldap-master-replog

replica uri=ldap://1.1.1.1:389
suffix="dc=XXXXXXX,dc=com"
binddn="cn=Manager,dc=XXXXXXX,dc=com"
bindmethod=simple


In the above, 1.1.1.1 is my slave server ip.

When i enable the above, and try to restart openldap service, it gives me the following error


/etc/init.d/ldap start
Checking configuration files for slapd: config file testing succeeded
[ OK ]
Starting slapd: [ OK ]
Starting slurpd: Error: Malformed "replica" line in slapd config file, line 174
Warning: failed to add replica "1.1.1.1:389 - ignoring replica
[ OK ]


Any help on this would be appreciated.

anandx
9th December 2008, 23:37
Anyone ???