知识库

在 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