![]() |
![]() |
![]() |
![]() |
![]() |
For a full discussion of implementing security in a CORBA application, see Using Security in CORBA Applications.
• The University server application implements an additional operation, get_student_details(), on the Registrar object to return information about a student. After a proper CORBA logon is complete, the get_student_details() operation accesses the student information in the database to obtain the student information needed by the client logon operation.Figure 4‑1 illustrates how the Security sample application works.Figure 4‑1 The Security Sample ApplicationThis section describes the development process required when adding security to CORBA client and server applications. These steps are in addition to the development steps outlined in Chapter 3, “The Basic Sample Application.”During the development process, you would define the StudentDetails struct and the get_student_details()operation in Object Management Group (OMG) Interface Definition Language (IDL).
• The Tobj::PrincipalAuthenticator operation of the SecurityCurrent environmental object to return the type of authentication expected by the Oracle Tuxedo domain.For the Security sample application, this code has already been added for you. For information about adding security to CORBA client applications, see Using Security in CORBA Applications.During the development process, you would write the method implementation for the get_student_details()operation. For information about writing method implementations, see Creating CORBA Server Applications.In the Oracle Tuxedo software, security levels are defined for the configuration by the system administrator. The system administrator defines the security for the Oracle Tuxedo domain by setting the SECURITY parameter RESOURSES section of the UBBCONFIG file to the desired security level. In the Security sample application, the SECURITY parameter is set to APP_PW for application-level security. For information about adding security to an Oracle Tuxedo domain, see Setting Up an Oracle Tuxedo Application and Using Security in CORBA Applications.
5. Load the UBBCONFIG file.
Note: In addition, you need to copy the utils directory into your work directory. The utils directory contains files that set up logging, tracing, and access to the University database.You will use the files listed in Table 4‑1 to create the Security sample application.
The C++ source code for method implementations of the CourseSynopsisEnumerator, Registrar, and RegistrarFactory interfaces. The UBBCONFIG file for the UNIX operating system. The UBBCONFIG file for the Windows operating system. The makefile for the Security sample application on the UNIX operating system. The makefile for the Security sample application on the Windows operating system. oradbconn.cpp and oranoconn.cpp samplesdb.cpp and samplesdb.h unique_id.cpp and unique_id.h samplesdbsql.h and samplesdbsql.pc The SQL for the University database. This file is located in the \utils directory.Use the following command to load the UBBCONFIG file:The build process for the UBBCONFIG file prompts you for an application password. This password will be used to log on to the client applications. Enter the password and press Enter. You are then prompted to verify the password by entering it again.During the development process, you would use the buildobjclient and buildobjserver commands to build the client and server applications. However, for the Security sample application, this step has been done for you.The directory for the Security sample application contains a makefile that builds the client and server sample applications.
•
•
•
•
2. At the Enter student id: prompt, enter any number between 100001 and 100010.
3.
4. At the Enter domain password: prompt, enter the password you defined when you loaded the UBBCONFIG file.
5.