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

LDAP TLS error #31

Open
mjmucha opened this issue Jun 4, 2020 · 0 comments
Open

LDAP TLS error #31

mjmucha opened this issue Jun 4, 2020 · 0 comments

Comments

@mjmucha
Copy link

mjmucha commented Jun 4, 2020

Hi there.
I have an working TLS configuration for LDAP (see tiredofit/docker-openldap#21).

But Fusion Directory has problems to connect to the LDAP server over TLS. My docker-compose is:

  fusiondirectory:
    container_name: fusiondirectory
    image: tiredofit/fusiondirectory:latest
    depends_on:
      - ldap
    security_opt:
      - no-new-privileges:true
      - label:disable
    volumes:
      - ./logs:/www/logs:rw,z
    secrets:
      - LDAP_ADMIN_PASSWORD
    environment:
      TIMEZONE: "Europe/Berlin"

      VIRTUAL_HOST: example.com
      VIRTUAL_PORT: 80
      LETSENCRYPT_HOST: example.com
      LETSENCRYPT_EMAIL: webmaster@example.com

      LDAP_SCHEME: "ldaps"
      LDAP_PORT: 636

      LDAP1_HOST: "ldap"
      LDAP1_TLS: "TRUE"
      LDAP1_BASE_DN: "dc=example,dc=com"
      LDAP1_ADMIN_DN: "cn=admin,dc=example,dc=com"
      LDAP1_ADMIN_PASS: 42
      LDAP1_PORT: 636
      LDAP1_NAME: LDAP
    networks:
      - nginx-proxy
      - ldap
    restart: always

The error i get is: TLS: hostname does not match CN in peer certificate, while operating on '' using LDAP server 'ldaps://ldap:636')'.

Any ideas?

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

1 participant