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 th 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.
I think that i have a option in ODSEE but i don't know wich one .
Thanks if you can help me.