OpenLDAP Replication Master\Slave
hi there,
i'm trying to get OpenLDAP Replication working between two servers the information about current openldap setup of the network is as follows Master = fedora.directory.server base = dc=fedora,dc=directory,dc=server slave Slave = rhel.directory.server base = dc=fedora,dc=directory,dc=server master can someone please help me out, what am i doing wrong? what do i need? i'm almost sure it's the slave configuration, does anyone have any configuration files that they have already setup? Master /etc/openldap/slapd.conf include /etc/openldap/schema/core.schema include /etc/openldap/schema/cosine.schema include /etc/openldap/schema/inetorgperson.schema include /etc/openldap/schema/nis.schema include /etc/openldap/schema/samba.schema allow bind_v2 pidfile /var/run/slapd.pid argsfile /var/run/slapd.args database bdb suffix "dc=fedora,dc=directory,dc=server" rootdn "cn=Manager,dc=fedora,dc=directory,dc=server" rootpw {SSHA}diiNsDR8wERa2urlW2dRR2X6EuDmEQCs directory /var/lib/ldap index objectClass eq,pres index ou,cn,mail,surname,givenname eq,pres,sub index uidNumber,gidNumber,loginShell eq,pres index uid,memberUid eq,pres,sub index nisMapName,nisMapEntry eq,pres,sub replica host=rhel.directory.server binddn="cn=Manager,dc=fedora,dc=directory,dc=server" bindmethod=simple credentials=password replogfile /var/log/replog Slave /etc/openldap/ldap.conf include /etc/openldap/schema/core.schema include /etc/openldap/schema/cosine.schema include /etc/openldap/schema/inetorgperson.schema include /etc/openldap/schema/nis.schema include /etc/openldap/schema/samba.schema allow bind_v2 pidfile /var/run/slapd.pid argsfile /var/run/slapd.args database bdb suffix "dc=fedora,dc=directory,dc=server" rootdn "cn=Manager,dc=fedora,dc=directory,dc=server" rootpw {SSHA}6+SLcOSV7FjxVusCmOd/daP7cys6ERaV directory /var/lib/ldap index objectClass eq,pres index ou,cn,mail,surname,givenname eq,pres,sub index uidNumber,gidNumber,loginShell eq,pres index uid,memberUid eq,pres,sub index nisMapName,nisMapEntry eq,pres,sub updatedn "cn=Manager,dc=fedora,dc=directory,dc=server" updateref fedora.directory.server |
make sure /var/log/replog is writable by ldap user
|
okay, on both machines master/slave?
what is my ldap user? do you know if my slave conf is right? |
Hi,
u have to define replication port in slave conf file also, like this: updateref fedora.directory.server:389 or 636 Hope it will works for u !!!!!!! |
All times are GMT -5. The time now is 04:14 AM. |