Setting up an OpenLDAP server
We will use Docker Compose to download an image of the OpenLDAP implementation of LDAP, which is available from osixia. Information about how to work with this Docker image can be found on GitHub at https://github.com/osixia/docker-openldap. Our Docker Compose file will ultimately contain two services: one for LDAP and the other for Grafana. The full docker-compose.yml file is available in this book’s GitHub repository in the Chapter16 directory.
Here’s the first part of the LDAP service:
  ldap:     image: osixia/openldap
Here, we’re just downloading the image from osixia. Once we have downloaded the image, we’ll need to open port 389. If you enable support for Transport Layer Security (TLS) connections, you’ll need to open port 636. For demonstration purposes, we’ll connect to our LDAP server over an unsecured connection:
       ports...