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

replication / ERROR: Referral [auf Viren überprüft]



Hi!

I start two slapd on one server, one master, one slave.
The slave starts with: slapd -h ldap://rzhs065:666
Problem: Entries are not replicated to the slave.

slave - conf
---------------------------------------
updatedn                "cn=repmgr,ou=foo,o=bar,c=de"
updateref               ldap://rzhs065:666
---------------------------------------
Entry exists on slave, login is accepted.

master - conf
---------------------------------------
replogfile               /usr/local/openldap1/var/replog-master
replica                 uri=ldap://rzhs065:666
                        binddn="uid=repmgr,ou=foo,o=bar,c=de"
                        bindmethod=simple
                        credentials=+++++
---------------------------------------

rej.log:

ERROR: Referral
replica: rzhs065:666
time: 1105540344.0
dn: uid=1-bla,ou=foo,o=bar,c=de
changetype: add
uid: 1-bla
userPassword:: Ymxh
objectClass: top
objectClass: account
objectClass: simpleSecurityObject
structuralObjectClass: account
entryUUID: 85839408-f8f2-1028-971b-9a0cf0d3ce21
creatorsName: cn=admin,ou=foo,o=bar,c=de
createTimestamp: 20050112143224Z
entryCSN: 20050112143224Z#000001#00#000000
modifiersName: cn=admin,ou=foo,o=bar,c=de
modifyTimestamp: 20050112143224Z
---------------------------------------

Slave ends with:
---------------------------------------
<= get_ctrls: n=1 rc=0 err=""
conn=2 op=5 ADD dn="uid=1-bla,ou=foo,o=bar,c=de"
ldap_url_parse_ext(ldap://rzhs065:666)
send_ldap_result: conn=2 op=5 p=3
send_ldap_result: err=10 matched="" text=""
send_ldap_result: referral="ldap://rzhs065:666/uid=1-bla,ou=foo,o=bar,c=de";
send_ldap_response: msgid=6 tag=105 err=10
send_ldap_response: ref="ldap://rzhs065:666/uid=1-bla,ou=foo,o=bar,c=de";
ber_flush: 77 bytes to sd 10
0000: 30 4b 02 01 06 69 46 0a 01 0a 04 00 04 00 a3 3d 0K...iF........=
0010: 04 3b 6c 64 61 70 3a 2f 2f 72 7a 68 73 30 36 35 .;ldap://rzhs065
0020: 3a 36 36 36 2f 75 69 64 3d 31 2d 62 6c 61 2c 6f :666/uid=1-bla,o
0030: 75 3d 73 74 65 75 65 72 2c 6f 3d 6e 69 65 64 65 u=foo,o=niede
0040: 72 73 61 63 68 73 65 6e 2c 63 3d 64 65 rsachsen,c=de
ldap_write: want=77, written=77
0000: 30 4b 02 01 06 69 46 0a 01 0a 04 00 04 00 a3 3d 0K...iF........=
0010: 04 3b 6c 64 61 70 3a 2f 2f 72 7a 68 73 30 36 35 .;ldap://rzhs065
0020: 3a 36 36 36 2f 75 69 64 3d 31 2d 62 6c 61 2c 6f :666/uid=1-bla,o
0030: 75 3d 73 74 65 75 65 72 2c 6f 3d 6e 69 65 64 65 u=foo,o=niede
0040: 72 73 61 63 68 73 65 6e 2c 63 3d 64 65 rsachsen,c=de
conn=2 op=5 RESULT tag=105 err=10 text=
---------------------------------------


Slurpd ends with:
---------------------------------------
ldap_read: want=8, got=8
0000: 30 4b 02 01 06 69 46 0a 0K...iF.
ldap_read: want=69, got=69
0000: 01 0a 04 00 04 00 a3 3d 04 3b 6c 64 61 70 3a 2f .......=.;ldap:/
0010: 2f 72 7a 68 73 30 36 35 3a 36 36 36 2f 75 69 64 /rzhs065:666/uid
0020: 3d 31 2d 62 6c 61 2c 6f 75 3d 73 74 65 75 65 72 =1-bla,ou=foo
0030: 2c 6f 3d 6e 69 65 64 65 72 73 61 63 68 73 65 6e ,o=bar
0040: 2c 63 3d 64 65 ,c=de
ber_get_next: tag 0x30 len 75 contents:
ber_dump: buf=0x2083e408 ptr=0x2083e408 end=0x2083e453 len=75
0000: 02 01 06 69 46 0a 01 0a 04 00 04 00 a3 3d 04 3b ...iF........=.;
0010: 6c 64 61 70 3a 2f 2f 72 7a 68 73 30 36 35 3a 36 ldap://rzhs065:6
0020: 36 36 2f 75 69 64 3d 31 2d 62 6c 61 2c 6f 75 3d 66/uid=1-bla,ou=
0030: 73 74 65 75 65 72 2c 6f 3d 6e 69 65 64 65 72 73 foo,o=nieders
0040: 61 63 68 73 65 6e 2c 63 3d 64 65 achsen,c=de
ldap_read: message type add msgid 6, original id 6
ber_scanf fmt ({iaa) ber:
ber_dump: buf=0x2083e408 ptr=0x2083e40b end=0x2083e453 len=72
0000: 69 46 0a 01 0a 04 00 04 00 a3 3d 04 3b 6c 64 61 iF........=.;lda
0010: 70 3a 2f 2f 72 7a 68 73 30 36 35 3a 36 36 36 2f p://rzhs065:666/
0020: 75 69 64 3d 31 2d 62 6c 61 2c 6f 75 3d 73 74 65 uid=1-bla,ou=ste
0030: 75 65 72 2c 6f 3d 6e 69 65 64 65 72 73 61 63 68 uer,o=niedersach
0040: 73 65 6e 2c 63 3d 64 65 sen,c=de
ldap_parse_result
ber_scanf fmt ({iaa) ber:
ber_dump: buf=0x2083e408 ptr=0x2083e40b end=0x2083e453 len=72
0000: 69 46 0a 01 0a 04 00 04 00 a3 3d 04 3b 6c 64 61 iF........=.;lda
0010: 70 3a 2f 2f 72 7a 68 73 30 36 35 3a 36 36 36 2f p://rzhs065:666/
0020: 75 69 64 3d 31 2d 62 6c 61 2c 6f 75 3d 73 74 65 uid=1-bla,ou=ste
0030: 75 65 72 2c 6f 3d 6e 69 65 64 65 72 73 61 63 68 uer,o=niedersach
0040: 73 65 6e 2c 63 3d 64 65 sen,c=de
ber_scanf fmt (v) ber:
ber_dump: buf=0x2083e408 ptr=0x2083e414 end=0x2083e453 len=63
0000: a3 3d 04 3b 6c 64 61 70 3a 2f 2f 72 7a 68 73 30 .=.;ldap://rzhs0
0010: 36 35 3a 36 36 36 2f 75 69 64 3d 31 2d 62 6c 61 65:666/uid=1-bla
0020: 2c 6f 75 3d 73 74 65 75 65 72 2c 6f 3d 6e 69 65 ,ou=foo,o=nie
0030: 64 65 72 73 61 63 68 73 65 6e 2c 63 3d 64 65 dersachsen,c=de
ber_scanf fmt (}) ber:
ber_dump: buf=0x2083e408 ptr=0x2083e453 end=0x2083e453 len=0


ldap_msgfree
Error: ldap_add_s failed adding "": uid=1-bla,ou=foo,o=bar,c=de
ldap_err2string
Error: ldap operation failed, data written to "/usr/local/openldap1/var/openldap-slurp/replica/rzhs065:666.rej"
---------------------------------------
The Entry reaches the slave - so it seem to me - but something did not succeed.
I tried to add a suffix-statement in the replica-statement (googled), but it changed nothing.
As you see from my last postings, I'm using two partition (on both servers) and try to replicate the root-partition.



Hans