如何在 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
此页面有帮助吗?