Sun Java System Calendar Server 6 2005Q4 Administration Guide

To Run in Silent Mode

To run the Directory Preparation Script in silent mode, issue the Perl command followed by a string of options using the syntax shown in comm_dssetup.pl Syntax. All of the option arguments are required. Table 2–1describes the options.

The utility creates the following LDIF file and shell script to update the LDAP directory indexes and schema:

/var/tmp/dssetup_timestamp.ldif 
/var/tmp/dssetup_timestamp.sh

Depending on the option values you pass in, the utility will either proceed to update the Directory Server by executing the new script, or not. If you have chosen not to proceed with the update, you can check the script and make any desired modifications before running the actual update at a later time.

comm_dssetup.pl Syntax

The following are all the options for running in the silent state:


perl comm_dssetup.pl
    -i yes|no
    -R yes|no
    -c DirectoryServerRoot
    -d DirectoryInstance
    -r DCTreeSuffix
    -u UserGroupSuffix
    -s yes|no
    -D DirectoryManagerDN
    -w DirectoryManagerPassword
    -b yes|no -t 1|1.5|2
    -m yes|no
   [-S PathtoSchemaFiles]
               
Table 2–1 Explanation of Options for Silent State

Option and Argument  

Description  

-i yes|no

Answers the question: “Do you want to configure new indexes?” 

yes Add new Directory Server indexes. the Directory Preparation Script adds indexes for the icsCalendar and icsCalendarOwned attributes.

no Do not add indexes.

-R yes|no

Answers the question: “Do you want to reindex now?” The -m option must be yes also for this to take effect.

-c DirectoryServerRoot

Directory Server root path. For example: /var/opt/mps/ldap

-d DirectoryInstance

Directory Server instance subdirectory. For example: slapd-varrius

-r DCTreeSuffix

DC tree root suffix. (for Schema 1 and Schema 2 compatibility modes only) 

For example: dc=varrius,dc=sesta,dc=com

-u UserGroupSuffix

User and group root suffix. For example: dc:west,dc=sesta,dc=com

-s yes|no

Answers the question: “Do you want to update the schema?” 

yes Update the schema. You must have a config directory with the schema files.

no Do not update schema.

-D DirectoryManagerDN

Directory Manager Distinguished Name (DN). The value must be enclosed by double quotation marks (" ") to allow the Directory Preparation Script to interpret a value with a space correctly.

For example: "cn=Directory Manager"

-w DirectoryManagerPassword

Directory Manager DN password. 

-b yes|no

Answers the question: “Will this directory server be used for users and groups?” 

yes Use this directory to store both configuration and user group data.

no Use this directory to store only configuration data.

-t 1|1.5|2

Schema version: 

  • 1 Sun LDAP Schema 1

  • 1.5 Sun LDAP Schema 2 Compatibility Mode

  • 2 Sun LDAP Schema 2 Native Mode

-m yes|no

Answers the question: “Do you want to modify the directory server?” 

yes Modify the Directory Server without prompting the user.

no Do not modify the Directory Server without prompting the user.

-S PathtoSchemaFiles

Path to the directory where the schema files are located. For example: ./schema