[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Multimaster replication problem
- To: <openldap-software@OpenLDAP.org>
- Subject: Multimaster replication problem
- From: "Mandeep Chadha" <mandeepc@platsolns.com>
- Date: Thu, 30 Jun 2005 22:25:45 -0700
- Content-class: urn:content-classes:message
- Thread-index: AcV9/VTpnuVy1rGhShuBWq55d5pNow==
- Thread-topic: Multimaster replication problem
Hi All,
We are having problem making multimaster replication work. Any help
would be greatly appreciated. Enabled multimaster support as per howto
document. Not able to add entries on either server if in slapd.conf
updatedn
line is added. If we add updatedn line in slapd.conf we observe the
following debug message while trying to add new entries with ldapadd
ldap_add() : No object found error.
Also, slurpd is reporting following errors:
Initializing session to mc7:389
ldap_create
bind to mc7:389 as cn=sdv10,dc=psi,dc=com (simple)
ldap_simple_bind_s
ldap_sasl_bind_s
ldap_sasl_bind
ldap_send_initial_request
ldap_new_connection
ldap_int_open_connection
ldap_connect_to_host: mc7
ldap_new_socket: 4
ldap_prepare_socket: 4
ldap_connect_to_host: Trying 10.2.0.109:389
ldap_connect_timeout: fd: 4 tm: -1 async: 0
ldap_ndelay_on: 4
ldap_is_sock_ready: 4
ldap_ndelay_off: 4
ldap_int_sasl_open: host=mc7.invent.psi.com
ldap_open_defconn: successful
ldap_send_server_request
ber_flush: 39 bytes to sd 4
0000: 30 25 02 01 01 60 20 02 01 03 04 16 63 6e 3d 73 0%...`
.....cn=s
0010: 64 76 31 30 2c 64 63 3d 70 73 69 2c 64 63 3d 63
dv10,dc=psi,dc=c
0020: 6f 6d 80 03 70 73 69 om..psi
ldap_write: want=39, written=39
0000: 30 25 02 01 01 60 20 02 01 03 04 16 63 6e 3d 73 0%...`
.....cn=s
0010: 64 76 31 30 2c 64 63 3d 70 73 69 2c 64 63 3d 63
dv10,dc=psi,dc=c
0020: 6f 6d 80 03 70 73 69 om..psi
ldap_result msgid 1
ldap_chkResponseList for msgid=1, all=1
ldap_chkResponseList returns NULL
wait4msg (infinite timeout), msgid 1
wait4msg continue, msgid 1, all 1
** Connections:
* host: mc7 port: 389 (default)
refcnt: 2 status: Connected
last used: Thu Jun 30 17:08:00 2005
** Outstanding Requests:
* msgid 1, origid 1, status InProgress
outstanding referrals 0, parent count 0
** Response Queue:
Empty
ldap_chkResponseList for msgid=1, all=1
ldap_chkResponseList returns NULL
do_ldap_select
read1msg: msgid 1, all 1
ber_get_next
ldap_read: want=1, got=1
0000: 30 0
ldap_read: want=1, got=1
0000: 0c .
ldap_read: want=12, got=12
0000: 02 01 01 61 07 0a 01 31 04 00 04 00 ...a...1....
ber_get_next: tag 0x30 len 12 contents:
ber_dump: buf=0x600000000002dfe0 ptr=0x600000000002dfe0
nd=0x600000000002dfec len=12
0000: 02 01 01 61 07 0a 01 31 04 00 04 00 ...a...1....
ldap_read: message type bind msgid 1, original id 1
ber_scanf fmt ({iaa) ber:
ber_dump: buf=0x600000000002dfe0 ptr=0x600000000002dfe3
nd=0x600000000002dfec len=9
0000: 61 07 0a 01 31 04 00 04 00 a...1....
read1msg: 0 new referrals
read1msg: mark request completed, id = 1
request 1 done
res_errno: 0, res_error: <>, res_matched: <>
ldap_free_request (origid 1, msgid 1)
ldap_free_connection
ldap_free_connection: refcnt 1
ldap_parse_result
ber_scanf fmt ({iaa) ber:
ber_dump: buf=0x600000000002dfe0 ptr=0x600000000002dfe3
nd=0x600000000002dfec len=9
0000: 61 07 0a 01 31 04 00 04 00 a...1....
ber_scanf fmt (}) ber:
ber_dump: buf=0x600000000002dfe0 ptr=0x600000000002dfec
nd=0x600000000002dfec len=0
ldap_msgfree
ldap_err2string
Error: ldap_simple_bind_s for mc7:389 failed: Invalid credentials
ldap_unbind
ldap_free_connection
ldap_send_unbind
ber_flush: 7 bytes to sd 4
0000: 30 05 02 01 02 42 00 0....B.
ldap_write: want=7, written=7
0000: 30 05 02 01 02 42 00 0....B.
ldap_free_connection: actually freed
Server 1 : slapd.conf
# $OpenLDAP: pkg/ldap/servers/slapd/slapd.conf,v 1.8.8.7 2001/09/27
20:00:31 kurt Exp $
#
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/inetorgperson.schema
include /etc/openldap/schema/psimc.schema
# Login parameters
pidfile /var/run/slapd.pid
argsfile /var/run/slapd.args
#######################################################################
# ldbm database definitions
#######################################################################
database ldbm
suffix "dc=psi,dc=com"
rootdn "cn=sdv10,dc=psi,dc=com"
rootpw psi
#rootpw {SSHA}KO4QrciEIkozO20+l+HOQnzj8cmIsyGk
# The database directory MUST exist prior to running slapd AND
# should only be accessible by the slapd/tools. Mode 700 recommended.
directory /var/lib/ldap/psimc
# Files should be created rw for the owner ONLY
mode 0700
# Indices to maintain
index objectClass eq
index cn,username,accessMode,userPassword pres,eq
replica host=mc7:389
binddn="cn=sdv10,dc=psi,dc=com"
bindmethod=simple
credentials=psi
updatedn cn=mc7,dc=psi,dc=com
access to *
by dn="cn=mc7,dc=psi,dc=com" write
by * read
replogfile /tmp/slapd.replog
Server 2 : slapd.conf
# $OpenLDAP: pkg/ldap/servers/slapd/slapd.conf,v 1.8.8.7 2001/09/27
20:00:31 kurt Exp $
#
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/inetorgperson.schema
include /etc/openldap/schema/psimc.schema
# Login parameters
pidfile /var/run/slapd.pid
argsfile /var/run/slapd.args
#######################################################################
# ldbm database definitions
#######################################################################
database ldbm
suffix "dc=psi,dc=com"
rootdn "cn=mc7,dc=psi,dc=com"
# Use of strong authentication encouraged.
rootpw psi
#rootpw {SSHA}KO4QrciEIkozO20+l+HOQnzj8cmIsyGk
# The database directory MUST exist prior to running slapd AND
# should only be accessible by the slapd/tools. Mode 700 recommended.
directory /var/lib/ldap/psimc
# Files should be created rw for the owner ONLY
mode 0700
index objectClass eq
index cn,username,accessMode,userPassword pres,eq
replica host=sdv10:389
binddn="cn=mc7,dc=psi,dc=com"
bindmethod=simple
credentials=psi
updatedn cn=sdv10,dc=psi,dc=com
access to *
by dn="cn=sdv10,dc=psi,dc=com" write
by * read
replogfile /tmp/slapd.replog
Thanks in advance,
Mandeep