2015-11-06 140 views
1

當我從Web控制檯更改管理員-BAM密碼(用於管理-BAM默認密碼爲 「admin」),wso2 BAM:驗證失敗!管理員-BAM

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

然後我recive以下日誌錯誤:

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

如果我再設置管理-BAM /管理,這些日誌消失。

錯誤在哪裏?

回答

0

您通過以下方式

Configure > Users and Roles > Users > Change Password 
+0

Thanks.Yes我試過你說的。我也試過配置 - >用戶和角色 - >更改我的密碼和配置>用戶和角色>用戶>更改密碼(對於管理員)。我得到了相同的結果 – erManue

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經理/庫/ conf目錄/ API-manager.xml

如果您是在集羣環境中,就足夠了只改變網關節點中的上述設置。

+0

感謝您的支持。 – erManue

+0

API管理器/庫/ CONF/API-manager.xml doesn't存在,但是API管理器/庫/ CONF /用戶manager.xml我已經設置 <結構> ​​管理員-BAM 管理-BAM NEW_PASSWORD_HERE 但doesn't工作 – erManue

+0

請提供日e產品,您正嘗試使用WSO2 BAM配置它的版本號。 – channae