#########################################################################################
# This README contains instructions for configuring JAZN for LDAP provider only.        #
# If you choose to install iAS V2 infrastructure type and configure Oid (Oracle 	#
# Interenet directory), then JAZN schema has been loaded automatically through the Oid  #
# installation.  You need to follow  step B1 to load JAZN demo data.		  	#
# Otherwise, you can load the jazn schema and demo data to an Oid server of your choice #
# by following the instructions in step A and B2					#
#########################################################################################

Dependency:
===========
JAZN has a dependency on the latest 9i LDAP schema. If your Oid is not
from the iAS V2 installation, you may have to upgrade your Oid first.

Assumptions:
===========

1. ORACLE_HOME environment variable is set properly.

2. OID client is installed at the same machine where the postinstall script is to be run 
   and "ldapmodify" utility is available at $ORACLE_HOME/bin directory.

3. All the install related files (generateldif.pl, generateldif.sh, postinstall.sh 
   are available at $ORACLE_HOME/j2ee/home/jazn/install directory. 
   You may need to change the INSTALLDIR variable defined in generateldif.sh and
    postinstall.sh to suit your needs.
  
4. All the JAZN OID schema and template files are available at $ORACLE_HOME/j2ee/home/jazn/install directory.
   You may need to change the INSTALLDIR variable defined in postinstall.sh to suit your needs.
   

Step A: Generate ldif files 
===========================
Follow this step only if the ldif files haven't been generated for you.
If you are not sure, check if you have them in $ORACLE_HOME/j2ee/home/jazn/install directory.

Use generateldif.sh script to generate the ldif files required by JAZN:
 
All you need is to specify the OracleContextDN.  
For example, if OracleContextDN is "cn=OracleContext"
% generateldif.sh -b cn=OracleContext


Requirements for step B:
------------------------

You need the following informations in order to configure JAZN:
    ldaphost   - host name for the LDAP server
    ldapport   - port number for the LDAP server, default value is 389.
    binddn     - bind dn e.g. 'cn=orcladmin'
    password   - bind password
        


Step B1: Instructions to load JAZN demo data
=======================================================
Run postinstall.sh script to load JAZN demo data.

To see usage:
% postinstall.sh -help

For example:
% postinstall.sh -h oidhost -p 389 -D cn=orcladmin -w adminpwd



Step B2: Instructions to load JAZN schema and demo data
=======================================================

NOTE: this step is required only when you are trying to configure an Oid server which 
is not installed through iAS V2.

Run postinstall.sh script to load JAZN schema & seed data using the generated ldif files.
You need to specify the load option to "All". Otherwise, only demo data will be loaded.

To see usage:
% postinstall.sh -help

For example:
% postinstall.sh -h oidhost -p 389 -D cn=orcladmin -w adminpwd -load All











