Version 6.3.8 für Windows
 —  Natural Security  —

Logging On

This section describes the rules which apply when a user logs on to Natural under Natural Security. It covers the following topics:


Logon Procedure

Note:
If a user invokes Natural under Natural Security and the FNAT system file specified in the parameter file/module used is a non-Security system file, Natural cannot be started, and the user will receive an appropriate error message.

The logon procedure is used by Natural Security to ensure that the user who is logging on to Natural is authorized for the library requested.

A logon must be executed successfully before any Natural session can be started.

A logon screen (on mainframe computers, under UNIX and OpenVMS) or logon dialog box (under Windows) is provided for the user to enter the information required for the logon.

Logon Screen / Logon Dialog Box

When Natural Security is installed, the Natural Security logon screen will be displayed whenever a user invokes Natural.

Under Windows, the logon screen is displayed as a dialog box (for the sake of consistency, however, it will also be referred to as "logon screen").

The logon screen requests the user to enter the following:

Library ID

The ID of the library to be used.

To determine which libraries are available, the user may enter his/her user ID in the user ID field and an asterisk (*) in the library ID field: a list of all libraries available to the user will be displayed. The list contains all non-protected libraries and all protected libraries to which the user is linked (either directly, or via a group whose security profile is activated). The list also contains all libraries available to the user's terminal (if the terminal is defined to Natural Security. To view a list of all libraries available to the terminal, the user may enter an asterisk (*) in the library ID field without entering a user ID.)

Note:
For a logon from the Natural Studio in a client environment via the Natural Development Server to a Map Environment on a mainframe server, the specification of an asterisk (*) as library ID is not possible.

User ID  

The ID by which the user is defined to Natural Security.

The ID of a group must not be entered; a terminal ID must not be entered either.

If no user ID is entered, Natural Security will use the ID of the terminal being used. In this case the terminal has to be defined to Natural Security; otherwise the logon will be rejected.

Password  

The password specified in the user's security profile.

If no password has been specified in the user's security profile, the password will be identical to the user ID (when a newly defined user logs on for the first time and the password is identical to the user ID, the user must change his/her password by entering a new password in the New Password field).

New Password  

If a valid password has been entered in the Password field and the user wishes/has to change that password, the user enters a new password in this field. This new password will then replace the old password and will from then on be the valid password for the user.

The following rules apply for entering values on the logon screen:

Passwords

In a user's security profile, the Natural Security administrator may change the password, and may also set a time interval, after which the user will be forced to change the password. The user will then have to enter a password and a new password to be able to log on (for details on these options, see the section User Maintenance).

If a user has forgotten his or her password, he/she will have to contact the Natural Security administrator, who may then specify a new password in the user's security profile. This will then be the valid password for the user (which he/she may change again in the logon screen).

A password or new password when entered will not be displayed on the screen.

Logon Customization

You can customize the logon screen / logon dialog box to suit your requirements:

There are also logon-related user exits available, which may be used to customize the logon procedure (see Logon-Related User Exits in the section User Exits).

Rejected Logon

A logon to a library will be rejected if:

Logon Without Library ID

If no library ID is entered in the logon screen, the default library specified in the user's security profile will be invoked.

If no default library is specified in the user's security profile, the "Privileged Groups" specified in the user's security profile will be checked (in order of entry) for a default library.

If none of the Privileged Groups has a default library either, the user's private library will be invoked.

If neither default libraries nor a private library exist, the user must enter a library ID when he or she logs on.

RESTART and FIN as Library IDs

If "RESTART" is entered as the library ID, the last RESTARTable library to which the user was logged on will be invoked (for details on the "RESTART" option, see Transactions in the section Library Maintenance).

Note:
The ID of the last RESTARTable library to which a user was logged on is shown in the field "Last Library" in the user security profile.

If "FIN" is entered as the library ID, the Natural session will be terminated.

Successful Logon

After a successful logon to a library the following may be invoked:

Note:
Internally, Natural Security performs an END OF TRANSACTION statement after a successful logon if any of the following applies:

Top of page

LOGON Command

If the first logon to a library at the beginning of a Natural session was successful, a user may change from one library to another by using the Natural system command LOGON.

See also the Natural System Commands documentation for information on the LOGON system command.

The LOGON command takes the following parameters:

LOGON Command Errors

If an error is detected during logon processing, Natural Security will display an error message.

If the LOGON command has been invoked from a library, Natural Security will invoke the error transaction defined for the library. If no error transaction is defined, the logon screen will be invoked.

Top of page

Automatic Logon

Users would normally have to log on twice, first to the operating system and second to Natural. To eliminate the need for a second logon, you may set the Natural profile parameter AUTO to AUTO=ON (which is described in the Natural Parameter Reference documentation).

As a result, an internal Natural Security logon procedure will be invoked, which uses the operating-system login name (as contained in the Natural system variable *INIT-USER) as the user ID, but no password (on the assumption that this has been verified by the operating-system logon procedure). The Natural Security logon screen will be suppressed. A logon with a user ID other than the operating-system login name will not be possible.

If AUTO=ON is used, the user has no possibility of specifying a library ID. The library to which the user will be logged on is determined by the same rules as described under Logon Without Library ID above. This means that automatic logon is only possible if a default library is specified (for the user or one of his/her Privileged Groups) or the user has a private library.

If you combine AUTO=ON with specifying a default library in a user's security profile and with specifying a startup transaction for that library, the user will receive the first screen of the default library immediately after invoking Natural without having to pass any intermediate screens (default libraries are described under Components of a User Profile in the section User Maintenance, startup transactions under Transactions in the section Library Maintenance).

If AUTO=ON is set, the system command LOGOFF has the same result as the system command FIN (see How to End a Natural Session below).

If AUTO=ON is set, and after the initial automatic logon the user tries to log on to another library and causes a logon error, the error transaction for the current library will be invoked. If no error transaction is specified, an error message will be issued and then the startup transaction (if specified) for the current library will be invoked.

Top of page

How to End a Natural Session

The following Natural system commands may be used to end a Natural session under Natural Security:

LOGOFF This command terminates a Natural session and invokes the logon screen. To leave the logon screen, you enter "FIN" as the library ID.

If the profile parameter AUTO=ON is set (see Automatic Logon above), the LOGOFF command has the same effect as the FIN command.

LOGON
(without parameters) 
This command  terminates a Natural session and starts the logon procedure, invoking either a default library or the logon screen (if no default library is defined).

See also Automatic Logon above.

FIN   This command terminates a Natural session and is used to leave Natural altogether.
Warning:
Natural Security cannot protect your Natural environment against unauthorized use if Natural users leave their terminals unattended whilst being logged on to Natural. Therefore, users should be reminded to use the LOGOFF command before they leave their terminal. Unauthorized persons will then be confronted with the Natural Security logon screen and may only use what has been defined for them to use under Natural Security.

In library security profiles, you can specify a non-activity time limit, after which a logoff will be executed automatically.

Top of page