Repo to store a configured OpenLDAP LDIF file to use to demonstrate LDAP importing
The admin user password should be live long and prosper
Setup the directory structure and download the
mkdir -p ldap/data
mkdir -p ldap/config
mkdir -p ldif && curl -f -L -o ldif/startrek.ldif --create-dirs --retry 3 --retry-delay 2 --retry-max-time 30 -H "Accept: application/vnd.github.raw" "https://raw.githubusercontent.com/akeyless-community/akeyless-openldap-ldif-star-trek/refs/heads/main/star-trek.ldif"
Here is an exmaple Docker Compose file
services:
openldap:
image: bitnami/openldap:latest
container_name: openldap
environment:
LDAP_ORGANISATION: "Starfleet Command"
LDAP_DOMAIN: "starfleet.federation.org"
LDAP_ADMIN_USERNAME: "admin"
LDAP_ADMIN_PASSWORD: "live long and prosper"
LDAP_CUSTOM_LDIF_DIR: /ldifs
LDAP_ROOT: dc=starfleet,dc=federation,dc=org
BITNAMI_DEBUG: "true"
ports:
- "1389:1389"
- "1636:1636"
volumes:
- ./ldif/startrek.ldif:/ldifs/startrek.ldif
phpldapadmin:
image: osixia/phpldapadmin:latest
container_name: phpldapadmin
environment:
PHPLDAPADMIN_LDAP_HOSTS: "openldap"
PHPLDAPADMIN_HTTPS: "false"
ports:
- "8080:80"
depends_on:
- openldap