Strange problem with authentication on IBMMQ, it takes the running user ID

前端 未结 2 875
遥遥无期
遥遥无期 2021-01-22 17:51

I\'ve got a strange problem when I perform a push of a message in a queue. I\'ve configured my application to read userid/password from app.config. when the message is put on th

相关标签:
2条回答
  • 2021-01-22 18:07

    In order for your connection to run as the user ID and password provided on the connect, you must configure the queue manager to check the user ID and password and also you must configure the queue manager to adopt the validated user ID.

    DISPLAY QMGR CONNAUTH
    

    The value in the CONNAUTH field is the name of an AUTHINFO object. If it is blank, user ID and password checking is not enabled. Set it to an appropriate object name.

    ALTER QMGR CONNAUTH(SYSTEM.DEFAULT.AUTHINFO.IDPWOS)
    

    Now look at the attributes of it.

    DISPLAY AUTHINFO(name-from-connauth) ALL
    

    If ADOPTCTK is set to NO, the the user ID will not be adopted as the connection's user ID, and so will not be seen in the message context.

    ALTER AUTHINFO(name-from-connauth) AUTHTYPE(IDPWOS) ADOPTCTX(YES)
    

    If you had to make any alterations, you must now issue this command.

    REFRESH SECURITY TYPE(CONNAUTH)
    
    0 讨论(0)
  • 2021-01-22 18:19

    You probably need to add another line to your properties.

    Try (from memory so you will need to find the correct constant) USE_MQCSP_USERNAME_PASSWORD This should be a boolean and should be set to yes....

    Add this to your properties, then create the queue manager with those properties.

    0 讨论(0)
提交回复
热议问题