※ Calendar Server の設定 sw-79# cd /opt/sun/comms/ sw-79# ls CommsInstaller da davserver dssetup sw-79# cd davserver/ sw-79# ls Legal_Folder install lib sbin web-src sw-79# cd sbin sw-79# ls config-servicetags davadmin init-config locatejdk sw-79# ./init-config -nodisplay /usr/jdk/instances/jdk1.6.0/bin/java -Djava.library.path=/opt/sun/comms/davserver/lib -Djava.awt.headless=true -classpath /opt/sun/comms/davserver/lib/jars/mysql-connector-java-5.1.6-bin.jar:/opt/sun/comms/davserver/lib:/usr/jdk/instances/jdk1.6.0/lib/classes.zip config-davserver -saveState /opt/sun/comms/davserver/install/saveState20091027010145 -nodisplay Finished Loading Default Properties... You are running the configuration program for Sun Java System Calendar Server. This program asks you to supply configuration preference settings that it uses to configure the server. The configuration program consists of one or more selections that provide you with information and let you enter preferences that determine how Sun Java System Calendar Server is configured. When you are presented with the following question, the configuration process pauses to allow you to read the information that has been presented. When you are ready, press Enter to continue. Some questions require more detailed information that you are required to type. The question may have a default value that is displayed inside of brackets []. For example, the following question has a default answer of yes: Are you sure? [yes] If you want to accept the default answer, press only the Enter key (which on some keyboards is labeled Return). If you want to provide a different answer, type it at the command prompt and then press Enter. If yes is your answer, type yes or y at the command prompt and press Enter. If your answer is no, type no or n and press Enter. At any point in the configuration program, if you wish to exit the configuration program midway, press the ! key and you will be given the option to exit or continue. Welcome to the Sun Java System Calendar Server Configuration Program. Please specify the directory in which the configuration and data files should be installed. It is recommended that you configure the Sun Java System Calendar Server in the directory suggested by this configurator program. Specify the directory in which the configuration and data files should be installed [/var/opt/sun/comms/davserver] {"<" goes back, "!" exits}: The directory "/var/opt/sun/comms/davserver" does not exist. Do you want to create it now or choose another directory? 1. Create Directory 2. Choose New Enter the number corresponding to your choice [1] {"<" goes back, "!" exits} Please wait for the components to be loaded... Loading components... Select the components to be configured. [X] 1 Sun Java System Calendar Server 7 0 bytes To select a component, enter its number, or 0 when you are done [0] {"<" goes back, "!" exits}: Checking Disk Space Please verify that the host name and DNS domain name mentioned in the fields below are correct for this system, then click Next. The configuration program will again attempt to establish a network connection to this system using these values. The host name or DNS domain name field will be blank if the configuration program is unable to detect its value. Host Name [sw-79] {"<" goes back, "!" exits}: DNS Domain Name [japan.sun.com] {"<" goes back, "!" exits}: MySQL Server Configuration Details Enter the MySQL Server host name, port number, database user ID, password and the default calendar database. Enter the Server Host Name [localhost] {"<" goes back, "!" exits}: Enter the Server Port Number [3306] {"<" goes back, "!" exits}: Enter the Database User ID [caldav] {"<" goes back, "!" exits}: Enter the Database User Password [] {"<" goes back, "!" exits}: Enter the Calendar Database Name [caldav] {"<" goes back, "!" exits}: Please Wait: Verifying whether the MySQL Server connection is alive Application Server Configuration Details Specify the local Application Server instance details used by the configurator to configure Sun Java System Calendar Server 7 on Application Server. Enter the following application server instance details to configure Sun Java System Calendar Server 7: Install Directory: Enter the local directory in which the Application Server is installed. Domain Directory: Enter the Application Server domain directory. Document Root Directory: Enter the Application Server document root directory. Server Target Name: Enter the Application Server Name for which the Sun Java System Calendar Server 7 is to be configured. Virtual Server Identifier: Enter the Virtual Server Identifier for which the Sun Java System Calendar Server 7 is to be configured. Server Instance HTTP Port: Enter the Application Server port number where HTTP service is available. Enter Application Server Install Directory [/opt/SUNWappserver] {"<" goes back, "!" exits}: Enter Application Server Domain Directory [/opt/SUNWappserver/domains/domain1] {"<" goes back, "!" exits}: Enter Application Server Document Root Directory [/opt/SUNWappserver/domains/domain1/docroot] {"<" goes back, "!" exits}: Enter Application Server Instance Name [server] {"<" goes back, "!" exits}: Enter Virtual Server Identifier [server] {"<" goes back, "!" exits}: Enter Application Server Instance HTTP Port [8080] {"<" goes back, "!" exits}: Please Wait: Verifying whether the Application Server Instance connection is alive Application Server: Administration Instance Details Specify Application Server's Administration instance details used by the configurator to configure Sun Java System Calendar Server 7 on Application Server. Enter the Administration Server Port [4848] {"<" goes back, "!" exits}: Enter the Administrator User ID [admin] {"<" goes back, "!" exits}: Enter the Administrator Password [] {"<" goes back, "!" exits}: Is the Administration Server instance running in the secure mode [yes] {"<" goes back, "!" exits}? Please Wait: Verifying whether the Administration Server instance connection is alive Information You have specified that the Application Server's Administration Server instance is running in the secure mode. URI Path Enter the URI Path for Sun Java System Calendar Server 7. URI Path: Enter the URI Path where the Sun Java System Calendar Server 7 is to be deployed. Note: Ensure you have specified a new URI Path. If there exists a web application already configured at the specified URI, it will be deleted before Sun Java System Calendar Server 7 is deployed. Enter URI Path for Sun Java System Calendar Server 7 [/] {"<" goes back, "!" exits}: /davserver Enter the User/Group LDAP Server details. The User/Group LDAP Server URL should be in the format ldap://:. For example, ldap: //ldapserver.siroe.com:389 Ldap URL [ldap://sw-79.japan.sun.com:389] {"<" goes back, "!" exits}: ldap://sw-79.japan.sun.com:10389 Bind DN [cn=Directory Manager] {"<" goes back, "!" exits}: Bind Password {"<" goes back, "!" exits}: DC Tree Suffix Specify the base distinguished name for the DC Tree Suffix. This suffix is used by Sun Java System Calendar Server 7 to search for configured hosted domains. Enter DC Tree Suffix [o=internet] {"<" goes back, "!" exits}: Please enter the Default Domain Name Enter the Default Domain Name. This is the default domain that will be used when a user logs in without specifying a domain name. Enter the Default Domain Name [japan.sun.com] {"<" goes back, "!" exits} Notification Mail Server Configuration Details Enter the SMTP mail server host name and port number. Enter the SMTP Server Host Name [sw-79.japan.sun.com] {"<" goes back, "!" exits}: sw-89.japan.sun.com Enter the SMTP Server Port Number [25] {"<" goes back, "!" exits}: Please Wait: Verifying whether the SMTP mail server connection is alive Please enter the Sun Java System Calendar Server 7 Administrator User ID and Password. Username [calmaster]: Password: Password Again: Checking disk space... The following items for the product Sun Java System Calendar Server will be configured: Product: Sun Java System Calendar Server Location: /var/opt/sun/comms/davserver Space Required: 0 bytes ---------------------------------------- Sun Java System Calendar Server 7 Ready to Configure 1. Configure Now 2. Start Over 3. Exit Configure Program What would you like to do [1]? Starting Task Sequence ===== Tue Oct 27 01:04:41 JST 2009 ===== Running /bin/rm -rf /opt/sun/comms/davserver/config /opt/sun/comms/davserver/data /opt/sun/comms/davserver/log ===== Tue Oct 27 01:04:41 JST 2009 ===== Running /opt/sun/comms/davserver/lib/devinstall -l schema1:pkgcfg:config: davserver -v -m -i /opt/sun/comms/davserver/lib/config-templates/config.ins /opt/sun/comms/davserver/lib/config-templates /opt/sun/comms/davserver/lib/jars /opt/sun/comms/davserver/lib /opt/sun/comms/davserver/web-src/config /opt/sun/comms/davserver/web-src/config/templates ===== Tue Oct 27 01:04:41 JST 2009 ===== Running /bin/sh -c echo U9SdPf85tPXY/DrEPm22Tw== > /var/opt/sun/comms/davserver/config/davserverkey.txt ===== Tue Oct 27 01:04:41 JST 2009 ===== Running /opt/sun/comms/davserver/lib/ldapmodify -h sw-79.japan.sun.com -p 10389 -D cn=Directory Manager -j /opt/sun/comms/davserver/lib/config- templates/ugdir5593166077831705448 -c -e /opt/sun/comms/davserver/data/install/usergroup.ldif.rej -f /opt/sun/comms/davserver/data/install/usergroup.ldif ===== Tue Oct 27 01:04:42 JST 2009 ===== Running /opt/sun/comms/davserver/lib/ldapmodify -h sw-79.japan.sun.com -p 10389 -D cn=Directory Manager -j /opt/sun/comms/davserver/lib/config- templates/ugdir5593166077831705448 -c -e /opt/sun/comms/davserver/data/install/dctree-trunk.ldif.rej -f /opt/sun/comms/davserver/data/install/dctree-trunk.ldif ===== Tue Oct 27 01:04:43 JST 2009 ===== Running /opt/sun/comms/davserver/lib/ldapmodify -h sw-79.japan.sun.com -p 10389 -D cn=Directory Manager -j /opt/sun/comms/davserver/lib/config- templates/ugdir5593166077831705448 -c -e /opt/sun/comms/davserver/data/install/dctree-branch.ldif.rej -f /opt/sun/comms/davserver/data/install/dctree-branch.ldif ===== Tue Oct 27 01:04:43 JST 2009 ===== Running /opt/sun/comms/davserver/lib/ldapmodify -h sw-79.japan.sun.com -p 10389 -D cn=Directory Manager -j /opt/sun/comms/davserver/lib/config- templates/ugdir5593166077831705448 -c -e /opt/sun/comms/davserver/data/install/dctree-leaf.ldif.rej -f /opt/sun/comms/davserver/data/install/dctree-leaf.ldif ===== Tue Oct 27 01:04:44 JST 2009 ===== Running /bin/sh -c /opt/sun/comms/davserver/sbin/config-appsvr deploy ******** ===== Tue Oct 27 01:07:23 JST 2009 ===== Running /bin/sh -c /bin/mkdir -p /opt/sun/comms/davserver/install/davserver- config_20091027010150 ===== Tue Oct 27 01:07:23 JST 2009 ===== Running /bin/sh -c /bin/cp -p /opt/sun/comms/davserver/lib/config- templates/DavserverCfg.properties /opt/sun/comms/davserver/install/davserver- config_20091027010150/DavserverCfg.properties Sequence Completed PASSED: /bin/rm -rf /opt/sun/comms/davserver/config /opt/sun/comms/davserver/data /opt/sun/comms/davserver/log : status = 0 PASSED: /opt/sun/comms/davserver/lib/devinstall -l schema1:pkgcfg:config: davserver -v -m -i /opt/sun/comms/davserver/lib/config-templates/config.ins /opt/sun/comms/davserver/lib/config-templates /opt/sun/comms/davserver/lib/jars /opt/sun/comms/davserver/lib /opt/sun/comms/davserver/web-src/config /opt/sun/comms/davserver/web-src/config/templates : status = 0 PASSED: /bin/sh -c echo U9SdPf85tPXY/DrEPm22Tw== > /var/opt/sun/comms/davserver/config/davserverkey.txt : status = 0 PASSED: /opt/sun/comms/davserver/lib/ldapmodify -h sw-79.japan.sun.com -p 10389 -D cn=Directory Manager -j /opt/sun/comms/davserver/lib/config- templates/ugdir5593166077831705448 -c -e /opt/sun/comms/davserver/data/install/usergroup.ldif.rej -f /opt/sun/comms/davserver/data/install/usergroup.ldif : status = 0 PASSED: /opt/sun/comms/davserver/lib/ldapmodify -h sw-79.japan.sun.com -p 10389 -D cn=Directory Manager -j /opt/sun/comms/davserver/lib/config- templates/ugdir5593166077831705448 -c -e /opt/sun/comms/davserver/data/install/dctree-trunk.ldif.rej -f /opt/sun/comms/davserver/data/install/dctree-trunk.ldif : status = 0 PASSED: /opt/sun/comms/davserver/lib/ldapmodify -h sw-79.japan.sun.com -p 10389 -D cn=Directory Manager -j /opt/sun/comms/davserver/lib/config- templates/ugdir5593166077831705448 -c -e /opt/sun/comms/davserver/data/install/dctree-branch.ldif.rej -f /opt/sun/comms/davserver/data/install/dctree-branch.ldif : status = 20 PASSED: /opt/sun/comms/davserver/lib/ldapmodify -h sw-79.japan.sun.com -p 10389 -D cn=Directory Manager -j /opt/sun/comms/davserver/lib/config- templates/ugdir5593166077831705448 -c -e /opt/sun/comms/davserver/data/install/dctree-leaf.ldif.rej -f /opt/sun/comms/davserver/data/install/dctree-leaf.ldif : status = 0 PASSED: /bin/sh -c /opt/sun/comms/davserver/sbin/config-appsvr deploy ******** : status = 0 PASSED: /bin/sh -c /bin/mkdir -p /opt/sun/comms/davserver/install/davserver- config_20091027010150 : status = 0 PASSED: /bin/sh -c /bin/cp -p /opt/sun/comms/davserver/lib/config- templates/DavserverCfg.properties /opt/sun/comms/davserver/install/davserver- config_20091027010150/DavserverCfg.properties : status = 0 All Tasks Completed. Please check configuration log /opt/sun/comms/davserver/install/davserver-config_20091027010150.log for further details. The web container instance configuration was modified successfully. Configuration Details: Product Result More Information 1. Sun Java System Calendar Server Configured Available 2. Done Enter a number corresponding to the desired selection for more information, or enter 2 to continue [2]: You have successfully configured Sun Java System Calendar Server 7. Please refer to the Sun Java System Calendar Server 7 Administration Guide for instructions on using the command line tool (davadmin) for the ongoing administration of your deployment. mv /opt/sun/comms/davserver/install/saveState20091027010145 /opt/sun/comms/davserver/install/davserver-config_20091027010150/saveState Copying factory settings to /opt/sun/comms/davserver/data/setup -- Configuring Service Tag for Calendar Server sw-79# ※ Schema 1 利用の設定 sw-79# cd /opt/sun/comms/davserver/ sw-79# ls Legal_Folder data lib sbin config install logs web-src sw-79# cd sbin sw-79# ls config-appsvr config-servicetags init-config config-rewar davadmin locatejdk sw-79# ./davadmin --help davadmin [ version | config | calendar | calresource | db | migration ] Run any of the above with -h for complete help on a specific command. davadmin [-V] [-h] -V | --version Display the version information of this tool. -h | --help Display this message. sw-79# ./davadmin o config -u admin -o base.ldapinfo.dcroot Enter Admin password: ********** base.ldapinfo.dcroot: o=internet sw-79# ./davadmin config -u admin -o base.ldapinfo.schemalevel Enter Admin password: ********** base.ldapinfo.schemalevel: 2 sw-79# ./davadmin config -u admin -o base.ldapinfo.schemalevel -v 1 Enter Admin password: ********** sw-79#