简体   繁体   English

wso2 BAM:身份验证失败! 管理员-BAM

[英]wso2 BAM: Authentication failed! admin-bam

When I change admin-bam password from Web Console ( the default password for admin-bam is "admin"), 当我从Web控制台更改admin-bam密码时(admin-bam的默认密码为“ admin”),

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

Then I recive the following log errors: 然后,我收到以下日志错误:

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}

I also change my usr-mgt.xml and restart BAM, but I receive the same error: 我还更改了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>
-.........

If I set again admin-bam/admin, those logs disappear. 如果我再次设置admin-bam / admin,这些日志将消失。

Where is the error? 错误在哪里?

您必须以以下方式使用

Configure > Users and Roles > Users > Change Password

You need to change the BAMUsername and BAMPassword to match the new username and passowrd which you defined. 您需要更改BAMUsername和BAMPassword以匹配您定义的新用户名和密码。 Configuration is given below, 配置如下,

<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>

You can find this file in following location: API Manager/repository/conf/api-manager.xml 您可以在以下位置找到此文件:API Manager /存储库/conf/api-manager.xml

If you are in a clustered environment, it is sufficient to only change the above settings in the Gateway node. 如果您在集群环境中,仅在网关节点中更改以上设置就足够了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM