Sun Java System Directory Server 5.2 CLI tips: disabling a replication agreement
In case you are to perform an upgrade, a useful thing to have is a CLI way to disable and enable a replication agreement. Here’s how to do it:
- create a LDIF file named disableAgreement.ldif which would modify the replication agreement:
dn: cn=AGREEMENT_NAME, cn=replica, cn=SUFFIX, cn=mapping tree, cn=config
changetype: modify
add: ds5AgreementEnable
ds5AgreementEnable: off
- import the file:
ldapmodify -h HOST -p PORT -D rootDN -w password -f disableAgreement.ldif
To enable it:
- create a new file, enableAgreement.ldif with the following contents:
dn: cn=AGREEMENT_NAME, cn=replica, cn=SUFFIX, cn=mapping tree, cn=config
changetype: modify
replace: ds5AgreementEnable
ds5AgreementEnable: on
- import the file
ldapmodify -h HOST -p PORT -D rootDN -w password -f disableAgreement.ldif


Poslednji komentari