当我从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,那些日志就会消失。
错误在哪里?
答案 0 :(得分:0)
您必须按以下方式使用
Configure > Users and Roles > Users > Change Password
答案 1 :(得分:0)
您需要更改BAMUsername和BAMPassword以匹配您定义的新用户名和passowrd。配置如下,
<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
如果您处于群集环境中,仅更改“网关”节点中的上述设置就足够了。