https://bugs.openldap.org/show_bug.cgi?id=9707
Issue ID: 9707 Summary: Documentation synchronisation ODSEE --> openldap Product: OpenLDAP Version: 2.5.4 Hardware: All OS: All Status: UNCONFIRMED Keywords: needs_review Severity: normal Priority: --- Component: documentation Assignee: bugs@openldap.org Reporter: laurent.revillion@icloud.com Target Milestone: ---
There is no documentation about the synchronisation between ODSEE and Openldap 2.5.
Will there be one?
https://bugs.openldap.org/show_bug.cgi?id=9707
--- Comment #1 from Howard Chu hyc@openldap.org --- (In reply to Laurent Revillion from comment #0)
There is no documentation about the synchronisation between ODSEE and Openldap 2.5.
Will there be one?
Follow the examples in test072 and test075 in the test suite. The test suite is documentation.
https://bugs.openldap.org/show_bug.cgi?id=9707
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |2.7.0 Keywords|needs_review |
--- Comment #2 from Quanah Gibson-Mount quanah@openldap.org --- Add to admin guide in 2.7, use test suite as an example.
Ensure both ODSEE and AD replication are documented.
https://bugs.openldap.org/show_bug.cgi?id=9707
--- Comment #3 from Laurent Revillion laurent.revillion@icloud.com --- Do you have the test version of ODSEE that you have make the tests ? Thanks .
https://bugs.openldap.org/show_bug.cgi?id=9707
--- Comment #4 from Laurent Revillion laurent.revillion@icloud.com --- Hello,
I have a malfunction problem when syncing ODSEE to Openldap 2.5.
I am looking at the test scripts, it seems to me to be operated as instructed, and I have an error.
Can you help me ?
Thank you
On ODSEE i have :
[18/Oct/2021:11:34:20 +0200] conn=4 op=0 msgId=1 - BIND dn="cn=directory manager" method=128 version=3 [18/Oct/2021:11:34:20 +0200] conn=4 op=0 msgId=1 - RESULT err=0 tag=97 nentries=0 etime=0 dn="cn=directory manager" [18/Oct/2021:11:34:20 +0200] conn=4 op=1 msgId=0 - RESULT err=80 tag=120 nentries=0 etime=0 [18/Oct/2021:11:34:20 +0200] conn=4 op=-1 msgId=-1 - closing from ::1:37764 - A1 - Client aborted connection - [18/Oct/2021:11:34:20 +0200] conn=4 op=-1 msgId=-1 - closed.
On openldap 2.5 ( with -d 65) i have :
616d3f9c.2e975655 0x7fd8dfc9d700 ldap_parse_result 616d3f9c.2e976088 0x7fd8dfc9d700 ber_scanf fmt ({iAA) ber: 616d3f9c.2e9769b6 0x7fd8dfc9d700 ber_scanf fmt (}) ber: 616d3f9c.2e9771bd 0x7fd8dfc9d700 ldap_msgfree 616d3f9c.2e97ec2f 0x7fd8dfc9d700 mdb_dn2entry("dc=ici,dc=fr") 616d3f9c.2e98075b 0x7fd8dfc9d700 => mdb_dn2id("dc=ici,dc=fr") 616d3f9c.2e982359 0x7fd8dfc9d700 <= mdb_dn2id: got id=0x1 616d3f9c.2e984563 0x7fd8dfc9d700 => mdb_entry_decode: 616d3f9c.2e985bbb 0x7fd8dfc9d700 <= mdb_entry_decode 616d3f9c.2e9874bc 0x7fd8dfc9d700 mdb_entry_get: rc=16 slapd: memory.c:705: ber_bvreplace_x: Assertion `!((src)->bv_val == ((void *)0))' failed. ./start-consumer1.sh : ligne 4 : 23193 Abandon /opt/symas/lib/slapd -d 65 -u ldap -g ldap -h "ldap://:2389/" -f /opt/symas/config/static-test/slapd-dsee-consumer1.conf
https://bugs.openldap.org/show_bug.cgi?id=9707
--- Comment #5 from Quanah Gibson-Mount quanah@openldap.org --- Please provide a backtrace from gdb
https://bugs.openldap.org/show_bug.cgi?id=9707
--- Comment #6 from Laurent Revillion laurent.revillion@icloud.com --- Here is what I did to see the bug:
I prepare ODSEE
# cd /opt # echo password > dseepw # /opt/dsee7/bin/dsadm create -p 1389 -w /opt/dseepw /opt/inst1-dsee # /opt/dsee7/bin/dsadm start /opt/inst1-dsee # /opt/dsee7/bin/dsconf create-suffix -c -p 1389 -w /opt/dseepw dc=example,dc=com # /opt/dsee7/bin/dsconf set-server-prop -p 1389 -w /opt/dseepw moddn-enabled:on # /opt/dsee7/bin/dsconf set-server-prop -p 1389 -w /opt/dseepw retro-cl-enabled:on # /opt/dsee7/bin/dsadm restart /opt/inst1-dsee
Directory Server instance '/opt/inst1-dsee' stopped Directory Server instance '/opt/inst1-dsee' started: pid=98952
I add the object
# ldapadd -x -D "cn=directory manager" -w password -H ldap://localhost:1389 <test-dirsync-nocp.ldif adding new entry "ou=People,dc=example,dc=com"
adding new entry "ou=People,dc=example,dc=com"
adding new entry "ou=Groups,dc=example,dc=com"
adding new entry "ou=Alumni Association,ou=People,dc=example,dc=com"
.... ....
I install Symas Openldap 2.6
# wget -q https://repo.symas.com/configs/SOLDAP/rhel7/release26.repo -O /etc/yum.repos.d/soldap-release26.repo # yum install symas-openldap-clients symas-openldap-servers
I make a directory for the test
# mkdir -p /opt/symas/config/static-test
I make a static config of openldap
# vi /opt/symas/config/static-test/slapd-dsee-consumer1.conf ------------- include /opt/symas/etc/openldap/schema/core.schema include /opt/symas/etc/openldap/schema/cosine.schema include /opt/symas/etc/openldap/schema/inetorgperson.schema include /opt/symas/etc/openldap/schema/openldap.schema include /opt/symas/etc/openldap/schema/nis.schema include /opt/symas/etc/openldap/schema/dsee.schema
pidfile /var/symas/run/slapd.pid argsfile /var/symas/run/slapd.args
modulepath /opt/symas/lib/openldap moduleload back_mdb.la
####################################################################### # consumer database definitions
######################################################################
database mdb suffix "dc=example,dc=com" rootdn "cn=Manager,dc=example,dc=com" rootpw password directory /var/symas/openldap-data1 index objectClass eq index cn,sn,uid pres,eq,sub index entryUUID,entryCSN eq
# Don't change syncrepl spec yet syncrepl rid=1 provider=ldap://127.0.0.1:1389 binddn="cn=Directory Manager" bindmethod=simple credentials=password searchbase="dc=example,dc=com" filter="(objectClass=*)" schemachecking=off scope=sub type=refreshOnly logbase="cn=changelog" syncdata=changelog retry="10 +" interval=00:00:00:10
updateref ldap://127.0.0.1:1389
database monitor ---------------
I make a start file
# vi /opt/symas/config/static-test/start-consumer1.sh
---------- #!/bin/bash # # /opt/symas/lib/slapd -d -1 -u ldap -g ldap -h "ldap://:5389/" -f /opt/symas/config/static-test/slapd-dsee-consumer1.conf -----------
I make ok for start
# chmod 755 /opt/symas/config/static-test/start-consumer1.sh
I start
# /opt/symas/config/static-test/start-consumer1.sh
And i have the error :
.... 619d0665.22c97420 0x7f8f97074700 ldap_find_request_by_msgid: msgid 1, lr 0x7f8f880010a0 lr->lr_refcnt = 1 619d0665.22c9846f 0x7f8f97074700 read1msg: ld 0x7f8f88000920 msgid 1 message type bind 619d0665.22c990e8 0x7f8f97074700 ber_scanf fmt ({eAA) ber: 619d0665.22c99c4d 0x7f8f97074700 ber_dump: buf=0x7f8f880011c0 ptr=0x7f8f880011c3 end=0x7f8f880011cc len=9 619d0665.22c9a6be 0x7f8f97074700 0000: 61 07 0a 01 00 04 00 04 00 a........ 619d0665.22c9b810 0x7f8f97074700 read1msg: ld 0x7f8f88000920 0 new referrals 619d0665.22c9c321 0x7f8f97074700 read1msg: mark request completed, ld 0x7f8f88000920 msgid 1 619d0665.22c9ce67 0x7f8f97074700 request done: ld 0x7f8f88000920 msgid 1 619d0665.22c9da54 0x7f8f97074700 res_errno: 0, res_error: <>, res_matched: <> 619d0665.22c9e708 0x7f8f97074700 ldap_return_request: lrx 0x7f8f880010a0, lr 0x7f8f880010a0 619d0665.22c9f2e7 0x7f8f97074700 ldap_return_request: lrx->lr_msgid 1, lrx->lr_refcnt is now 0, lr is still present 619d0665.22ca0044 0x7f8f97074700 ldap_free_request (origid 1, msgid 1) 619d0665.22ca1233 0x7f8f97074700 ldap_free_request_int: lr 0x7f8f880010a0 msgid 1 removed 619d0665.22ca1f9b 0x7f8f97074700 ldap_do_free_request: asked to free lr 0x7f8f880010a0 msgid 1 refcnt 0 619d0665.22ca3c3e 0x7f8f97074700 ldap_parse_result 619d0665.22ca4b27 0x7f8f97074700 ber_scanf fmt ({iAA) ber: 619d0665.22ca56da 0x7f8f97074700 ber_dump: buf=0x7f8f880011c0 ptr=0x7f8f880011c3 end=0x7f8f880011cc len=9 619d0665.22ca6143 0x7f8f97074700 0000: 61 07 0a 01 00 04 00 04 00 a........ 619d0665.22ca6f13 0x7f8f97074700 ber_scanf fmt (}) ber: 619d0665.22ca7a55 0x7f8f97074700 ber_dump: buf=0x7f8f880011c0 ptr=0x7f8f880011cc end=0x7f8f880011cc len=0 619d0665.22ca8496 0x7f8f97074700 619d0665.22ca91f6 0x7f8f97074700 ldap_msgfree 619d0665.22cad581 0x7f8f97074700 => mdb_entry_get: ndn: "dc=example,dc=com" 619d0665.22cae255 0x7f8f97074700 => mdb_entry_get: oc: "(null)", at: "lastChangeNumber" 619d0665.22cb4910 0x7f8f97074700 mdb_dn2entry("dc=example,dc=com") 619d0665.22cb6fbf 0x7f8f97074700 => mdb_dn2id("dc=example,dc=com") 619d0665.22cb9096 0x7f8f97074700 <= mdb_dn2id: get failed: MDB_NOTFOUND: No matching key/data pair found (-30798) 619d0665.22cb9d31 0x7f8f97074700 => mdb_entry_get: cannot find entry: "dc=example,dc=com" 619d0665.22cbb59c 0x7f8f97074700 mdb_entry_get: rc=32 619d0665.22cbcb17 0x7f8f97074700 do_syncrep1: rid=002 starting refresh (sending cookie=(null)) slapd: memory.c:705: ber_bvreplace_x: Assertion `!((src)->bv_val == ((void *)0))' failed. ./start-consumer1.sh : ligne 4 : 7691 Abandon /opt/symas/lib/slapd -d -1 -u ldap -g ldap -h "ldap://:5389/" -f /opt/symas/config/static-test/slapd-dsee-consumer1.conf
In the access log in odsee i have :
[23/Nov/2021:16:27:11 +0100] conn=3 op=-1 msgId=-1 - fd=25 slot=25 LDAP connection from 127.0.0.1:38188 to 127.0.0.1 [23/Nov/2021:16:27:11 +0100] conn=3 op=0 msgId=1 - BIND dn="cn=directory manager" method=128 version=3 [23/Nov/2021:16:27:11 +0100] conn=3 op=0 msgId=1 - RESULT err=0 tag=97 nentries=0 etime=0 dn="cn=directory manager" [23/Nov/2021:16:27:11 +0100] conn=3 op=1 msgId=0 - RESULT err=80 tag=120 nentries=0 etime=0 [23/Nov/2021:16:27:11 +0100] conn=3 op=-1 msgId=-1 - closing from 127.0.0.1:38188 - A1 - Client aborted connection - [23/Nov/2021:16:27:11 +0100] conn=3 op=-1 msgId=-1 - closed.
thanks a lot for your help
https://bugs.openldap.org/show_bug.cgi?id=9707
--- Comment #7 from Laurent Revillion laurent.revillion@icloud.com --- Created attachment 857 --> https://bugs.openldap.org/attachment.cgi?id=857&action=edit backtrace from gdb
https://bugs.openldap.org/show_bug.cgi?id=9707
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |needs_review
https://bugs.openldap.org/show_bug.cgi?id=9707
--- Comment #8 from Quanah Gibson-Mount quanah@openldap.org --- You need to install the debug packages for the backtrace to be useful.
https://bugs.openldap.org/show_bug.cgi?id=9707
--- Comment #9 from Laurent Revillion laurent.revillion@icloud.com --- Created attachment 858 --> https://bugs.openldap.org/attachment.cgi?id=858&action=edit backtrace form gdb with package debuginfo
https://bugs.openldap.org/show_bug.cgi?id=9707
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|bugs@openldap.org |hyc@openldap.org Keywords|needs_review |
https://bugs.openldap.org/show_bug.cgi?id=9707
Howard Chu hyc@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |TEST
--- Comment #10 from Howard Chu hyc@openldap.org --- fixed in master
https://bugs.openldap.org/show_bug.cgi?id=9707
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|2.7.0 |2.5.10
--- Comment #11 from Quanah Gibson-Mount quanah@openldap.org --- head:
• bb17e23f by Howard Chu at 2021-12-09T17:40:35+00:00 ITS#9707 syncrepl: don't set lastCookie if none present
• 453799eb by Howard Chu at 2021-12-09T17:51:39+00:00 ITS#9707 also: don't log null cookie
https://bugs.openldap.org/show_bug.cgi?id=9707
--- Comment #12 from Quanah Gibson-Mount quanah@openldap.org --- RE26:
• 3926c013 by Howard Chu at 2021-12-13T16:56:50+00:00 ITS#9707 syncrepl: don't set lastCookie if none present
• 3492c2a0 by Howard Chu at 2021-12-13T16:56:55+00:00 ITS#9707 also: don't log null cookie
https://bugs.openldap.org/show_bug.cgi?id=9707
--- Comment #13 from Quanah Gibson-Mount quanah@openldap.org --- RE25:
• cf1d2d92 by Howard Chu at 2021-12-13T17:12:42+00:00 ITS#9707 syncrepl: don't set lastCookie if none present
• 188d5c33 by Howard Chu at 2021-12-13T17:12:47+00:00 ITS#9707 also: don't log null cookie
https://bugs.openldap.org/show_bug.cgi?id=9707
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |VERIFIED Resolution|TEST |FIXED