[Usage]java -cp .:$T_WORK/middleware/as11gr1soa/modules/oracle.jrf_11.1.1/jrf.jar oracle.security.jps.internal.tools.configuration.ldap.LdapServiceEnabler [options] [command]

command:
    setIdStoreService - enables LDAP based identity store service
    setPolicyCredentialServices - enables policy and credential store services to be LDAP based.


Options: Options can be set in either the configuration file or the command line arguments.
   -command <setIdStoreService or setPolicyCredentialServices>
   -domain <the domain name>
   -admin <the LDAP user name used to establish connections to LDAP server>
   -password <the password of the above user> (it will prompt users for password from the console if it's not set.)
   -ldapurl <LDAP URL>
   -userbase <LDAP user search base>
   -groupbase <LDAP group search base>
   -servertype <LDAP server type>
   -jpsroot <LDAP root for policy and credential migration>
   -path <the file path to jps-conifg.xml>
   -output <the output directory for the updated jps-config.xml and the bootstrap credential store>
   -migration <true if data migration is needed, false if not; default is true.>
   -props <confguration property file path>
       The properties in the configuration file
       will be overloaded by the above command line property values.

       Sample of configuration file:

        domain=jps
        admin=cn=orcladmin
        ldapurl=ldap://stbcr12-3.us.oracle.com:3060
        userbase=cn=users,dc=us,dc=oracle,dc=com
        groupbase=cn=groups,dc=us,dc=oracle,dc=com
        servertype=OID
        jpsroot=cn=jpsTestNode
        path=j2ee/home/config/jps-config.xml
        output=./
        migration=true
        command=setPolicyCredentialServices

Examples:
    java -cp .:$T_WORK/middleware/as11gr1soa/modules/oracle.jrf_11.1.1/jrf.jar  oracle.security.jps.internal.tools.configuration.ldap.LdapServiceEnabler -props migration.props setPolicyCredentialServices


Notes:
1. This command line tool is only supported with JDK 1.6.
2. When running ant target 'migrate_ldap' from directory $SRCHOME/jazn/jps , the ant target expects
the property configuration file migration.props in the same directory.
