mercoledì 3 giugno 2015

OpenDJ Multi-Master Replication

dpkg -i opendj....
./setup



1- Enable:

./bin/dsreplication enable --host1 Host1 --port1 4444 --bindDN1 "cn=Directory Manager" --bindPassword1 pass --replicationPort1 8989 --host2 Host2 --port2 4444 --bindDN2 "cn=Directory Manager" --bindPassword2 pass --replicationPort2 8989 --adminUID admin --adminPassword pass --baseDN "dc=example,dc=com"

oppure: ./bin/dsreplication -> enable



2- Initialize:

./bin/dsreplication initialize --baseDN "dc=example,dc=com" --adminUID admin --adminPassword pass --hostSource Host1 --portSource 4444 --hostDestination Host2 --portDestination 4444 -X -n

oppure: ./bin/dsreplication-> initialize all


-----
..if everything's fine:

create new entry "o=Rubrica Telefonica",
create MichaelMyers.ldif:

dn: cn=Mychael Myers, o=Rubrica Telefonica, dc=example, dc=com
cn: Mychael Myers
sn: Myers
ObjectClass: person

and add the second one:

ldapadd -h workstation -p 1389 -D "cn=Directory Manager" -w secret -f MichaelMyers.ldif


And search for it.

ldapsearch -p 1389 -h workstation -b "dc=example,dc=com" -w secret -D "cn=Directory Manager" -LLL "(sn=Myers)"

Nessun commento:

How to deploy Podman images to OpenShift Container Platform (CRC on localhost)

I have a microservice on localhost and I want to deploy its Podman image on OCP, which I am running using CRC on localhost.       1. Get the...