知识库

当 Neo4j 启用身份验证时,如何调用 HA 状态?

可以通过在 conf/neo4j-server.properties 中添加以下内容来为 Neo4j 数据库启用身份验证。

dbms.security.auth_enabled=true

这样一来,所有对数据库的连接都必须提供用户名/密码。

但是,对于 HA 状态信息的 REST 端点,如果在 conf/neo4j.properties 中定义了以下参数,则这些端点 (/db/manage/server/ha/*) 不需要用户名/密码。

dbms.security.ha_status_auth_enabled=false
© . This site is unofficial and not affiliated with Neo4j, Inc.