Skip to end of metadata
Go to start of metadata

Introduction

The preparation of the LDAP server can be done all together before starting the tutorial or just step by step during working on the tutorial.

Install OpenDJ

To install OpenDJ see here

Prepare OpenDJ for the first step of the OpenIDM tutorial

It is easiest to do this in the OpenDJ control panle which can be started from the bin folder of the installation:

opendj/bin/control-panel &

Log in and go for "New Base DN..."
Give it a Base DN of o=ad and import the following ldif from a file (Import Data From LDIF File):

LDIF import for the first base suffix in the example LDAP server
dn: o=ad
objectclass: organization

dn: ou=people, o=ad
ou: people
description: people
objectclass: organizationalunit

Prepare OpenDJ for the second stop of the OpenIDM tutorial

It is easiest to do this in the OpenDJ control panle which can be started from the bin folder of the installation:

opendj/bin/control-panel &

Log in and go for "New Base DN..."
Give it a Base DN of o=aaa and import the following ldif from a file (Import Data From LDIF File):

LDIF import for the second base suffix in the example LDAP server
dn: o=aaa
objectclass: organization

dn: ou=people, o=aaa 
ou: people
description: people
objectclass: organizationalunit

dn: uid=abcd1,ou=People,o=aaa
title: Dr.
uid: abcd1
userPassword: password
facsimileTelephoneNumber: +1 408 555 1211
initials: H
objectClass: person
objectClass: organizationalPerson
objectClass: inetOrgPerson
objectClass: top
givenName: abab1
mobile: + 477071234
cn: abab1 cdcd1
telephoneNumber: +1 408 555 1212
sn: cdcd1
homePhone: +1 51521577
mail: abcd1@aaa.com
description: created by LDAP1

Prepare OpenDJ for Live Sync

The changes in OpenDJ are detected using External Change Log (ECL) mechanism, similar mechanism to the one that was known as Retro Change Log in Sun Directory Servers. The ECL is presented as an LDAP subtree with base DN of cn=changelog. Each change is represented as an entry in that subtree and it remains in that subtree for few days.

On the Initial Installation

When installing OpenDJ, make sure to enable replication by checking the "Server part of replication topology". This will enable External Change Log (ECL, cn=changelog LDAP subtree).

On an existing Instance

Execute the following commands (adjust where needed):

Creating Global Administrator in OpenDJ
./dsframework create-admin-user -X --hostname localhost --port 4444 \
--bindDN "cn=Directory Manager" --bindPassword password  \
--userID admin2 --set password:opends2
Activating replication
./dsreplication enable --host1 localhost --port1 4444 \
--bindDN1 "cn=Directory Manager" --bindPassword1 secret --trustAll \
--onlyReplicationServer1 --replicationPort1 8989 --baseDN dc=example,dc=com \ 
--onlyReplicationServer1 --no-prompt --adminUID admin2 --adminPassword opends2

This will also activate the ECL.

Each change of a user will then be reflected with it's own entry under cn=changelog!

  • No labels