知识库

在 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