【问题标题】:wso2 BAM: Authentication failed! admin-bamwso2 BAM:身份验证失败!管理员-bam
【发布时间】:2016-02-07 06:50:49
【问题描述】:

当我从 Web 控制台更改 admin-bam 密码时(admin-bam 的默认密码是“admin”),

Home > Configure > Users and Roles --> Change my Password.

然后我收到以下日志错误:

TID: [0] [BAM] [2015-11-04 08:36:07,718] INFO
{org.wso2.carbon.databridge.core.DataBridge} - user admin-bam connected {org.wso2.carbon.databridge.core.DataBridge}

TID: [0] [BAM] [2015-11-04 08:36:07,733] ERROR
{org.wso2.carbon.databridge.core.internal.authentication.Authenticator} - Authentication failed! admin-bam. This user is not permitted to publish events. {org.wso2.carbon.databridge.core.internal.authentication.Authenticator}

我还更改了我的 usr-mgt.xml 并重新启动 BAM,但我收到了同样的错误:

<Realm>
<Configuration>
<AddAdmin>true</AddAdmin>
<AdminRole>admin-bam</AdminRole>
<AdminUser>
<UserName>admin-bam</UserName>
<Password>NEW_PASSWORD_HERE</Password>
</AdminUser>
<EveryOneRoleName>everyone</EveryOneRoleName> <!-- By default users       in      this role sees the registry root -->
Property name="dataSource">jdbc/USER_LST</Property>
</Configuration>
-.........

如果我再次设置 admin-bam/admin,那些日志就会消失。

哪里出错了?

【问题讨论】:

    标签: authentication wso2 wso2bam


    【解决方案1】:

    你必须按以下方式使用

    Configure > Users and Roles > Users > Change Password
    

    【讨论】:

    • 谢谢。是的,我试过你说的。我还尝试了 Configure --> Users and Roles --> Change My Password 和 Configure > Users and Roles > Users > Change Password (for admin-bam) 。我得到了同样的结果
    【解决方案2】:

    您需要更改 BAMUsername 和 BAMPPassword 以匹配您定义的新用户名和密码。配置如下,

    <APIUsageTracking>
    <!-- Enable/Disable the API usage tracker. -->
    <Enabled>true</Enabled>   
    <PublisherClass>org.wso2.carbon.apimgt.usage.publisher.APIMgtUsageDataBridgeDataPublisher</PublisherClass>
    <ThriftPort>7614</ThriftPort> 
    <BAMServerURL>tcp://<BAM host IP>:7614/</BAMServerURL>
    <BAMUsername>admin</BAMUsername>
    <BAMPassword>admin</BAMPassword>
    <!-- JNDI name of the data source to be used for getting BAM statistics. This data source should
        be defined in the master-datasources.xml file in conf/datasources directory. -->
    <DataSourceName>jdbc/WSO2AM_STATS_DB</DataSourceName>
    </APIUsageTracking>
    

    您可以在以下位置找到此文件: API Manager/repository/conf/api-manager.xml

    如果您在集群环境中,只需更改网关节点中的上述设置即可。

    【讨论】:

    • 感谢您的支持。
    • API Manager/repository/conf/api-manager.xml 不存在,但是 API Manager/repository/conf/user-manager.xml 我已经设置了 trueadmin-bamadmin-bamNEW_PASSWORD_HERE 但它不起作用
    • 请提供您尝试使用 WSO2 BAM 配置的产品及其版本号。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-01-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多