关于c#:IBM.Data.DB2.iSeries登录到DB2-禁用IBM登录窗口

IBM.Data.DB2.iSeries Login to DB2 - Disable IBM Login Window

我正在使用IBM.Data.DB2.iSeries.dll连接到IBM DB2数据库。

它工作正常,连接已打开并且可以进行所有操作。
但是,当您启动conn.open()方法时,IBM会向用户发送一个警告窗口,告知用户密码已过期。我想此窗口直接来自客户端访问。

1
2
3
4
5
6
7
8
9
class Program
{
    static void Main(string[] args)
    {
        string connString ="DataSource=SYSTEM;UserID=USER;Password=PASSWORD";
        iDB2Connection conn = new iDB2Connection(connString);
        conn.Open();
    }
}

enter


以下IBM支持文章建议使用System i Navigator设置"提示行为"。您可以尝试看看是否有帮助。

http://www-01.ibm.com/support/docview.wss?uid=nas8N1017433

To change user ID and password prompting behavior within Access for Windows is through the Navigator, do the following:
1. Open the System i Navigator.
2. Right-click on the System name. and click on Properties.
3. Click on the connection tab, and select one of the following options:

o Specify Prompt every time. This prompts for a password every time a connection is made to the operating system.

o Specify Use default user id/password prompt, as needed. This prompts for an initial signon and does not prompt again during a Microsoft? Windows? session.

o Specify Use windows user id/password (never prompt). This does not prompt for a user ID or password and uses the Windows logon to sign on the operating system.

o Specify Use Kerberos. This will use the Windows Kerberos ticket for authorization and requires EIM setup on the operating system.

您已正确安装导航器?

有关OLE DB的连接字符串,有一篇IBM支持文章。 .Net连接字符串属性可能相似。但是,即使在这里,也没有有关从应用程序禁止对话框的详细信息。

OLE DB连接属性:
http://www-01.ibm.com/support/docview.wss?uid=nas8N1017400

The following list contains all of the custom properties that are available for the OLE DB providers shipped with iSeries Access for Windows (IBMDA400, IBMDARLA, and IBMDASQL). The release at which each property was added is indicated. For more information about any of these properties, consult the OLE DB technical reference that can be found in the Programmer's Toolkit included with iSeries Access for Windows.