LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   ldap replication master - slave (https://www.linuxquestions.org/questions/linux-software-2/ldap-replication-master-slave-248682/)

jadid 10-29-2004 05:42 AM

ldap replication master - slave
 
hi all linux gurus


i need your help on replication. i have configure a master and a slave ldap server. then master n slave can communicate using slurpd, how ever every time i insert data into master it won't replicate into slave.

this is the log:

ldap_read: want=1, got=1
0000: 30 0
ldap_read: want=1, got=1
0000: 22 "
ldap_read: want=34, got=34
0000: 02 01 01 60 1d 02 01 03 04 10 63 6e 3d 6d 61 6e ...`......cn=man
0010: 61 67 65 72 32 2c 63 3d 4d 59 80 06 73 65 63 72 ager2,c=MY..secr
0020: 65 74 et
ber_get_next: tag 0x30 len 34 contents:
ber_dump: buf=0x08195a58 ptr=0x08195a58 end=0x08195a7a len=34
0000: 02 01 01 60 1d 02 01 03 04 10 63 6e 3d 6d 61 6e ...`......cn=man
0010: 61 67 65 72 32 2c 63 3d 4d 59 80 06 73 65 63 72 ager2,c=MY..secr
0020: 65 74 et
ber_get_next
ldap_read: want=1 error=Resource temporarily unavailable
ber_get_next on fd 7 failed errno=11 (Resource temporarily unavailable)
do_bind
ber_scanf fmt ({iat) ber:
ber_dump: buf=0x08195a58 ptr=0x08195a5b end=0x08195a7a len=31
0000: 60 1d 02 01 03 04 10 63 6e 3d 6d 61 6e 61 67 65 `......cn=manage
0010: 72 32 2c 63 3d 4d 59 80 06 73 65 63 72 65 74 r2,c=MY..secret
ber_scanf fmt (o}) ber:
ber_dump: buf=0x08195a58 ptr=0x08195a72 end=0x08195a7a len=8
0000: 80 06 73 65 63 72 65 74 ..secret
do_bind: version=3 dn="cn=manager2,c=MY" method=128
==> ldbm_back_bind: dn: cn=manager2,c=MY
dn2entry_r: dn: "CN=MANAGER2,C=MY"
=> dn2id( "CN=MANAGER2,C=MY" )
=> ldbm_cache_open( "dn2id.dbb", 9, 600 )
<= ldbm_cache_open (cache 0)
<= dn2id NOID
dn2entry_r: dn: "C=MY"
=> dn2id( "C=MY" )
====> cache_find_entry_dn2id("C=MY"): 10 (1 tries)
<= dn2id 10 (in cache)
=> id2entry_r( 10 )
====> cache_find_entry_id( 10 ) "c=MY" (found) (1 tries)
<= id2entry_r( 10 ) 0x819eb18 (cache)
====> cache_return_entry_r( 10 ): returned (0)
send_ldap_result: conn=1 op=0 p=3
send_ldap_result: 49::
send_ldap_response: msgid=1 tag=97 err=49
ber_flush: 14 bytes to sd 7
0000: 30 0c 02 01 01 61 07 0a 01 31 04 00 04 00 0....a...1....
ldap_write: want=14, written=14
0000: 30 0c 02 01 01 61 07 0a 01 31 04 00 04 00 0....a...1....
daemon: select: listen=6 active_threads=1 tvp=NULL
daemon: activity on 1 descriptors
daemon: activity on: 7r
daemon: read activity on 7
connection_get(7)
connection_get(7): got connid=1
connection_read(7): checking for input on id=1
ber_get_next
ldap_read: want=1, got=1
0000: 30 0
ldap_read: want=1, got=1
0000: 05 .
ldap_read: want=5, got=5
0000: 02 01 02 42 00 ...B.
ber_get_next: tag 0x30 len 5 contents:
ber_dump: buf=0x0819de48 ptr=0x0819de48 end=0x0819de4d len=5
0000: 02 01 02 42 00 ...B.
ber_get_next
ldap_read: want=1, got=0

ber_get_next on fd 7 failed errno=0 (Success)
connection_read(7): input error=-2 id=1, closing.
connection_closing: readying conn=1 sd=7 for close
connection_close: deferring conn=1 sd=7
do_unbind
connection_resched: attempting closing conn=1 sd=7
connection_close: conn=1 sd=7
daemon: removing 7
daemon: select: listen=6 active_threads=1 tvp=NULL
daemon: activity on 1 descriptors
daemon: select: listen=6 active_threads=0 tvp=NULL


jitender.rajpal 10-18-2006 08:42 AM

hi,

can u send the config files ?

sotob 10-18-2006 12:25 PM

A few things to try as well:

Stop LDAP on the primary and on your secondary run an ldapsearch. Do you see good output?

There is an option that you give to test replication on the spot, but I totally forget the syntax, but something that you look into.


All times are GMT -5. The time now is 01:43 PM.