本部分介绍对 Host Integration Server 中提供的常见通信编程接口(CPI-C)应用程序的自动登录支持。 此功能需要网络管理员的特定配置。 CPI-C 应用程序必须在主机集成服务器的客户端的局域网(LAN)端调用。 客户端必须登录到 Windows 域,并且客户端应用程序必须在受支持的 Windows 版本上运行。
若要使用此功能,CPI-C 客户端应用程序编码为使用程序级别安全性,其特殊硬编码用户名为 MS$SAME,密码为 MS$SAME。 当此会话分配从客户端流向 SNA 服务时,Host Integration Server 将查找与登录客户端所依据的 Windows 帐户对应的主机帐户和密码,并将主机帐户信息替换为它发送到主机的 APPC 附加消息。
使用以下函数调用语句来使用 CPI-C:
调用 Set_Conversation_Security_Type 函数, 并将conversation_security_type 参数设置为CM_SECURITY_PROGRAM。
调用 Set_Conversation_Security_User_ID 函数,并将 security_user_ID 参数设置为 MS$SAME 字符串, 并将security_user_ID_length 参数设置为 7。
调用 Set_Conversation_Security_Password 函数,其中 security_password 参数设置为 MS$SAME 字符串, security_password_length 参数设置为 7。