Početak > IdM, IT > Sun Java System Directory Server 5.2 CLI tips: disabling a replication agreement

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

Kategorije:IdM, IT Oznake:, , , ,
  1. Nema komentara.
  1. Nema povratnih veza.

Vaš komentar (postoji samo jedno pravilo - komentar koji nema veze sa tekstom neće biti objavljen):

Popunite detalje ispod ili pritisnite na ikonicu da biste se prijavili:

Gravatar
WordPress.com logo

Molimo vas da se prijavite na WordPress.com da biste objavili komentar na svom blogu.

Slika na Tviteru

Komentarišet koristeći svoj Twitter nalog. Odjavite se / Promeni )

Fejsbukova fotografija

Komentarišet koristeći svoj Facebook nalog. Odjavite se / Promeni )

Povezivanje sa %s

Prati

Dobijte svaki novi članak dostavljen u vaše poštansko sanduče.

Pridružite se 176 drugih pratioca