I am getting connection unauthorized, connecting to MQ, what password should I use #496
Replies: 5 comments
-
Also if I can just disable security. Don't need it for this use case docker run --env LICENSE=accept --env MQ_QMGR_NAME=QM1 --publish 1414:1414 --publish 9443:9443 --detach --env MQ_APP_PASSWORD=passw0rd ibmcom/mq:latest |
Beta Was this translation helpful? Give feedback.
-
This is the error: 2021-06-15T21:37:58.290Z AMQ8077W: Entity 'admin' has insufficient authority to access object QM1 [qmgr]. [CommentInsert1(admin), CommentInsert2(QM1 [qmgr]), CommentInsert3(connect)] |
Beta Was this translation helpful? Give feedback.
-
You can disable security access checks entirely by setting the For an application, I'd recommend connecting with the |
Beta Was this translation helpful? Give feedback.
-
If AUTHINFO is defined with AUTHTYPE(IDPWOS), you need an OS account which will be used in PRINCIPAL parameter in AUTHREC definition. If I am correct (not sure), there should be "app" OS acount in mqclient group. |
Beta Was this translation helpful? Give feedback.
-
We don't use OS users at all in the container image any more. The |
Beta Was this translation helpful? Give feedback.
-
I am connecting from one docker container to another.
Here is essentially the code:
//const connectionString = 'localhost';
const connectionString = 'host.docker.internal';
const channel = 'DEV.ADMIN.SVRCONN';
const qMgr: string = 'QM1';
const topic: string = 'pritopic';
let csp = new mq.MQCSP();
//csp.UserId = 'admin';
//csp.Password = 'passw0rd'
csp.UserId = 'admin';
csp.Password = 'passw0rd'
cno.SecurityParms = csp;
And error:
[Nest] 8 - 06/15/2021, 3:52:38 PM [MQError: CONNX: MQCC = MQCC_FAILED [2] MQRC = MQRC_NOT_AUTHORIZED [2035]] mq[publisher] error: +1209ms
/usr/local/lib/node_modules/ibmmq/lib/mqi.js:776
var err = new MQError(jsCc,jsRc,'CONNX');
^
MQError: CONNX: MQCC = MQCC_FAILED [2] MQRC = MQRC_NOT_AUTHORIZED [2035]
at /usr/local/lib/node_modules/ibmmq/lib/mqi.js:776:17
at Object. (/usr/local/lib/node_modules/ibmmq/node_modules/ffi-napi/lib/_foreign_function.js:115:9) {
mqcc: 2,
mqccstr: 'MQCC_FAILED',
mqrc: 2035,
mqrcstr: 'MQRC_NOT_AUTHORIZED',
version: '0.9.17',
verb: 'CONNX'
Beta Was this translation helpful? Give feedback.
All reactions