Skip to content

[Question]How to add custom template  #314

Open
@ikit

Description

@ikit

Hi,

I wondering how I can add custom template to the docker-openldap ?

BElow the docker-compose I'm using, I tried to mount volume between the local server and the container to provide custom template to the openLdap container, but all my try failled:

version: '3.5'

services:
  openldap:
    image: osixia/openldap:1.2.4
    container_name: toto_ldap
    environment:
      LDAP_LOG_LEVEL: "256"
      LDAP_ORGANISATION: "toto"
      LDAP_DOMAIN: "toto.fr"
      LDAP_BASE_DN: ""
      LDAP_ADMIN_PASSWORD: "***"
      LDAP_CONFIG_PASSWORD: "***"
      LDAP_READONLY_USER: "false"
      #LDAP_READONLY_USER_USERNAME: "readonly"
      #LDAP_READONLY_USER_PASSWORD: "readonly"
      LDAP_RFC2307BIS_SCHEMA: "false"
      LDAP_BACKEND: "mdb"
      LDAP_TLS: "false"
      LDAP_TLS_ENFORCE: "false"
      LDAP_TLS_VERIFY_CLIENT: "demand"
      LDAP_REPLICATION: "false"
      KEEP_EXISTING_CONFIG: "false"
      LDAP_REMOVE_CONFIG_AFTER_SETUP: "true"
      LDAP_SSL_HELPER_PREFIX: "ldap"
    tty: true
    stdin_open: true
    volumes:
      - /var/toto/ldap/lib:/var/lib/ldap
      - /var/toto/ldap/etc:/etc/ldap/slapd.d
    ports:
      - "389:389"
      - "636:636"
    domainname: "ldap.toto.fr" # important: same as hostname
    hostname: "ldap.toto.fr"
    networks:
      - toto_net
  phpldapadmin:
    image: osixia/phpldapadmin:latest
    container_name: toto_phpldapadmin
    environment:
      PHPLDAPADMIN_LDAP_HOSTS: "toto_ldap"
      PHPLDAPADMIN_HTTPS: "false"
    ports:
      - "10012:80"
    depends_on:
      - openldap
    networks:
      - toto_net

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions