如何更改 ibm mq qm 以连接用户并通过

How to alter ibm mq qm to connect with user and pass

İ 尝试了以下命令,但没有成功。

alter authinfo(system.default.authinfo.idpwos) authtype(idpwos) chckclnt(required) 

以前有人研究过这个主题吗?

当您更改 connauth authinfo 对象时,您需要 运行 REFRESH SECURITY TYPE(CONNAUTH) 以使更改生效。重新启动队列管理器也会产生同样的效果。

这记录在 Knowledge Center - Turning on connection authentication on a queue manager

To check local connections, use the AUTHINFO attribute CHCKLOCL (check local connections). To check client connections, use the AUTHINFO attribute CHCKCLNT (check client connections). The configuration must be refreshed before the queue manager recognizes the changes.

ALTER QMGR CONNAUTH(USE.PW)
DEFINE AUTHINFO(USE.PW) +
AUTHTYPE(IDPWOS) +
FAILDLAY(10) +
CHCKLOCL(OPTIONAL) +
CHCKCLNT(REQUIRED)

REFRESH SECURITY TYPE(CONNAUTH)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

我还建议您设置 AUTHINFO 对象参数 ADOPTCTX(YES) 以及在您的 qm.ini 频道节中设置 ChlauthEarlyAdopt=E。请参阅@T.Rob 的精彩演讲 "CONNAUTH Doesn't work like you think it does" 以了解有关原因的更多详细信息。