docmain.css" /> 4. Create an IBM 3270 session with an automated sign-on macro - Automated Sign-on for Mainframe Administrator Guide

4.1 4. Create an IBM 3270 session with an automated sign-on macro

(The number in the heading refers to the Configuration Workflow.)

These settings are needed for testing, and can also be used in production.

For any supported emulator, the MSS administrator will:

  • Create an IBM 3270 session for the specified emulator type.

  • Add an automated sign-on macro that logs on to the host session.

NOTE:For any supported emulator or session type, the automated sign-on macro must:

  • Send a host application ID to the MSS Administrative Server so that the Administrative Server can request a PassTicket from DCAS.

  • Insert the user's RACF credentials (PassTicket and mainframe user ID) that are returned from the MSS Administrative Server (to the client) into the data that is transmitted to the host. This action logs the user on to the mainframe application.

The steps to add a macro to the IBM 3270 session differ depending on your emulator and the type of session being configured.

Follow the steps for your emulator or session type:

4.1.1 Reflection or InfoConnect Desktop using Workspace Automated Sign-on

For this configuration, the MSS administrator will:

A. Create a Workspace Automated Sign-on session in MSS

  1. Open the Administrative Console to Manage Sessions, and click +Add.

  2. Select Reflection/InfoConnect Desktop as the Product.

  3. Select Workspace Automated Sign-on as the Session type.

  4. Enter a Session name that exactly matches the name of the host to which the session document files are configured to connect.

    For example, if the host name is myHost, then the Session name must be myHost.

    If your environment has session documents that are configured to connect to variations of host names (such as fully qualified names or IP Addresses), create a separate Workspace Automated Sign-on session for each name. For examples, see the Manage Sessions Help.

B. Upload a session document that contains an automated sign-on macro

  1. Click Browse. Select the Reflection or InfoConnect Workspace session document file (ASM.rd3x) that contains the automated sign-on for mainframe login macro.

    The Reflection Desktop administrator created this session document during Initial Setup.

  2. Click Save to upload the settings file and save the session.

    The session is added to the Manage Sessions list and is available to be assigned.

  3. Continue with 5. Assign access to one user for testing.

4.1.2 Reflection or InfoConnect Desktop using Managed Sessions

For this configuration, the MSS administrator will:

A. Create a Workspace session in MSS

  1. Open the Administrative Console to Manage Sessions, and click +Add.

  2. Select Reflection/InfoConnect Desktop as the Product.

  3. Select Workspace as the Session type.

  4. Enter a Session name.

  5. Click Launch to open the session.

  6. Create a new 3270 terminal session. In the Create New Document dialog, 3270 terminal should be selected. Click Create.

  7. If the session will connect through the Security Proxy Server, continue with steps 8-11 to configure security.

    Otherwise, enter the name or IP address of the host computer, click OK, and proceed to step 12.

  8. In the Create New 3270 Terminal Document dialog, check Configure additional settings (at the bottom of the dialog), and click OK.

  9. On the Settings dialog, under Host Connection, select Set Up Connection Security and click the Security Settings button.

  10. On the SSL/TLS tab in the Security Properties dialog, check both Use SSL/TLS security and Use Security Proxy. Configure the Security Proxy settings. Click OK.

    (The Security Proxy server name and port are listed on the Administrative Console > Security Proxy panel.)

  11. Accept the connection security settings and click OK. Continue to configure the features you want users to be able to access or edit. Click Help for guidance.

  12. Keep the session open and connected to the host. Continue with B. Record and edit a macro in a Reflection Desktop session

B. Record and edit a macro in a Reflection Desktop session

The logon macro is initiated when an authenticated user launches the session to connect or reconnect to the host.

NOTE:These instructions are guidelines to enable Automated Sign-On for Mainframe. Although error- checking is omitted for brevity and clarity, the macro author should check for errors as required by the application.

  1. In the 3270 session you just created, start the macro recorder (Macros > Record VBA).

  2. Connect to the host and log on to the appropriate host application using a valid user name and password.

    You will edit the macro to remove specific user information and replace it with values that support logon by any authenticated user.

  3. Stop the macro recorder (Macros > Stop Recording).

  4. In the Recording Complete dialog, name the macro (for example TSO_logon). Click OK.

  5. Save the macro with the current document (session) or in the common project.

    By saving the macro with the current document, it will be transferred to the MSS Administrative Server when the session is saved in the Administrative Console, and then distributed to users who run this session.

  6. Open the Visual Basic Editor (Macros > Visual Basic). Locate your macro: open Project > Modules, and double-click Recorded (or right-click > View Code).

  7. After retrieving the ibmCurrentTerminal object, add this line:

    ibmCurrentTerminal.GetDASOPassTicket("APPID")

    where "APPID" is replaced with the appropriate host application ID.

  8. Edit the statement that sends your user name. Remove your user name and replace it with the mainframe username that was retrieved by the GetDASOPassTicket function call.

    The edited line should look like this:

    ibmCurrentScreen.SendKeys(ibmCurrentTerminal.DASOUserID)
  9. a. Comment out or delete the line that uses the PasswordBox function to prompt the user for the password.

    hiddenTextEntry = ibmCurrentTerminal.Macro.PasswordBox("", "")
    If (hiddenTextEntry = "") Then
        Err.Raise 5002, "Hidden TextEntry", "No Value Provided.", "VBAHelp.chm", "5002"
    End If

    b. Replace that line with one that looks like this:

    ibmCurrentScreen.SendKeys(ibmCurrentTerminal.DASOPassTicket)
  10. Save the macro. Click Yes to send settings to the MSS Administrative Server.

    Close the Visual Basic editor, and keep the session open.

  11. Open Document Settings (File > Settings > Document Settings). Under Host Connection, click Configure Advanced Connection Settings.

  12. In Configure Advanced Connection Settings, under Connection Action, check the boxes to

    • Run a macro or other action after the initial connection.

      Select the logon macro and click OK.

    • Run when reconnecting.

      Select the logon macro and click OK. The macro will be initiated when a user connects to a mainframe session.

  13. Save the session. (Click Save or Exit.) Click Yes to send the settings to the MSS Administrative Server.

  14. Continue with 5. Assign access to one user for testing.

4.1.3 Reflection ZFE

To configure Reflection ZFE to use Automated Sign-on, the MSS administrator will:

See also How to Set Up Automated Single Sign-On for Mainframe in the Reflection ZFE Help.

A. Create a Reflection ZFE session in MSS

  1. Open the Administrative Console to Manage Sessions, and click +Add.

  2. Select Reflection/ZFE as the Product.

  3. Enter a Session name.

  4. Click Launch to open the session.

  5. Confirm the session Type is IBM 3270.

  6. Enter the Host name and Port, and click Save.

  7. While the session is open and connected to the host, continue with B. Record and edit a macro in a Reflection ZFE session.

B. Record and edit a macro in a Reflection ZFE session

The logon macro is initiated when an authenticated user launches the session to connect or reconnect to the host.

NOTE:These instructions are guidelines to enable Automated Sign-On for Mainframe. Although error- checking is omitted for brevity and clarity, the macro author should check for errors as required by the application.

  1. In the IBM 3270 session you just created, create a macro to log on to this mainframe session. See Creating Macros in Reflection ZFE Help.

  2. Name the macro, for example ASO_logon.

  3. Edit the macro to contain the AutoSignon object that provides the methods needed to create a Reflection ZFE login to use with Automated Sign-on.

    See the example in Automatic sign-On Macro for Mainframes in the Reflection ZFE Help.

  4. Save the macro and send the settings to the MSS Administrative Server.

  5. Save the session and send the settings to the MSS Administrative Server.

  6. Continue with 5. Assign access to one user for testing.

4.1.4 Reflection for the Web

Create a session, and then record and edit a logon macro using Reflection ZFE or Reflection for the Web. These steps use Reflection for the Web as an example

To configure Reflection for the Web to use Automated Sign-on, the MSS administrator will:

A. Create a Reflection for the Web IBM 3270 session

  1. Open the Administrative Console to Manage Sessions, and click +Add.

  2. Select Reflection for the Web as the Product.

  3. Select IBM 3270 as the Session type.

  4. Enter a Session name.

  5. Accept or edit the default settings, and click Launch to open the session.

  6. In Connection Setup, enter the name or IP address of the Host computer. Click OK.

  7. Continue to configure the features you want users to be able to access or edit. Click Help for guidance.

  8. Verify that the session connects to the host.

  9. Keep the session open and continue with B. Record and edit a macro in a Reflection for the Web session

B. Record and edit a macro in a Reflection for the Web session

The logon macro is initiated when an authenticated user launches the session to connect or reconnect to the host.

NOTE:These instructions are guidelines to enable Automated Sign-On for Mainframe. Although error- checking is omitted for brevity and clarity, the macro author should check for errors as required by the application.

  1. In the open IBM 3270 session you created, start the macro recorder (Macro > Start recording).

  2. Connect to the host and log on to the appropriate host application using a valid user name and password.

    You will edit the macro to replace specific user information with values that support logon by any authenticated user.

  3. Click Macro > Stop Recording...

  4. Enter the macro name, such as TSO Logon.

  5. Save the macro and click OK to acknowledge the alert message, which tells you that the macro will be saved to the MSS Administrative Server only after you save and exit the session.

  6. Click Macro > Macros... Select the macro you just created and click Edit.The macro opens for editing in a Macro Editor window.

  7. Below the variable definitions at the top of the recorded macro, add the following line:

    var credentials = eclcredentials.getDASOPassTicket( "APPID" );

    where "APPID" is replaced with the appropriate host application ID.

  8. In the macro’s “performAction” function, edit the statement that sends your user name.

    Remove your user name and replace it with the mainframe username that was retrieved by the getDASOPassTicket method. The edited line should look like this:

    ps.SendDASOUserID( credentials );
  9. In the macro’s “performAction” function, comment out or delete the lines that use the SendCredential method to transmit the mainframe password. Replace it with a new line that transmits the passticket retrieved from the MSS Administrative Server.

    The modified line should look like this:

    ps.SendDASOPassTicket( credentials );
  10. Save the macro and close the Macro Editor window.

  11. To configure the macro to run on session startup, or to run on each connection, click Macros > Macros…

  12. In the Macros dialog box, select “Run at startup” if you want the automated sign-on macro to run after the session launches.

    Click the Events button, then assign the macro as the “On connect macro” if you want the automated sign-on macro to run every time the session connects.

  13. Close the Macros dialog box, and then Save and Exit the session to send the settings to the MSS Administrative Server.

  14. Continue with 5. Assign access to one user for testing.

4.1.5 Rumba+ Desktop

To configure Rumba+ Desktop to use Automated Sign-on, the MSS administrator will:

A. Create a Rumba+ session in MSS

  1. Open the Administrative Console to Manage Sessions, and click +Add.

  2. Select Rumba+ Desktop as the Product.

  3. Enter a Session name. Continue with B. Upload a Rumba+ Session Profile

B. Upload a Rumba+ Session Profile

  1. Click Browse. Select the Rumba+ session profile that contains the automated sign-on for mainframe login macro.

    The Rumba administrator created this session profile during Initial Setup.

  2. Click Save to upload the profile and save the session.

    The session is added to the Manage Sessions list and is available to be assigned.

  3. Continue with 5. Assign access to one user for testing.