Arhiva

Arhiva za kategoriju ‘IdM’

Sun Java System Directory Server 5.2 CLI tips: disabling a replication agreement

6. oktobar, 2009. N4A L Ostavite komentar

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:IT, IdM Oznake:, , , ,

Sun Java System Directory Server 5.2 CLI tips: adding a new suffix

17. avgust, 2009. N4A L Ostavite komentar

Two years ago I have started a series of articles regarding manipulating Sun Java System Directory Server 5.2 from the command line. This article continues the series and describes the process of adding a new suffix and database to the installation via LDIF. Pročitaj više…

Kategorije:IT, IdM Oznake:, , ,