[Date Prev][Date Next] [Chronological] [Thread] [Top]

syncrepl doesn't copy entries



Hello all,

  Could anyone please help me to understand why synrepl
isn't working in this configuration?

 I'm testing a simple scenario with syncrepl. The
consumer has the following configuration:

syncrepl rid=22
        provider=ldap://195.55.55.167:389
        type=refreshOnly
        interval=00:01:00:00
        searchbase="ou=personas,dc=fadesa,dc=es"
        scope=sub
        filter="(objectClass=*)"
        schemachecking=off
        updatedn="cn=replica,dc=fadesa,dc=es"
        bindmethod=simple
        binddn="cn=syncuser,ou=cuentas,dc=fadesa,dc=es"
        credentials=sincro

Before the consumer starts I added the basic structure
by creating ou=personas,dc=fadesa,dc=es, the replica DN 
and the syncConsumerSubentry.
(Is it necessary create the base DN before the initial
content load in the consumer?)

so the consumer has a DB like this:

# slapcat -k
dn: dc=fadesa,dc=es
entryUUID: 4e3e8650-2739-1028-8cdc-c0493cea101a
creatorsName: cn=Manager,dc=fadesa,dc=es
modifiersName: cn=Manager,dc=fadesa,dc=es
createTimestamp: 20040420171002Z
modifyTimestamp: 20040420171002Z
entryCSN: 20040420171002Z#000001#00#000000
objectClass: top
objectClass: glue
structuralObjectClass: glue

dn: cn=syncrepl22,dc=fadesa,dc=es
objectClass: top
objectClass: subentry
objectClass: syncConsumerSubentry
cn: syncrepl22
syncreplCookie: csn=20040416154402Z#000001#00#000000
subtreeSpecification: {}
structuralObjectClass: subentry
entryUUID: 8180e65c-2739-1028-8d8c-b3e56b59af45
creatorsName: cn=replica,dc=fadesa,dc=es
createTimestamp: 20040420171128Z
entryCSN: 20040420171128Z#000001#00#000000
modifiersName: cn=replica,dc=fadesa,dc=es
modifyTimestamp: 20040420171128Z

dn: cn=replica,dc=fadesa,dc=es
objectClass: top
objectClass: organizationalRole
cn: replica
structuralObjectClass: organizationalRole
entryUUID: 1521a6e6-27dd-1028-8a5e-ffa836bb0b34
creatorsName: cn=Manager,dc=fadesa,dc=es
createTimestamp: 20040421124223Z
entryCSN: 20040421124223Z#000001#00#000000
modifiersName: cn=Manager,dc=fadesa,dc=es
modifyTimestamp: 20040421124223Z

dn: ou=personas,dc=fadesa,dc=es
objectClass: top
objectClass: organizationalUnit
ou: personas
structuralObjectClass: organizationalUnit
entryUUID: 5108b388-2801-1028-858c-ed34347654ca
creatorsName: cn=Manager,dc=fadesa,dc=es
createTimestamp: 20040421170146Z
entryCSN: 20040421170146Z#000001#00#000000
modifiersName: cn=Manager,dc=fadesa,dc=es
modifyTimestamp: 20040421170146Z

and the binddn just works, because if I do a ldapsearch
it returns all entries below ou=personas. Also I attach the
output of the consumer, it seems correct but nothing is
added in the consumer DIT, the DB remains the same.

what I'm missing here? 

thank you.

	/------/
.
.
=>do_syncrepl
ldap_create
ldap_url_parse_ext(ldap://195.55.55.167:389)
ldap_bind_s
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: TCP 195.55.55.167:389
ldap_new_socket: 11
ldap_prepare_socket: 11
ldap_connect_to_host: Trying 195.55.55.167:389
ldap_connect_timeout: fd: 11 tm: -1 async: 0
ldap_ndelay_on: 11
ldap_is_sock_ready: 11
ldap_ndelay_off: 11
ldap_open_defconn: successful
ldap_send_server_request
ber_flush: 58 bytes to sd 11
  0000:  30 38 02 01 01 60 33 02  01 03 04 26 63 6e 3d 73   08...`3....&cn=s
  0010:  79 6e 63 75 73 65 72 2c  6f 75 3d 63 75 65 6e 74   yncuser,ou=cuent
  0020:  61 73 2c 64 63 3d 66 61  64 65 73 61 2c 64 63 3d   as,dc=fadesa,dc=
  0030:  65 73 80 06 73 69 6e 63  72 6f                     es..sincro
ldap_write: want=58, written=58
  0000:  30 38 02 01 01 60 33 02  01 03 04 26 63 6e 3d 73   08...`3....&cn=s
  0010:  79 6e 63 75 73 65 72 2c  6f 75 3d 63 75 65 6e 74   yncuser,ou=cuent
  0020:  61 73 2c 64 63 3d 66 61  64 65 73 61 2c 64 63 3d   as,dc=fadesa,dc=
  0030:  65 73 80 06 73 69 6e 63  72 6f                     es..sincro
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: 195.55.55.167  port: 389  (default)
  refcnt: 2  status: Connected
  last used: Wed Apr 21 19:43:31 2004

** 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
ldap_int_select
read1msg: msgid 1, all 1
ber_get_next
ldap_read: want=8, got=8
  0000:  30 0c 02 01 01 61 07 0a                            0....a..
ldap_read: want=6, got=6
  0000:  01 00 04 00 04 00                                  ......
ber_get_next: tag 0x30 len 12 contents:
ber_dump: buf=0x08171b18 ptr=0x08171b18 end=0x08171b24 len=12
  0000:  02 01 01 61 07 0a 01 00  04 00 04 00               ...a........
ldap_read: message type bind msgid 1, original id 1
ber_scanf fmt ({iaa) ber:
ber_dump: buf=0x08171b18 ptr=0x08171b1b end=0x08171b24 len=9
  0000:  61 07 0a 01 00 04 00 04  00                        a........
ber_scanf fmt ({iaa}) ber:
ber_dump: buf=0x08171b18 ptr=0x08171b1b end=0x08171b24 len=9
  0000:  61 07 0a 01 00 04 00 04  00                        a........
new result:  res_errno: 0, res_error: <>, res_matched: <>
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=0x08171b18 ptr=0x08171b1b end=0x08171b24 len=9
  0000:  61 07 0a 01 00 04 00 04  00                        a........
ber_scanf fmt (}) ber:
ber_dump: buf=0x08171b18 ptr=0x08171b24 end=0x08171b24 len=0

ldap_msgfree
=> bdb_entry_get: ndn: "cn=syncrepl22,dc=fadesa,dc=es"
=> bdb_entry_get: oc: "(null)", at: "syncreplCookie"
bdb_dn2entry("cn=syncrepl22,dc=fadesa,dc=es")
=> bdb_dn2id( "dc=fadesa,dc=es" )
<= bdb_dn2id: got id=0x00000001
=> bdb_dn2id( "cn=syncrepl22,dc=fadesa,dc=es" )
<= bdb_dn2id: got id=0x00000003
entry_decode: "cn=syncrepl22,dc=fadesa,dc=es"
<= entry_decode(cn=syncrepl22,dc=fadesa,dc=es)
=> bdb_entry_get: found entry: "cn=syncrepl22,dc=fadesa,dc=es"
bdb_entry_get: rc=0
=> access_allowed: auth access to "cn=syncrepl22,dc=fadesa,dc=es" "syncreplCookie" requested
=> acl_get: [1] attr syncreplCookie
access_allowed: no res from state (syncreplCookie)
=> acl_mask: access to entry "cn=syncrepl22,dc=fadesa,dc=es", attr "syncreplCookie" requested
=> acl_mask: to all values by "cn=replica,dc=fadesa,dc=es", (=n)
<= check a_dn_pat: *
<= acl_mask: [1] applying write(=wrscx) (stop)
<= acl_mask: [1] mask: write(=wrscx)
=> access_allowed: auth access granted by write(=wrscx)
ldap_search_ext
put_filter: "(objectClass=*)"
put_filter: simple
put_simple_filter: "objectClass=*"
ldap_send_initial_request
ldap_send_server_request
ber_flush: 191 bytes to sd 11
  0000:  30 81 bc 02 01 02 63 6c  04 1b 6f 75 3d 70 65 72   0.....cl..ou=per
  0010:  73 6f 6e 61 73 2c 64 63  3d 66 61 64 65 73 61 2c   sonas,dc=fadesa,
  0020:  64 63 3d 65 73 0a 01 02  0a 01 00 02 01 00 02 01   dc=es...........
  0030:  00 01 01 00 87 0b 6f 62  6a 65 63 74 43 6c 61 73   ......objectClas
  0040:  73 30 31 04 01 2a 04 0b  6f 62 6a 65 63 74 43 6c   s01..*..objectCl
  0050:  61 73 73 04 15 73 74 72  75 63 74 75 72 61 6c 4f   ass..structuralO
  0060:  62 6a 65 63 74 43 6c 61  73 73 04 08 65 6e 74 72   bjectClass..entr
  0070:  79 43 53 4e a0 49 30 47  04 18 31 2e 33 2e 36 2e   yCSN.I0G..1.3.6.
  0080:  31 2e 34 2e 31 2e 34 32  30 33 2e 31 2e 39 2e 31   1.4.1.4203.1.9.1
  0090:  2e 31 04 2b 30 29 0a 01  01 04 24 63 73 6e 3d 32   .1.+0)....$csn=2
  00a0:  30 30 34 30 34 31 36 31  35 34 34 30 32 5a 23 30   0040416154402Z#0
  00b0:  30 30 30 30 31 23 30 30  23 30 30 30 30 30 30      00001#00#000000
ldap_write: want=191, written=191
  0000:  30 81 bc 02 01 02 63 6c  04 1b 6f 75 3d 70 65 72   0.....cl..ou=per
  0010:  73 6f 6e 61 73 2c 64 63  3d 66 61 64 65 73 61 2c   sonas,dc=fadesa,
  0020:  64 63 3d 65 73 0a 01 02  0a 01 00 02 01 00 02 01   dc=es...........
  0030:  00 01 01 00 87 0b 6f 62  6a 65 63 74 43 6c 61 73   ......objectClas
  0040:  73 30 31 04 01 2a 04 0b  6f 62 6a 65 63 74 43 6c   s01..*..objectCl
  0050:  61 73 73 04 15 73 74 72  75 63 74 75 72 61 6c 4f   ass..structuralO
  0060:  62 6a 65 63 74 43 6c 61  73 73 04 08 65 6e 74 72   bjectClass..entr
  0070:  79 43 53 4e a0 49 30 47  04 18 31 2e 33 2e 36 2e   yCSN.I0G..1.3.6.
  0080:  31 2e 34 2e 31 2e 34 32  30 33 2e 31 2e 39 2e 31   1.4.1.4203.1.9.1
  0090:  2e 31 04 2b 30 29 0a 01  01 04 24 63 73 6e 3d 32   .1.+0)....$csn=2
  00a0:  30 30 34 30 34 31 36 31  35 34 34 30 32 5a 23 30   0040416154402Z#0
  00b0:  30 30 30 30 31 23 30 30  23 30 30 30 30 30 30      00001#00#000000
=>do_syncrep2
ldap_result msgid -1
ldap_chkResponseList for msgid=-1, all=0
ldap_chkResponseList returns NULL
wait4msg (infinite timeout), msgid -1
wait4msg continue, msgid -1, all 0
** Connections:
* host: 195.55.55.167  port: 389  (default)
  refcnt: 2  status: Connected
  last used: Wed Apr 21 19:43:31 2004

** Outstanding Requests:
 * msgid 2,  origid 2, status InProgress
   outstanding referrals 0, parent count 0
** Response Queue:
   Empty
ldap_chkResponseList for msgid=-1, all=0
ldap_chkResponseList returns NULL
ldap_int_select
read1msg: msgid -1, all 0
ber_get_next
ldap_read: want=8, got=8
  0000:  30 57 02 01 02 65 07 0a                            0W...e..
ldap_read: want=81, got=81
  0000:  01 00 04 00 04 00 a0 49  30 47 04 18 31 2e 33 2e   .......I0G..1.3.
  0010:  36 2e 31 2e 34 2e 31 2e  34 32 30 33 2e 31 2e 39   6.1.4.1.4203.1.9
  0020:  2e 31 2e 33 01 01 ff 04  28 30 26 04 24 63 73 6e   .1.3....(0&.$csn
  0030:  3d 32 30 30 34 30 34 31  36 31 35 34 34 30 32 5a   =20040416154402Z
  0040:  23 30 30 30 30 30 31 23  30 30 23 30 30 30 30 30   #000001#00#00000
  0050:  30                                                 0
ber_get_next: tag 0x30 len 87 contents:
ber_dump: buf=0x08171120 ptr=0x08171120 end=0x08171177 len=87
  0000:  02 01 02 65 07 0a 01 00  04 00 04 00 a0 49 30 47   ...e.........I0G
  0010:  04 18 31 2e 33 2e 36 2e  31 2e 34 2e 31 2e 34 32   ..1.3.6.1.4.1.42
  0020:  30 33 2e 31 2e 39 2e 31  2e 33 01 01 ff 04 28 30   03.1.9.1.3....(0
  0030:  26 04 24 63 73 6e 3d 32  30 30 34 30 34 31 36 31   &.$csn=200404161
  0040:  35 34 34 30 32 5a 23 30  30 30 30 30 31 23 30 30   54402Z#000001#00
  0050:  23 30 30 30 30 30 30                               #000000
ldap_read: message type search-result msgid 2, original id 2
ber_scanf fmt ({iaa) ber:
ber_dump: buf=0x08171120 ptr=0x08171123 end=0x08171177 len=84
  0000:  65 07 0a 01 00 04 00 04  00 a0 49 30 47 04 18 31   e.........I0G..1
  0010:  2e 33 2e 36 2e 31 2e 34  2e 31 2e 34 32 30 33 2e   .3.6.1.4.1.4203.
  0020:  31 2e 39 2e 31 2e 33 01  01 ff 04 28 30 26 04 24   1.9.1.3....(0&.$
  0030:  63 73 6e 3d 32 30 30 34  30 34 31 36 31 35 34 34   csn=200404161544
  0040:  30 32 5a 23 30 30 30 30  30 31 23 30 30 23 30 30   02Z#000001#00#00
  0050:  30 30 30 30                                        0000
ber_scanf fmt ({iaa}) ber:
ber_dump: buf=0x08171120 ptr=0x08171123 end=0x08171177 len=84
  0000:  65 07 0a 01 00 04 00 04  00 a0 49 30 47 04 18 31   e.........I0G..1
  0010:  2e 33 2e 36 2e 31 2e 34  2e 31 2e 34 32 30 33 2e   .3.6.1.4.1.4203.
  0020:  31 2e 39 2e 31 2e 33 01  01 ff 04 28 30 26 04 24   1.9.1.3....(0&.$
  0030:  63 73 6e 3d 32 30 30 34  30 34 31 36 31 35 34 34   csn=200404161544
  0040:  30 32 5a 23 30 30 30 30  30 31 23 30 30 23 30 30   02Z#000001#00#00
  0050:  30 30 30 30                                        0000
new result:  res_errno: 0, res_error: <>, res_matched: <>
read1msg:  0 new referrals
read1msg:  mark request completed, id = 2
request 2 done
res_errno: 0, res_error: <>, res_matched: <>
ldap_free_request (origid 2, msgid 2)
ldap_free_connection
ldap_free_connection: refcnt 1
ldap_parse_result
ber_scanf fmt ({iaa) ber:
ber_dump: buf=0x08171120 ptr=0x08171123 end=0x08171177 len=84
  0000:  65 07 0a 01 00 04 00 04  00 a0 49 30 47 04 18 31   e.........I0G..1
  0010:  2e 33 2e 36 2e 31 2e 34  2e 31 2e 34 32 30 33 2e   .3.6.1.4.1.4203.
  0020:  31 2e 39 2e 31 2e 33 01  01 ff 04 28 30 26 04 24   1.9.1.3....(0&.$
  0030:  63 73 6e 3d 32 30 30 34  30 34 31 36 31 35 34 34   csn=200404161544
  0040:  30 32 5a 23 30 30 30 30  30 31 23 30 30 23 30 30   02Z#000001#00#00
  0050:  30 30 30 30                                        0000
ber_scanf fmt ({a) ber:
ber_dump: buf=0x08171120 ptr=0x0817112e end=0x08171177 len=73
  0000:  30 47 04 18 31 2e 33 2e  36 2e 31 2e 34 2e 31 2e   0G..1.3.6.1.4.1.
  0010:  34 32 30 33 2e 31 2e 39  2e 31 2e 33 01 01 ff 04   4203.1.9.1.3....
  0020:  28 30 26 04 24 63 73 6e  3d 32 30 30 34 30 34 31   (0&.$csn=2004041
  0030:  36 31 35 34 34 30 32 5a  23 30 30 30 30 30 31 23   6154402Z#000001#
  0040:  30 30 23 30 30 30 30 30  30                        00#000000
ber_scanf fmt (b) ber:
ber_dump: buf=0x08171120 ptr=0x0817114a end=0x08171177 len=45
  0000:  01 01 ff 04 28 30 26 04  24 63 73 6e 3d 32 30 30   ....(0&.$csn=200
  0010:  34 30 34 31 36 31 35 34  34 30 32 5a 23 30 30 30   40416154402Z#000
  0020:  30 30 31 23 30 30 23 30  30 30 30 30 30            001#00#000000
ber_scanf fmt (o) ber:
ber_dump: buf=0x08171120 ptr=0x0817114d end=0x08171177 len=42
  0000:  04 28 30 26 04 24 63 73  6e 3d 32 30 30 34 30 34   .(0&.$csn=200404
  0010:  31 36 31 35 34 34 30 32  5a 23 30 30 30 30 30 31   16154402Z#000001
  0020:  23 30 30 23 30 30 30 30  30 30                     #00#000000
ber_scanf fmt (}) ber:
ber_dump: buf=0x08171120 ptr=0x08171177 end=0x08171177 len=0

ber_scanf fmt ({) ber:
ber_dump: buf=0x081711a8 ptr=0x081711a8 end=0x081711d0 len=40
  0000:  30 26 04 24 63 73 6e 3d  32 30 30 34 30 34 31 36   0&.$csn=20040416
  0010:  31 35 34 34 30 32 5a 23  30 30 30 30 30 31 23 30   154402Z#000001#0
  0020:  30 23 30 30 30 30 30 30                            0#000000
ber_scanf fmt (m) ber:
ber_dump: buf=0x081711a8 ptr=0x081711aa end=0x081711d0 len=38
  0000:  04 24 63 73 6e 3d 32 30  30 34 30 34 31 36 31 35   .$csn=2004041615
  0010:  34 34 30 32 5a 23 30 30  30 30 30 31 23 30 30 23   4402Z#000001#00#
  0020:  30 30 30 30 30 30                                  000000
ber_scanf fmt (}) ber:
ber_dump: buf=0x081711a8 ptr=0x081711d0 end=0x081711d0 len=0

ldap_msgfree
ldap_unbind
ldap_free_connection
ldap_send_unbind
ber_flush: 7 bytes to sd 11
  0000:  30 05 02 01 03 42 00                               0....B.
ldap_write: want=7, written=7
  0000:  30 05 02 01 03 42 00                               0....B.
ldap_free_connection: actually freed


-- 
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/IT d- s+:+() a- C+++ UBL+++$ P+ L+++ E--- W++ N+ o++ K- w---
O+ M+ V- PS+ PE+ Y++ PGP+>+++ t+ 5 X+$ R- tv-- b+++ DI D++>+++
G++ e- h+(++) !r !z
------END GEEK CODE BLOCK------