无法更改wso2 api manager Analytics的凭据

问题描述 投票:1回答:1

我在3个节点(即3个VM)内部署了API Manager 2.6.0。缩写:

  1. GW - 网关
  2. AIO - 流量管理器,密钥管理器,开发门户,发布者
  3. 分析 - Apim Analytics 2.6.0
  4. DB - PostgreSQL。

我已经在组件之间设置了所有工作,直到我更改了默认的管理员密码,用户名保持不变。按照我的手册

  1. 从UI更改了管理员密码,因为我已经使用默认凭据进行了测试
  2. 在AIO和GW上的api-manager.xml中更改了密码
  3. 在AIO和GW上的user-mgt.xml中更改了密码
  4. 在AIO和GW上更改了jndi.properties中的密码

如手册中所述,高于4分 - https://docs.wso2.com/display/AM260/Maintaining+Logins+and+Passwords本手册未说明如何使分布式分析节点接受该密码。

分析安装manual告诉安装WSO2 API-M Analytics和WSO2 API-M(据我所知,这意味着两者都在同一台机器上)。同样,本手册并未详细说明在Analytics服务器上进行用户配置。

我试图从DAS和SP manual查看,但是Analytics没有auth.configs:在YAML文件中,也没有从SP源代码手动添加它们有帮助。

GW和AIO返回错误:

2019-02-21 15:13:52,090 [ - ] [DataBridge-ConnectionService-tcp://192.168.102.39:7612-pool-11-thread-1]错误DataEndpointConnectionWorker尝试连接到端点时出错。无法为ssl借用客户端://192.168.102.39:7712。 org.wso2.carbon.databridge.agent.exception.DataEndpointLoginException:无法为ssl://192.168.102.39:7712借用客户端。

引起:org.wso2.carbon.databridge.agent.exception.DataEndpointLoginException:尝试登录数据接收器时出错。

引起:ThriftAuthenticationException(消息:错误的用户名或密码)

在分析明显:

[2019-02-21 15:16:49,016]错误{org.wso2.carbon.databridge.core.internal.authentication.CarbonAuthenticationHandler} - 用户名'admin'的身份验证失败。错误:'Invalid_Credentials'。错误说明:'用于登录的登录凭据无效,用户名:'admin'。' [2019-02-21 15:16:49,016]错误{org.wso2.carbon.databridge.core.internal.authentication.Authenticator} - 用户名或密码错误

问题是,如何使与API管理器分离的WSO2 APIM Analytics(2.6.0)节点接受更改的凭据。

最后一次是我需要将Analytics连接到Carbon DB吗?

wso2 wso2-am wso2-das wso2sp
1个回答
1
投票

您必须将auth.configs元素添加到conf / worker / deployment.yaml文件中(请注意密码必须是Base64(UTF-8)加密)

auth.configs: 
  type: 'local'
  userManager:
    adminRole: admin
    userStore:
      users:
       -
         user:
           username: admin
           password: YWRtaW4=
           roles: 1
      roles:
       -    
         role:
           id: 1
           displayName: admin
© www.soinside.com 2019 - 2024. All rights reserved.