Linking Neo4j to an LDAP directory
I will start this paragraph with a piece of advice. If you are using a cluster, connecting each node to the same LDAP
directory is the way to go as users are local to a node and are not propagated.
So, let's connect. We will use a Docker container based on an OpenLdap
image.
Starting the directoryÂ
Let's prepare the folder where the configuration will be. In a shell, execute the following in your home
folder:
mkdir data/ldap/environment -p mkdir data/ldap/db -p
In this first new folder, create a file named users.ldif
with the following content:
dn: dc=learningneo4j,dc=com dc: learningneo4j description: Directory of all the readers objectClass: top objectClass: dcObject objectClass: organization o: Readers Directory dn: ou=users,dc=learningneo4j,dc=com ou: users objectClass: organizationalRole cn: users # =============================================================== ROLES dn: ou=ldapreaders,dc=learningneo4j,dc=com objectClass: top objectClass: organizationalRole...