4.1.4 JSMDirect Set up on Windows
If IIS is installed on the target PC, the install/upgrade will automatically configure IIS so that the physical folder JSMCGI is mapped to the virtual folder cgi-bin.
If IIS is not installed, you will need to manually configure the Web Server.
You must manually specify the Windows logon for executing the jsmdirect.exe CGI program.
By default, IIS would use the default Windows logon IUSR_<machinename> to execute CGI programs.
Note that the specific Windows logon must have read/write access rights to the LANSA installation directory, as a minimum, in order to run LANSA applications properly. (Normally, the default Windows logon does not have enough privileges to access the LANSA installation directory and will not be able to run LANSA applications properly.)
The specific Windows logon is also required for obtaining log files from jsmdirect.exe. For more details refer to Log files (Windows).
Ensure that x_lansa.pro contains an entry USER=<the LANSA user profile that JSM http requests will be given> or PSTC=Y. When a request is received by JSM to run a function, this is the LANSA user profile that the job will run under. Also provide the DBUS and PSWD parameters, unless database trusted connections are being used or the user id and password are contained in the ODBC DSN.
To specify the Windows logon:
(This description is based on the Internet Services Manager for Windows 2000. The equivalent administration programs in other Windows versions may be slightly different.)
1. Start the Internet Services Manager.
2. Browse to the appropriate virtual directory eg.
and right click on the file in the virtual directory and select menu item .3. The
dialog box will open. Select the tab and then the button in the frame titled4. The
dialog box will open. Check (select) the option and press the button next to the label.5. The
dialog box will open. Uncheck (i.e. deselect) the option - this is IMPORTANT if you specify a Windows logon username which is not located on the workstation - then specify the Windows logon username and password used to run LANSA applications. The case of the password must match the case of the password as it was entered into Windows user maintenance. Note that if a workstation belongs to a Windows domain and a Windows User exists on both the Domain and the Local (on the workstation), the Domain User logon takes precedence.6. Close all the above dialogs by clicking on the
button.