The Security sample application demonstrates using password authentication. For instructions for building and running the Security sample application, see the Guide to the CORBA University Sample Applications.
4. Execute the runme command.Before you can use the Secure Simpapp sample application, obtain a certificate and private key (IIOPListener.pem) for the IIOP Listener/Handler from the certificate authority in your enterprise and load the certificate in a Lightweight Directory Access Protocol (LDAP)-enabled directory service. The runme command prompts you for the pass phrase for the private key for the IIOP Listener/Handler.drive:\TUXdir\samples\corba\simpappSSL/usr/local/TUXdir/samples/corba/simpappSSLYou will use the files listed in Table 10‑1 to build and run the Secure Simpapp sample application.
The makefile for the Secure Simpapp sample application on the UNIX operating system. This file is used to manually build the Secure Simpapp sample application. Refer to the Readme.html file for information about manually building the Secure Simpapp sample application. The UNIX make command needs to be in the path of your machine. The makefile for the Secure Simpapp sample application on the Windows 2003 operating system. This makefile can be used directly by the Visual C++ nmake command. This file is used to manually build the Secure Simpapp sample application. Refer to the Readme.html file for information about manually building the Secure Simpapp sample application. The Windows 2003 nmake command needs to be in the path of your machine.On the UNIX operating system platform, you also need to change the permission of runme.ksh to give execute permission to the file, as follows:Table 10‑2 lists the environment variables required to run the Secure Simpapp sample application.
A subdirectory of APPDIR where files that are created as a result of executing the runme command are stored. For example:
1. ksh prompt>export TUXDIR=directorypathThe runme command automates the following steps:
2. Loading the UBBCONFIG file.
5. Starting the server application using the tmboot command.
7. Stopping the server application using the tmshutdown command.
Note: To build and run the Secure Simpapp sample application, enter the runme command, as follows:prompt>cd workdirectoryksh prompt>cd workdirectoryDuring execution of the runme command, you are prompted for a password. Enter the pass phrase of the private key of the IIOP Listener/Handler.Table 10‑3 lists the C++ files in the work directory generated by the runme command.
Table 10‑3 C++ Files Generated by the runme Command Generated by the idl command, this file contains the client stubs for the SimpleFactory and Simple interfaces. Generated by the idl command, this file contains the client definitions of the SimpleFactory and Simple interfaces. Generated by the idl command, this file contains the server skeletons for the SimpleFactory and Simple interfaces. Generated by the idl command, this file contains the server definition for the SimpleFactory and Simple interfaces.
Contains the input that the runme command provides to the CORBA client application. Contains the output produced when the runme command executes the CORBA client application. Contains the output that is expected when the CORBA client application is executed by the runme command. The data in the output file is compared to the data in the expected_output file to determine whether or not the test passed or failed. Contains the output generated by the runme command. If the runme command fails, check this file for errors. Contains filtering and notification rules used by the TMSYSEVT (system event reporting) process. This file is generated by the tmboot command in the runme command. A binary version of the UBBCONFIG file. A log file that contains messages generated by the tmboot command.prompt> set TOBJADDR=corbalocs://host:port
prompt> simple_client -ORBid BEA_IIOP -ORBpeerValidate none
String?
Hello World
HELLO WORLD
hello worldksh prompt>export TOBJADDR=corbalocs://host:port
ksh prompt>simple_client -ORBid BEA_IIOP -ORBpeerValidate none
String?
Hello World
HELLO WORLD
hello world