Windows Telnet

Telnet is an application protocol used on the Internet or local area network to provide a bidirectional interactive text-oriented communication facility using a virtual terminal connection. jBASE is supplied with a Windows telnet server to enable you to telnet into a windows server.

After connecting to the telnetd service by using your password, you will be logged into the NT system in a simple execution mode of a normal DOS command shell. You may however change the startup program from cmd.exe to any jBASE program including the jsh.exe (jSHELL).

Account Naming Issues

Windows NT account names can exist in several name spaces. For example, a Windows NT station in an Advanced Server domain has a local Administrator account and also has a corresponding Administrator account in its default domain. jBASE TCP Remote Logon Services use the following rules to disambiguate account names:

  • If the account name is qualified (contains a backslash), the name preceding the backslash is first treated as a domain name, if there is no corresponding domain, then it is treated as a machine name. (Example: MainDomain\Administrator).
  • If the account name is not qualified (does not contain a backslash), then the name is first searched on the local machine. If the account name is not found, then it is searched in the default domain of the machine.

User Environment

When you log in, the environment will contain all system-wide environment variables that are set on the local system. They will not receive their normal user environment settings at this moment in time (the Win32 API does not provide this ability). To circumvent this omission in the Win32 API, the jBASE TCP Remote Logon Services automatically set the following environment variables:

Environment Variable Description

USERDOMAIN

The domain name in which the user account is defined.

USERNAME

The account name of the user.

HOMEPATH

The path name of the home directory of the user. If the user’s home directory is a remote path, then this will contain the Universal Naming Convention (UNC) name of the user’s home directory.

HOMESHARE

Always set to NULL.

HOMEDRIVE

If the user’s home directory is local, then this will contain the drive letter followed by a colon. If the home directory is remote, then this is set to NULL.

JBC_TELNET_FLAG

This is set so that a user process can determine if it is being run via telnet session or via the console.

Since the remote user shares the drive map with all other users, it is not possible to automatically mount a remote user’s remotely named directory on its normal drive letter. However, many sites may wish to establish conventions whereby remote users are allowed to use certain drive letters remotely. Further, other environment variables may need to be set at logon. Thus, the jBASE TCP Remote Logon Services execute the remote.cmd file if present in the user’s home directory. If a remote user’s home directory is specified as a remote directory, then the user’s initial directory will be C:\. If desired, then this can be overridden in remote.cmd.

By default if the user has a remote.cmd file, then it is read by the telnet process and parsed. The first command it finds will be executed. This file is intended mainly to allow the user to set up the environment, and so this parsing is primitive. For example, only the first command it finds is executed, so a remote.cmd created by the jBASE iju for instance will be the jsh. To disable this feature and have the NT command proceessor read the file, the registry setting ParseProfile should be set to 0. You should therefore avoid using command such as cd and call.

NOTE: If supported by the telnet client, then the TERM variable will also be set.

Customisation

You can edit the registry by using Registry Editor (Regedit.exe or Regedt32.exe). If you use Registry Editor incorrectly, you can cause serious problems that may require you to reinstall your operating system. jBASE does not guarantee that problems that you cause by using Registry Editor incorrectly can be resolved. Use Registry Editor at your own risk.

If you change or create any of the registry entries below, then you will need to stop and restart the services with the new or changed values before those entries takes effect.

Troubleshooting

This section provides the technical support when you work with Windows Telnet.


Bookmark Name Actions
Feedback
x