[Previous] [Table of Contents]
This chapter describes how to use command-line arguments for:
3.2 Specifying Principal Name/Password Authentication
3.3 Specifying Principal Name/Keytab Authentication
3.4 Specifying the Default Domain
3.5 Configuring the Audit Log
3.6 Setting the Policy Cache Lifetime
Applications are required to pass command-line arguments:
n To authenticate a principal for secure servers (servers that will participate in secure communications with a client). You can use either Principal Name/Password authentication (Section 3.2) or Principal Name/Keytab Authentication (Section 3.3).
All arguments are passed to the CORBA::ORB_init (ORB initialization) routine so that the security runtime can process them.
3.1 Initializing the Security Service
NetCrusader/CORBA automatically registers its client- and server-side interceptors with the ORB at startup. Start the application with the following command-line argument:
java -DORBservices=com.gradient.NetCCorba
As an option, you can set the properties in code, as follows:
System.getProperties.setProperty("ORBservices", "com.gradient.NetCCorba");
You must execute this command prior to calling ORB_init(), which initializes the CORBA ORB and the NetCrusader Security service.
3.2 Specifying Principal Name/Password Authentication
An application can specify the name of the principal to authenticate. Applications are not required to authenticate principals, but if you specify the principal name on the command line then the "own" credentials for the application will contain credentials for this principal.
Pass both of the following parameters:
-GradPrincipal parameter Allows the application to specify the name of the principal to authenticate.
-GradPassword parameter Specifies that an authentication attempt uses the username/password method, and supplies the password to be used. Do not use this parameter with the -GradKeytab parameter.
For example, the following command specifies that the principal to be authenticated is admin:
C:\>
NetCrusader/CORBA also supports authentication using a keytab file (see Section 3.3).
java -DORBservices=com.gradient.NetCCorba -DGradPrincipal=admin
-DGradPassword=passwd02 FinanceManager
3.3 Specifying Principal Name/Keytab Authentication
Using command-line options, you can use a keytab file rather than a username/password scheme to authenticate a CORBA server.NetCrusader/CORBA also provides a utility that you can use to generate the keytab file.
Parameters for Createkt are:
-c) parameter (optional). If you specify the -c parameter, then Createkt creates the server account. If you do not specify the -c parameter, Createkt assumes that the server account exists.
-c parameter to create a new account, Createkt generates a new account with the specified name even if there was an existing account with the same name. The old account will no longer be available.
c
reatekt server_name server_password admin_name admin_principal file_name
[-c]
After you create the keytab file, configure the CORBA server application to use it by specifying the appropriate command line arguments, as described in Section 3.3.2.
3.3.2 Specifying Command Line Options
Do not use this parameter with the -
GradPassword parameter.
C:\>
java -DORBservices=com.gradient.NetCCorba -DGradPrincipal=fred
-DGradKeytab=c:\NetCCorba\bin\keytable.tab FinanceManager
3.4 Specifying the Default Domain
If this parameter is not specified, the default domain for the application is the root domain.
C:\>
java -DORBservices=com.gradient.NetCCorba -DGradPolicy=bank
FinanceManager
3.5 Configuring the Audit Log
You can direct NetCrusader/CORBA to filter all auditable events to a local log file.
Specify the log file, its name, and location using the parameter
-GradLogFile <path-specifier>. You can specify a full path or only a filename.
GradLogFile parameter, no log file is created.
C:\>
java -DORBservices=com.gradient.NetCCorba
-DGradLogFile=c:\NetCCorba\Logs\log8_99.log FinanceManager
3.6 Setting the Policy Cache Lifetime
For example, the following command changes the cache lifetime to 30 minutes (1800 seconds):
Java Sample:C:\>
java -DORBservices=com.gradient.NetCCorba
-DGradCacheLifetime=1800 FinanceManager
The following command line prevents the cache from being refreshed:
C:\>
java -DORBservices=com.gradient.NetCCorba -DGradCacheLifetime=infinite
FinanceManager
[Previous] [Table of Contents]
To make comments or ask for help, contact support@gradient.com.