Example One: %Service_Console
In this example you experiment with Password, Unauthenticated, and Cascading authentication using the Terminal.
In the first part of the example we set the authentication mechanism for %Service_Console (the service that controls Terminal) to unauthenticated. Then we access Terminal.
Here are the steps:
-
Click %Service_Console on the Services page (click [Home] > [System Administration] > [Security] > [Services]) of the Management Portal.
-
On the Edit Definition page for %Service_Console click Unauthenticated and make sure that no other mechanism is selected.
-
Click Save.
-
Now launch Terminal. Click the InterSystems Launcher in your System Tray. Click Terminal from the menu.
-
You are not prompted for a password. Terminal opens immediately at the namespace prompt.
USER>
-
Execute the Write $UserName command at the prompt:
USER>Write $UserName UnknownUser USER>
Since we are using unauthenticated access, we access Caché through the UnknownUser account.
-
Close Terminal. Click File—>Exit.
This example assumes that you have installed Caché with minimal security, that you are connecting to a local Caché instance, and that you are using Windows. If you are using a local Caché instance in a non-windows environment, then you open a terminal session using the csession command rather than the Caché Cube. Otherwise the exercise is the same.