An MQCONN, MQCONNX, MQOPEN, MQSUB, MQPUT1 or MQCLOSE call failed because a security error occurred, from the security manager, AMS, LDAP or token configuration.
QUICK ANSWER
An MQCONN, MQCONNX, MQOPEN, MQSUB, MQPUT1 or MQCLOSE call failed because a security error occurred, from the security manager, AMS, LDAP or token configuration.
LIKELY CAUSES, IN THE ORDER OF THIS ENTRY
On z/OS, a JMS application in WebSphere Application Server or Liberty connected with BINDINGS and passed a user name or password longer than 8 characters.
On z/OS, the External Security Manager returned the error.
AMS is enabled and a security error occurred, for example no valid certificate on MQOPEN, or wrong certificates or policies on MQGET.
With LDAP connection authentication, connectivity to the LDAP server failed or LDAP returned an error.
A token supplied on MQCONNX meets a queue manager token configuration error.
On z/OS, a JMS application in WebSphere Application Server or Liberty connected with BINDINGS and passed a user name or password longer than 8 characters.
FIRST CHECK
Note the error from the security manager and contact the system programmer or security administrator.
A security error stopped the call; the completion code is MQCC_FAILED. IBM lists several sources, including the z/OS external security manager, Advanced Message Security (AMS) processing, LDAP connection authentication, and authentication token configuration.
Typical causes
On z/OS, a JMS application in WebSphere Application Server or Liberty connected with BINDINGS and passed a user name or password longer than 8 characters.
On z/OS, the External Security Manager returned the error.
AMS is enabled and a security error occurred, for example no valid certificate on MQOPEN, or wrong certificates or policies on MQGET.
With LDAP connection authentication, connectivity to the LDAP server failed or LDAP returned an error.
A token supplied on MQCONNX meets a queue manager token configuration error.
How to fix it
Note the error from the security manager and contact the system programmer or security administrator.
On z/OS, keep the user name to 8 characters at most and the password to 100 at most.
For AMS, check the queue manager and AMS job logs, certificate validity, policy configuration and SYSTEM.PROTECTION.ERROR.QUEUE.
For LDAP, use DISPLAY QMSTATUS to check the LDAP connection status and read the queue manager error logs.
For tokens, read the queue manager error logs for the token authentication error code.