I recently tried to setup a slave replica using fractional replication. The slave replica works, but the attributes which I had intended to exclude are still being replicated.
The replication agreement on the supplier includes:
% ldapsearch -b cn=config '(cn=Slave)' nsds5replicatedattributelist dn: cn=Slave,... nsds5replicatedattributelist: (objectClass=*) $ EXCLUDE passwordAllowChangeTim e passwordExpirationTime passwordGraceUserTime shadowLastChange passwordHisto ry
This occurs with RHEL 6.2/x86_64 and 389-ds-base-1.2.10.4-1.el6.
Log output when shadowLastChange is changed on supplier repl.log
I could not reproduce the problem. My test steps are as follows:
This is my fractional replication setup in the agreement: {{{ dn: cn=agreement,cn=replica,cn=dc\3Dexample\2Cdc\3Dcom,cn=mapping tree,cn=config nsDS5ReplicatedAttributeList: (objectclass=*) $ EXCLUDE passwordAllowChangeTime passwordExpirationTime }}}
I created subtree password policy at the suffix level under dc=example,dc=com.
Added passwordAllowChangeTime to the password policy container on Master 1: {{{ $ ldapmodify -x -h localhost -p -D 'cn=directory manager' -w password dn: cn=cn\3DnsPwPolicyEntry\2Cdc\3Dexample\2Cdc\3Dcom,cn=nsPwPolicyContainer,dc=example,dc=com changetype: modify replace: passwordAllowChangeTime passwordAllowChangeTime: 20120425120000Z }}}
Search the attribute value on Master 1 and the attribute-value is returned: {{{ $ ldapsearch -LLLx -h localhost -p -D 'cn=directory manager' -w password -b 'dc=example,dc=com' "(&(objectclass=ldapsubentry)(objectclass=passwordpolicy))" passwordAllowChangeTime dn: cn=cn\3DnsPwPolicyEntry\2Cdc\3Dexample\2Cdc\3Dcom,cn=nsPwPolicyContainer,d c=example,dc=com passwordAllowChangeTime: 20120425120000Z }}}
Search the attribute value on Master 2 and the attribute-value is not returned: {{{ $ ldapsearch -LLLx -h localhost -p -D 'cn=directory manager' -w password -b 'dc=example,dc=com' "(&(objectclass=ldapsubentry)(objectclass=passwordpolicy))" passwordAllowChangeTime dn: cn=cn\3DnsPwPolicyEntry\2Cdc\3Dexample\2Cdc\3Dcom,cn=nsPwPolicyContainer,d c=example,dc=com $ }}}
If it is different from your attempt, please share your reproducer with us. Thanks.
set default ticket origin to Community
ping - still need info - will close because we cannot reproduce
Added initial screened field value.
Metadata Update from @nhosoi: - Issue assigned to nhosoi - Issue set to the milestone: N/A
389-ds-base is moving from Pagure to Github. This means that new issues and pull requests will be accepted only in 389-ds-base's github repository.
This issue has been cloned to Github and is available here: - https://github.com/389ds/389-ds-base/issues/330
If you want to receive further updates on the issue, please navigate to the github issue and click on subscribe button.
subscribe
Thank you for understanding. We apologize for all inconvenience.
Metadata Update from @spichugi: - Issue close_status updated to: wontfix (was: Invalid)