| Prev | Next | Start of Chapter | End of Chapter | Contents | Glossary | Index | Comments | (12 out of 13)

Using The Login Dialog

G2's login dialog allows a secure G2 to gather the information required to authorize each user who attempts to connect to a running G2 process:


After a user has logged into a secure G2, G2 updates attributes in the g2-window item that G2 associated with the window that the user sees:

For a G2 installation that does not rely on a secure authorization file, a G2 user or Telewindows user can easily display the login dialog and use it to change attributes in the g2-window item associated with the window at which he or she is working.

Displaying the Login Dialog

A secure G2 displays the login dialog in G2's local window (if present) each time it is launched, and in a remote window each time a Telewindows user attempts a connection. For a description of how a secure G2 relies on the login dialog, see Accepting a Connection From a Telewindows Process.

A G2 that is not secure displays the login dialog only when the user presses Control + y. Doing this is one way for a G2 or Telewindows user to change interactively the values of the G2-user-name, G2-user-mode, and g2-window-specific-language attributes for the g2-window item that is associated with the window at which he or she is working.

Determining Default Values in the Login Dialog

Your KB can determine the default values of some fields in the login dialog. For example, if the Initial-g2-user-mode-for-this-kb attribute in the KB Configuration system table has a value other than none, G2 initializes the G2 User Mode field in the login dialog to that value. Also, the Current-language attribute of the Language Parameters system table determines the value of the G2 Window Specific Language field in the login dialog.

Notice that the fields in the G2 Login dialog correspond to attributes of the G2-WINDOW class, as follows:

Field in G2 Login Dialog Attribute of G2-WINDOW Class
User name
G2-user-name
Password
Not applicable
G2 User Mode
G2-user-mode
G2 Window Name or Class
Not applicable
G2 Window Specific Language
G2-window-specific-language

| Prev | Next | Start of Chapter | End of Chapter | Contents | Glossary | Index | Comments | (12 out of 13)

Copyright © 1997 Gensym Corporation, Inc.