docker-phpLDAPadmin icon indicating copy to clipboard operation
docker-phpLDAPadmin copied to clipboard

`invalid type` error when using YAML for `PHPLDAPADMIN_LDAP_HOSTS`

Open The-Judge opened this issue 4 years ago • 4 comments

When I am trying to set PHPLDAPADMIN_LDAP_HOSTS to some YAML structure as shown in the docs, I end up with an error, saying:

docker-compose up -d

ERROR: The Compose file './docker-compose.yml' is invalid because: services.phpldapadmin.environment.PHPLDAPADMIN_LDAP_HOSTS contains [{"ldap.example.com": [{"server": [{"tls": "true"}]}, {"login": [{"bind_id": "cn=admin,dc=example,dc=com"}]}]}], which is an invalid type, it should be a string, number, or a null

My docker-compose.yml file:

version: '3.2'

services:

  phpldapadmin:
    image: osixia/phpldapadmin:latest
    container_name: phpldapadmin
    environment:
      PHPLDAPADMIN_LDAP_HOSTS:
        - ldap.example.com:
          - server:
            - tls: "true"
          - login:
            - bind_id: "cn=admin,dc=example,dc=com"
      PHPLDAPADMIN_HTTPS: "false"
    ports:
      - 80
    hostname: "ldap.example.com"

The-Judge avatar Mar 26 '22 16:03 The-Judge

Having the same issue.

cod3monk avatar Jun 15 '23 12:06 cod3monk

+1

Gabgobie avatar Jun 17 '23 01:06 Gabgobie

+1

peedy2495 avatar Sep 27 '23 10:09 peedy2495