Oracle® Identity Management User Reference
10g Release 2 (10.1.2) B15883-01 |
|
Previous |
Next |
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:
$ORACLE_HOME
/ldap/odi/log/attributetypes.log
$ORACLE_HOME
/ldap/odi/log/objectclasses.log
schemasync -srchost hostname -srcport port -srcdn bindDN -srcpwd password -dsthost hostname -dstport port -dstdn bindDN -dstpwd password [-ldap]
-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.
Using the schemasync
command-line tool, you can perform the following tasks:
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