Wednesday, February 07, 2007

Create Shadow joiner

Create Shadow Joiner in Oracle Virtual Directory.

I know Oracle has not provide clear documantation on Shadow joiner and it is not working for you as well. I spend lot of time to under stand shadow joiner. Follow this step and shadow joiner will work for you

1) First create LDAP Adapter. Let's say, it is Adapter1. Here let say, we are giving dn as "o=mycompany,dc=tech,dc=com"

Click on routing tab, provide list of unstorable attribute. This is a list of those attributes which you don't want to store on primary adapter. each attribute should be comma seperated.

2) Create Local Data Store adapter. Let's say, this is Adapter2

Here you have to provide "Adapter Suffix". This should not point to your LDAP tree structure. let's give adapter suffix as "o=localstore".
Make sure "Auto RDN" is enable by checking the corresponding checkbox
Save this adapter on virtual directory server
thru ldapmodify tool, create root level datastore object for "o=localstore".

3) For Adapter2, click on routing tab.

Provide list of retrievable attributes. This list should contains at least, pimarykeyattribute(using which you want to search object on Adapter1 and Adapter2),other attributes which are stored on local data store and " vdeprimaryref"

4) Create new Join Adapter. let's say this is adapter3

Give Adapter1 as "Primary Adapter"
Give Adater2 as "Binding Adapter"

provide unique DN.

For Join rule, Click on "New" button
As "Joined Adapter" select Adapter2
Type class as "Shadow Joiner"
Condition as name of pimarykeyattribute(using which you want to search object on Adapter1 and Adapter2),
Click OK

5) Save everything on virtual directory server and test your shadow join

Shadow join will be effective only if you make any change under DN tree of Adapter3