Hi,

 

I am using a OpenLDAP 2.4.44 Multi master configuration with two slapd servers, master and replica using MDB backend. I got a problem in replicating when the data is added using slapadd.

I have two slapd with ports 2016 and 2017. slapd.conf file for both the servers are attached.

 

Scenario 1:

When an LDIF entry is added using ldapadd or deleted using ldapdelete, it gets replicated in the replica server correctly.

Below is the ldapsearch result om Master server:

GURKES254 linus> ldapsearch -h xx.xx.xx.xx -p 2016 -b "dc=my-domain,dc=com"  "ou=Test9"

# extended LDIF

#

# LDAPv3

# base <dc=my-domain,dc=com> with scope subtree

# filter: ou=Test9

# requesting: ALL

#

 

# Test9, people, my-domain.com

dn: ou=Test9,ou=people,dc=my-domain,dc=com

ou: Test9

objectClass: organizationalUnit

companyName: Test9Grp

 

# search result

search: 2

result: 0 Success

 

# numResponses: 2

# numEntries: 1

 

Below is the ldapsearch result om replica server:

GURKES254 linus> ldapsearch -h xx.xx.xx.xx -p 2017 -b "dc=my-domain,dc=com"  "ou=Test9"

# extended LDIF

#

# LDAPv3

# base <dc=my-domain,dc=com> with scope subtree

# filter: ou=Test9

# requesting: ALL

#

 

# Test9, people, my-domain.com

dn: ou=Test9,ou=people,dc=my-domain,dc=com

ou: Test9

objectClass: organizationalUnit

companyName: Test9Grp

 

# search result

search: 2

result: 0 Success

 

# numResponses: 2

# numEntries: 1

 

 

Scenario 2:

When an LDIF entry is imported using slapadd, it doesn’t get replicated in the replica server at all.

Below is the ldapsearch result om Master server:

GURKES254 linus> ldapsearch -h xx.xx.xx.xx -p 2016 -b "dc=my-domain,dc=com"  "ou=Test9"

# extended LDIF

#

# LDAPv3

# base <dc=my-domain,dc=com> with scope subtree

# filter: ou=Test9

# requesting: ALL

#

 

# Test9, people, my-domain.com

dn: ou=Test9,ou=people,dc=my-domain,dc=com

ou: Test9

objectClass: organizationalUnit

companyName: Test9Grp

 

# search result

search: 2

result: 0 Success

 

# numResponses: 2

# numEntries: 1

 

Below is the ldapsearch result om replica server:

GURKES254 linus> ldapsearch -h xx.xx.xx.xx -p 2017 -b "dc=my-domain,dc=com"  "ou=Test9"

# extended LDIF

#

# LDAPv3

# base <dc=my-domain,dc=com> with scope subtree

# filter: ou=Test9

# requesting: ALL

#

 

# search result

search: 2

result: 0 Success

 

# numResponses: 1

 

Please let me know in case any other information is required.

 

Br

Gurjot Kaur

 

"DISCLAIMER: This message is proprietary to Aricent and is intended solely for the use of the individual to whom it is addressed. It may contain privileged or confidential information and should not be circulated or used for any purpose other than for what it is intended. If you have received this message in error, please notify the originator immediately. If you are not the intended recipient, you are notified that you are strictly prohibited from using, copying, altering, or disclosing the contents of this message. Aricent accepts no responsibility for loss or damage arising from the use of the information transmitted by this email including damage from virus."