知识库

如何在 Neo4j 中配置混合模式安全性(原生和 LDAP)

对于需要同时使用 LDAP 认证和一些本地用户账户的环境,Neo4j 3.1 及以上版本提供了相应的实现方式。请使用配置项 dbms.security.auth_providers 来替代单一的 dbms.security.auth_provider。这样就可以提供一个用于认证的提供程序列表。

要允许 LDAP 和本地用户同时登录,请在 conf/neo4j.conf 中使用以下设置

dbms.security.auth_providers=ldap,native

若需要更细粒度地控制各认证提供者执行的操作(认证和/或授权),请同时使用以下设置(示例中我们将全部设置为 true,实际可根据具体需求进行调整)

dbms.security.native.authentication_enabled=true
dbms.security.native.authorization_enabled=true
dbms.security.ldap.authentication_enabled=true
dbms.security.ldap.authorization_enabled=true
© . This site is unofficial and not affiliated with Neo4j, Inc.