Skip Headers
Oracle® Identity Management User Reference
10g Release 2 (10.1.2)
B15883-01
  Go To Documentation Library
Home
Go To Product List
Solution Area
Go To Table Of Contents
Contents
Go To Index
Index

Previous
Previous
Next
Next
 

6.4 schemasync

The schemasync command-line tool enables you to synchronize schema elements—namely attributes and object classes—between an Oracle Internet Directory server and a third-party LDAP directory.

The errors that occur during schema synchronization are logged in the following files:

6.4.1 Syntax for schemasync

schemasync -srchost hostname -srcport port -srcdn bindDN -srcpwd password  -dsthost hostname -dstport port -dstdn bindDN -dstpwd password [-ldap]

6.4.2 Arguments for schemasync

-srchost hostname

The host name of the source directory server.

-srcport port

The LDAP listening port of the source directory server, for example 389.

-srcdn bindDN

The DN of the user used to bind to the source directory. This user must have permissions to modify the directory schema, for example the super user (cn=orcladmin).

-srcpwd password

The user password used to bind to the source directory.

-dsthost hostname

The host name of the destination directory server.

-dstport port

The LDAP listening port of the destination directory server, for example 389.

-dstdn bindDN

The DN of the user used to bind to the destination directory. This user must have permissions to modify the directory schema, for example the super user.

-dstpwd password

The user password used to bind to the destination directory.

-ldap

Optional. If specified, then the schema changes are applied directly from the source LDAP directory to the destination LDAP directory. If it is not specified, then the schema changes are placed in the following LDIF files:

  • $ORACLE_HOME/ldap/odi/data/attributetypes.ldif: This file has the new attribute definitions.

  • $ORACLE_HOME/ldap/odi/data/objectclasses.ldif: This file has the new object class definitions.

If you do not specify -ldap, then you must use "ldapmodify" to upload the definitions from these two files, first attribute types and then object classes.

6.4.3 Tasks and Examples for schemasync

Using the schemasync command-line tool, you can perform the following tasks:

6.4.3.1 Synchronizing the Schema between Oracle Internet Directory and a Third-Party Directory

The following example shows how to synchronize the schema between Oracle Internet Directory and a third-party directory server.

Example:

schemasync -srchost myhost1.mycompany.com -srcport 389 -srcdn "cn=orcladmin" -srcpwd welcome1 -dsthost myhost2.mycompany.com -dstport 389 -dstdn "uid=superuser,ou=people,dc=mycompany,dc=com" -dstpwd admin123 -ldap

6.4.4 Related Command-Line Tools for schemasync