【问题标题】:Is there a way to change the passwords of all the nodes in a neo4j causal cluster?有没有办法更改 neo4j 因果集群中所有节点的密码?
【发布时间】:2017-11-16 09:05:02
【问题描述】:

我尝试使用 curl 更改密码:

curl -H "Content-Type: application/json" -XPOST -d '{"password":"new_password"}' -u neo4j:old_password http://core_server1_ip:10003/user/neo4j/password

但我必须为每个节点单独执行此操作。

编辑:我使用的是 neo4j 企业 3.3.0

【问题讨论】:

    标签: neo4j


    【解决方案1】:

    本地身份验证提供程序将用户信息存储在位于此处的文件中:NEO4J_HOME/data/dbms/auth,每个节点都有自己的。

    所以要更改用户的密码,是的,你必须在每个节点上都这样做。

    如果你只想做一次,文档中解释了一些解决方案:https://neo4j.com/docs/operations-manual/current/security/authentication-authorization/native-user-role-management/propagate-users-and-roles/

    将更改传播到本机用户、自定义角色和角色 跨集群分配,有三个选项:

    手动将磁盘上的用户和角色文件复制到所有其他集群 实例使用共享网络文件夹来存储用户和角色文件 创建一个自动化流程,同步跨平台存储的数据 集群使用例如 rsync 和 crontab 的组合我们 请注意,集群安全的推荐解决方案是使用 LDAP 或插件身份验证提供程序。

    干杯

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-11-25
      • 2014-03-28
      • 1970-01-01
      • 1970-01-01
      • 2012-10-20
      • 1970-01-01
      • 2018-11-29
      • 1970-01-01
      相关资源
      最近更新 更多