Sun logo      Previous      Contents      Index      Next     

Sun ONE Calendar Server 6.0 Installation Guide for Solaris Operating Systems

Chapter 2
Configuring Calendar Server 6.0

After you install Sun ONE Calendar Server using the Sun Java Enterprise System installer, you must configure Calendar Server as follows:

  1. Run the Directory Server Setup Script (comm_dssetup.pl) to configure Sun ONE Directory Server 5.x (if the script has not already been run during the configuration of Messaging Server 6.0).
  2. Run the Calendar Server Configuration Program (csconfigurator.sh) to configure your site’s specific requirements.

 


Directory Server Setup Script (comm_dssetup.pl)

The Directory Server Setup Perl script (comm_dssetup.pl) configures Sun ONE Directory Server 5.x for Calendar Server 6.0 and Messaging Server 6.0. The comm_dssetup.pl script prepares the Directory Server by setting up new schema, index, and configuration data. This section describes:

 


Note

If you also installed Sun ONE Messaging Server 6.0 and have already run comm_dssetup.pl, you do not need to run the script again. However, if you install a new version of Messaging Server or Calendar Server, run the new version of comm_dssetup.pl to update the directory server schema and to add any new indexes.


Functions of comm_dssetup.pl

Specifically, comm_dssetup.pl allows you to specify these options:

Requirements to Run comm_dssetup.pl

The requirements to run comm_dssetup.pl include:

 

Running comm_dssetup.pl

To run comm_dssetup.pl, follow these steps:

  1. On the server where Directory Server 5.x is installed, login as or become superuser (root).
  2. Start Directory Server 5.x, if necessary.
  3. If Calendar Server 6.0 is installed on this same server, change to the /opt/SUNWics5/cal/sbin directory.
  4. Or, if Calendar Server 6.0 is not installed on this server, you must copy the dssetup.zip file (which includes the comm_dssetup.pl script and supporting files) from the server where Messaging Server 6.0 is installed:

    1. On the server where Directory Server 5.x is installed, create a temporary directory. For example: var/tmp.
    2. Copy the msg_svr_base/install/dssetup.zip file from the server where Messaging Server 6.0 is installed to the temporary directory.
    3. In the temporary directory, unzip the dssetup.zip file.
  5. Run the comm_dssetup.pl script in either Silent Mode or Interactive Mode. To run this script, Sun recommends using the version of Perl included with Directory Server 5.x:
  6. ds_svr_base/bin/slapd/admin/bin/perl

Silent Mode

To run comm_dssetup.pl in silent mode, use the following syntax. You must provide all of the required arguments, as described in Table 2-1.

perl comm_dssetup.pl

    -i 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  Directory Server Setup Script (comm_dssetup.pl) Options 

Option

Description

-i yes|no

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

yes–Add new Directory Server indexes. For Calendar Server  6.0, comm_dssetup.pl adds indexes for the icsCalendar and icsCalendarOwned attributes.

no–Do not add indexes.

-c DirectoryServerRoot

Directory Server root path name.
For example:  /usr/sunone/servers

-d DirectoryInstance

Directory Server instance subdirectory.
For example: slapd-varrius

-r DCTreeSuffix

DC Tree root suffix. For example: o=internet

-u UserGroupSuffix

User and Group root suffix. For example: o=isp

-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 comm_dssetup.pl 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

Sun ONE LDAP Schema version:

  • Option 1–ONE LDAP Schema v.1
  • Option 1.5–ONE LDAP Schema v.2 Compatibility Mode
  • Option 2–ONE LDAP Schema v.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

 

Example

perl comm_dssetup.pl -i yes -c /var/mps/serverroot -d slapd-ketu -r o=internet -u o=usergroup" -s yes -D "cn=Directory Manager" -w password -b yes -t 1 -m yes

When you run in silent mode, comm_dssetup.pl displays a summary similar to Step 11. Summary of Settings for Interactive Mode before making actual changes to your Directory Server.

Interactive Mode

To run in interactive mode, you run the comm_dssetup.pl script without any arguments and then enter your choices as you are prompted.

1. Welcome and Introduction

# perl comm_dssetup.pl

Welcome to the Directory Server preparation tool for Sun ONE Messaging Server.

(Version 6.0 Revision 0.004)

This tool prepares your directory server for Sun ONE Messaging Server install.

The logfile is /var/tmp/dssetup_YYYYMMDDHHSS

Do you want to continue [y]:

Press Enter to continue, or type no and then press Enter to exit.


Note

Although the welcome message refers only to Sun ONE Messaging Server, comm_dssetup.pl also applies to Sun ONE Calendar Server.


 

2. Installation Root of Directory Server

Please enter the full path to the directory where the Sun ONE Directory Server was installed.

Directory server root [/var/mps/serverroot]

Specify the location of the installation root of the Directory Server.

3. Directory Server Instance

Please select a directory server instance from the following list:

[1] slapd-varrius

Which instance do you want [1]:

If multiple instances of Directory Server reside on the server, choose the one that will be configured with Calendar Server.

4. Directory Manager Distinguished Name (DN)

Please enter the directory manager DN [cn=Directory Manager]:

Password:

The Directory Manager DN (cn=Directory Manager) is the administrator who is responsible for the user and group data in the Organization Tree. Be sure that the Directory Manager DN you specify in this script is the same DN that you set up for your Directory Server installation as well for as your Calendar Server configuration.

5. User and Group Directory Server

Will this directory server be used for users/groups [Yes]:

If you answer Yes, you must also specify a DC Tree base suffix and a User and Group base suffix for your Organization Tree.

If you answer No, it is assumed that this directory instance is used to store only configuration data, and you will skip to the question about updating schema files. After you finish running this script against the configuration directory instance, you need to run this script against the directory instance that stores user and group data before you configure Calendar Server.

6. User and Group Base Suffix

Please enter the Users/Groups base suffix [o=usergroup]:

The User and Group base suffix is the top entry in the Organization Tree that holds the name space for user and group entries. Be sure that the User and Group base suffix you select is the same as what you specified for Directory Server and Calendar Server.

If you installed Identity Server, be sure the suffix specified in Identity Server installation is the same as what you specify for this question. If you do not use the same suffix, Calendar Server will not recognize your Identity Server installation.

7. Schema Type

There are 3 possible schema types:

1 - schema 1 for systems with iMS 5.x data

1.5 - schema 2 compatibility for systems with iMS 5.x data that has been converted with imsdirmig

2 - schema 2 native for systems using Identity Server

Please enter the Schema Type (1, 1.5, 2) [1]:

Choose the version of the schema you are planning to use:

To use Sun ONE LDAP Schema, v.2 (options 1.5 or 2) Sun ONE Identity Server 6.1 must be installed and configured; otherwise, comm_dssetup.pl will terminate. You must then rerun the script after Identity Server is installed.

8. Domain Component (DC) Tree Base Suffix

Please enter the DC Tree base suffix [o=internet]:

In Step 7. Schema Type, if you choose Option 1 or 1.5, you will be asked to provide your DC Tree Base Suffix. If you choose Option 2, you will not be asked this question.

The DC Tree mirrors the local DNS structure and is used by the system as an index to the Organization Tree that contain the user and group data entries. The DC Tree base suffix is the name of the top entry on the DC tree. You can either choose the default (o=internet) or another name.

9. Updating Schema Files

Do you want to update the schema files [yes]:

If you answer Yes, comm_dssetup.pl adds new elements to your schema. It is recommended that you update the directory with the new schema files each time you install a new version of Calendar Server or Messaging Server.

10. Configuring New Indexes

Do you want to configure new indexes [yes]:

If you answer Yes to Step 5. User and Group Directory Server, you will be asked if you want to configure new indexes, which can improve the performance of directory searches.

For Calendar Server 6.0, comm_dssetup.pl adds indexes for the icsCalendar and icsCalendarOwned attributes. It is recommended that you answer Yes.

11. Summary of Settings

Before comm_dssetup.pl updates the Directory Server configuration, it displays a summary of your settings and then asks if you want to continue.

Here is a summary of the settings that you chose:

Server Root : /var/mps/serverroot/

Server Instance : slapd-varrius

Users/Groups Directory : Yes

Update Schema : yes

Schema Type : 1

DC Root : o=internet

User/Group Root : o=usergroup

Add New Indexes : yes

Schema Directory : ./schema **

Directory Manager DN : cn=Directory Manager

Now ready to generate a shell script and ldif file to modify the Directory.

No changes to the Directory Server will be made this time.

Do you want to continue [y]:

If you chose Option 2 (Sun ONE LDAP Schema, v.2 - Native Mode) in Step 7. Schema Type, the DC Root will be the same value that you entered for the User/Group Root.

To change any of your settings, enter No and re-run the script.

If you continue, comm_dssetup.pl creates the following LDIF file and shell script to update the Directory Server indexes and schema:

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

Again, comm_dssetup.pl asks if you want to continue. Enter Yes to run the dssetup_timestamp.sh script now or No to exit. If you exit, you will need to run the /var/tmp/dssetup_timestamp.sh script later.


Calendar Server Configuration Program (csconfigurator.sh)

The Calendar Server 6.0 configuration program (csconfigurator.sh) allows you to configure Calendar Server. The configuration program creates a new ics.conf configuration file in the following directory:

/etc/opt/SUNWics5/config

The configuration program performs minimal configuration. After you run the program, you might need to perform additional configuration, as described in the Sun ONE Calendar Server Administrator’s Guide.

The configuration program uses a graphical user interface (GUI). If you run the program remotely, you must set your DISPLAY environment variable properly and allow X-Windows connections from the server to display on your computer. For example, to use the xhost utility, execute the following command on your computer: xhost +.

To run the configuration program, login as or become superuser (root) and change to the /opt/SUNWics5/cal/sbin directory. Then, issue this command:

# sh ./csconfigurator.sh

The configuration program displays the following series of panels:

 


Welcome Panel

Figure 2-1  Calendar Server Configuration Program Welcome Panel

Calendar Server Configuration Program Welcome Panel

Click Next to continue or Cancel to exit.


Administration, User Preferences and Authentication Panel

Figure 2-2  Calendar Server Configuration Program Administration, User Preferences and Authentication Panel

Calendar Server Configuration Program Administration, User Preferences and Authentication Panel

User Preferences Directory Options

Calendar Server Administrator Options

Click Next to continue, Back to return to the previous panel, or Cancel to exit.


Email and Email Alarms Panel

Figure 2-3  Calendar Server Configuration Program Email and Email Alarms Panel

Calendar Server Configuration Program Email and Email Alarms Panel

Click Next to continue, Back to return to the previous panel, or Cancel to exit.


Runtime Configuration Panel

Figure 2-4  Calendar Server Configuration Program Runtime Configuration Panel

Calendar Server Configuration Program Runtime Configuration Panel

Click Next to continue, Back to return to the previous panel, or Cancel to exit.


Select Directories Panel

Figure 2-5  Calendar Server Configuration Program Select Directories Panel

Calendar Server Configuration Program  Database, Logs, and Temporary Files Directories Panel

For each directory, you can accept the default directory, type the full path of another directory, or click Browse... and choose a directory. Then, Click Next to continue, Back to return to the previous panel, or Cancel to exit.


Ready to Configure Panel

Figure 2-6  Calendar Server Configuration Program Ready to Configure Panel

Calendar Server Configuration Program Ready to Configure Panel

Click Configure Now to configure Calendar Server, Back to return to the previous panel, or Cancel to exit.


Configuration Summary Panel

Figure 2-7  Calendar Server Configuration Program Summary Panel

Calendar Server Configuration Program Summary Panel

Click Details... to view the details of the configuration summary or Close to exit the configuration program.



Previous      Contents      Index      Next     


Copyright 2003 Sun Microsystems, Inc. All rights reserved.