本部分介绍 Host Integration Server 中提供的通信通用编程接口 (CPI-C) 应用程序的自动登录支持。 此功能需要网络管理员进行特定配置。 必须在局域网 (LAN) 端从 Host Integration Server 的客户端调用 CPI-C 应用程序。 客户端必须登录到 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。