Sun Directory Services 3.1 User's Guide

Appendix B dejasync Command Reference

dejasync is a command line utility that synchronises the Deja.properties files with the NIS and RADIUS mapping files (nis.mapping and radius.mapping) on the directory server. Use it when you have made modifications to the mapping files and you want the changes to be carried over into Deja.

It creates or updates tokens in the Deja.properties file depending on tokens that exist in the Deja.properties file.

For information on the nis.mapping and radius.mapping files, see the relevant manpages; nis.mapping(4) and radius.mapping(4).

dejasync also backs up the Deja.properties file.

You must be logged in as root or superuser to run dejasync.


Note -

Running dejasync implies that you accept all changes that may be made to the Deja.properties file.


nis.mapping File

dejasync gets from the Deja.properties file the list of maps managed by Deja for NIS. These are lines that start with the NIS_MAPS token.

For each map in the Deja.properties file, dejasync creates a new map definition by copying the following tokens from the nis.mapping file into the Deja.properties file:

If these tokens exist in the Deja.properties file, dejasync updates them. If they do not exist, it creates them.

radius.mapping File

dejasync copies the following tokens from the radius.mapping file to the Deja.properties file:

If these tokens exist in the Deja.properties file it updates them. If they do not exist it creates them.

Syntax

The command line options for dejasync are:


/opt/SUNWconn/ldap/sbin/dejasync [-v] [-d Deja_properties_directory]
[-n NIS_mapping_file] [-r RADIUS_mapping_file]

Command Line Options


-v

Enables verbose mode.


-d Deja_properties_directory

Specifies the directory containing the Deja.properties file. By default this is /opt/SUNWconn/ldap/html.


-n NIS_mapping_file

Specifies the filename of the NIS mapping file. By default this is /etc/opt/SUNWconn/ldap/current/mapping/nis.mapping.


-r RADIUS_mapping_file

Specifies the filename of the RADIUS mapping file. By default this is /etc/opt/SUNWconn/ldap/current/mapping/radius.mapping.