Friday, March 13, 2015

Create an OVD changelog adapter

Create an OVD changelog adapter


Changelog is needed for many application such as OIM that use the changelog to keep data between OIM and OID in sunc. To create a changelog adapter,

1>     Make sure that change log.
To confirm, run
ldapsearch –D orcladmin –w <password> -h <server> -p <port> -b ‘’ –s base objectclass=* lastchangenumber

2>     Login to ODSM, http://<server>:<port>/odsm
3>     Connect to the OVD using ODSM.
4>     Click on the Tab “Adapter”.
5>     Create a new adapter.
This will start the wizard. Create adapter using the following parameters.

Type
Adapter Type
LDAP

Adapter Name
Changelog Adapter

Adapter Template
Changelog_OID
Connection
Use DNS for Auto Discovery
No

Host
<oid server>

Port
<oid port>

Server Proxy Bind DN
cn=orcladmin

Proxy Password
Password for orcladmin user.
Connection Test

Validate that the test succeeds.
Namespace
Remote Base
(Do not assign.)

Mapped Namespace
cn=changelog
Summary

Verify that the summary is correct, then click Finish.


Have fun ...












Enable/Disable the OID changelog

Enable/Disable the OID changelog


OID uses the changelog to keep track of the changes performed. It is used by application such as OIM to keep the OIM and OID in sync. By default, when you install OID, changelog is enabled. For some reason, if it not enabled, you could enable it using quickly using the procedure below.
Set the value for the attribute orclgeneratechangelog to enable or disable the change log. Create a LDIF file to set the value for above property

dn: cn=componentname,cn=osdldapd,cn=subconfigsubentry
changetype: modify
replace: orclgeneratechangelog
orclgeneratechangelog: 1

A value of “1” will enable the changelog whereas, “0” will disable it.
Modify by running

Ldapmodify –D cn=orcladmin –w <password> -h  <oid Server> -p <oid port> -f <ldif file name>

Viewing the Changelog


Use ldapsearch to view the changelogs.
Use different filters to view the log, for example:
1.    For example, to view a range of change logs that have been transported from the supplier to the local node, use filter:
   "(&(objectclass=changeLogEntry)(servername=SUPPLIER_REPLICAID)\
   (changeNumber>=FROMCHGNO)(changeNumber<=TOCHGNO))"
2.    To view a single change log that has been transported from the supplier to the local node, use:
   "(&(objectclass=changeLogEntry)(servername=SUPPLIER_REPLICAID)\
   (changeNumber=CHGNO))" 
3.    To view a range change logs that have been generated at the local node, use:
"(&(objectclass=changeLogEntry)(changeNumber>=FROMCHGNO)(changeNumber<=TOCHGNO))"
4.    To view a single change log that has been generated at the local node, use:
   "(&(objectclass=changeLogEntry)(changeNumber=CHGNO))" 


Have fun...