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