2

我有一个来自 sourceforge 的 TN5250 模拟器:http://sourceforge.net/projects/tn5250/正在尝试通过我在此处找到的说明启用自动登录:http: //www.faqs.org/rfcs/rfc2877.html

我发送的字符串基本上如下(我知道这是作为明文传递的,我不确定是否需要加密传递):"\u0000USER\u0001"+user+"\u0003IBMRSEED\u0001\u0003IBMSUBSPW\ u0001"+通过

我调用的方法用以下十六进制字符填充字符串的开头:FF FA 27 00 00

上面提到的相同方法还使用以下十六进制字符填充字符串的末尾:FF F0

仅供参考:我没有收到来自服务器的回复说 WONT NEW-ENVIRON

不幸的是,我没有自动登录到 AS400,而且我对 AS400 的了解也不够多,不知道为什么。因此,我想问的第一个问题是如何确定这种方法失败/有效?

下一个问题是:我做错了什么吗?

感谢您提出任何其他批评和建议。

4

1 回答 1

3

HOWTO中的第 4.7 节解释了自动登录的方法。

编辑:断开的链接,文本粘贴在这里。

4.7 Automatic login
You can configure tn5250 to automatically log in to the iSeries using the env.USER, env.IBMSUBSPW,
env.IBMPROGRAM, env.IBMIMENU, and env.IBMCURLIB arguments. If you wanted to automatically log in as
user MYUSER with password MYPASSWORD you would set these arguments like this:
env.USER = MYUSER
and
env.IBMSUBSPW = MYPASSWORD
The env.IBMPROGRAM, env.IBMIMENU, and env.IBMCURLIB arguments refer to the respective signon fields for
program, menu, and current library. These have the same syntax as env.USER and env.IBMSUBSPW. Adding
these to our .tn5250rc file results in:
as400 {
host = as400.mydomain.com
env.TERM = IBM-3477-FC
env.DEVNAME = MYDISPLAY
+underscores
map = 37
env.USER = MYUSER
env.IBMSUBSPW = MYPASSWORD
env.IBMPROGRAM = MYPROGRAM
env.IBMMENU = MYMENU
env.IBMCURLIB = MYLIBRARY
}

编辑 2在Midrange wiki上粘贴全文。

于 2012-09-20T21:10:28.227 回答