Configuring Neo4j to use LDAP
You already know that the action takes place in $NEO_HOME/conf/neo4j.conf
. What must be done is a mapping of the LDAP groups to the Neo4j default roles. Add these few lines at the end of the file:
dbms.security.auth_provider=ldap dbms.security.ldap.host=ldap://127.0.0.1:389 dbms.security.ldap.use_starttls=false dbms.security.ldap.authentication.mechanism=simple dbms.security.ldap.authentication.user_dn_template=cn={0},ou=users,dc=learningneo4j,dc=com dbms.security.ldap.authentication.cache_enabled=false dbms.security.ldap.authorization.use_system_account=true dbms.security.ldap.authorization.system_username=cn=admin,dc=learningneo4j,dc=com dbms.security.ldap.authorization.system_password=agentSmith dbms.security.ldap.authorization.user_search_base=dc=learningneo4j,dc=com dbms.security.ldap.authorization.user_search_filter=(&(objectClass=*)(cn={0})) dbms.security.ldap.authorization.group_membership_attributes=memberOf dbms.security.ldap.authorization.group_to_role_mapping...