Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

invalid type error when using YAML for PHPLDAPADMIN_LDAP_HOSTS #96

Open
The-Judge opened this issue Mar 26, 2022 · 3 comments
Open

invalid type error when using YAML for PHPLDAPADMIN_LDAP_HOSTS #96

The-Judge opened this issue Mar 26, 2022 · 3 comments

Comments

@The-Judge
Copy link

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"
@cod3monk
Copy link

Having the same issue.

@Gabgobie
Copy link

+1

1 similar comment
@peedy2495
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants