IBM MQ身份验证 [英] IBM MQ authentication

查看:15
本文介绍了IBM MQ身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试连接IBM MQ时出现以下错误。我已经在MQ资源管理器中进行了足够的配置,但仍然收到此错误。

**MQ Config:**
        <InputDef name="Order" type="mq">
                <property name="message.flow" value="OrderFlow" />
                 <property name="queue.adapter" value="com.tplus.transform.runtime.external.queueutils.ibmmq.IBMMQAdapter" />
                <property name="queue.ibmmq.manager" value="QM1" />
                <property name="queue.ibmmq.host" value="localhost" />
                <property name="queue.ibmmq.port" value="1414" />
                <property name="queue.ibmmq.channel" value="CH1" />
                <property name="queue.name" value="Q1" />
                <property name="queue.ibmmq.headertype" value="jms" />
            </InputDef>
    
    
       </InputDefs>
    
       <OutputDefs>
    
        <!-- Instantiate a RMIOutputHandler that is registered in the JNDI with the specified devicename
             The output is written to the specified directory -->
        <OutputDef name="Order" type="rmi">
            <property name="output.device" value="device.order" />
            <property name="output.writer" value="com.tplus.transform.runtime.external.output.mq.QueueOutputDeviceWriterFactory"/>
            <property name="queue.adapter" value="com.tplus.transform.runtime.external.queueutils.ibmmq.IBMMQAdapter" />
            <property name="queue.ibmmq.manager" value="QM1" />
            <property name="queue.ibmmq.host" value="localhost" />
            <property name="queue.ibmmq.port" value="1414" />
            <property name="queue.ibmmq.channel" value="CH1" />
            <property name="queue.name" value="Q2" />
            <property name="queue.ibmmq.headertype" value="jms" />
        </OutputDef>
    

错误日志: log1log2

推荐答案

您是否禁用了队列管理器Qm1的授权?

试试:

为MQ资源管理器创建连接

runmqsc QM1

define channel(SYSTEM.ADMIN.SVRCONN) chltype(SVRCONN) MCAUSER('mqm')
alter qmgr chlauth(DISABLED)
refresh security
在这些命令之后,使用Channel SYSTEM.ADMIN.SVRCONN而不是CH1。或尝试在命令中将SYSTEM.ADMIN.SVRCONN更改为CH1。

更改rfhutil的访问权限

runmqsc QM1

ALTER AUTHINFO(SYSTEM.DEFAULT.AUTHINFO.IDPWOS) AUTHTYPE(IDPWOS) CHCKCLNT(OPTIONAL) 
REFRESH SECURITY TYPE(CONNAUTH) 

这篇关于IBM MQ身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆