Dear Team,

 

I’m facing a weird issue :

 

My env is :

root@repnode:~#

ldap-utils/focal-security,focal-updates,now 2.4.49+dfsg-2ubuntu1.9 amd64 [installed,automatic]

libldap-2.4-2/focal-security,focal-updates,now 2.4.49+dfsg-2ubuntu1.9 amd64 [installed,automatic]

libldap-common/focal-security,focal-updates,now 2.4.49+dfsg-2ubuntu1.9 all [installed,automatic]

sssd-ldap/focal-security,focal-updates,now 2.2.3-3ubuntu0.12 amd64 [installed,automatic]

root@repnode:~# lsb_release -a

No LSB modules are available.

Distributor ID: Ubuntu

Description:    Ubuntu 20.04.6 LTS

Release:        20.04

Codename:       focal

root@repnode:~#

 

Earlier, I was using two replications, without any filter and attrs..both were working fine..

 

But I got the requirement to select specific attributes from the master node. I applied filters and attrs based on the requirement. ( I Checked it in ldapsearch and it was working fine )

( searchbase in both replications are different )

 

Replication highlighted in green is working fine..

 

But the replication highlighted in red is not  working when applied filters , attrs or both ( without filters and attrs , it will replicating full data of that subtree ).

 

syncrepl rid=AAA

  provider=ldaps://master.node:636/

  bindmethod=simple

  filter="(objectClass=posixAccount)"

  attrs="cn,uid,x1sshPubKey,x2sshPubKey,uidNumber,gidNumber,homeDirectory,gecos,loginShell,description,sshPublicKey"

  binddn="cn=rep,dc=di-diod,dc=tech"

  credentials=XX

  searchbase="ou=people,dc=di-diod,dc=tech"

  scope=sub

  schemachecking=on

  type=refreshOnly

  interval=00:00:00:01

  retry="30 5 300 3"

 

# Replication source

# The replication source must declare before mirrormode

syncrepl rid=BBB

  provider=ldaps://master.node:636/

  bindmethod=simple

  binddn="cn=rep,dc=di-diod,dc=tech"

  credentials=XX

  searchbase="ou=groups,dc=di-diod,dc=tech"

  filter="(objectClass=posixGroup)"

  attrs="cn,gidNumber,memberUid"

  scope=sub

  schemachecking=on

  type=refreshOnly

  interval=00:00:00:01

  retry="30 5 300 3"

 

I’m wondering, what I’ve done wrong here..Please help me for this issue.

 

Warm Regards,

Ram Prasad Sharma

+91-9871192778


Orange Restricted

____________________________________________________________________________________________________________
Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc
pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler
a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration,
Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.

This message and its attachments may contain confidential or privileged information that may be protected by law;
they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and delete this message and its attachments.
As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified.
Thank you.