Skip to content

LDAPS bind fails with SERVER_DOWN due to missing CA trust source #679

Description

@Pingumania

Describe the bug
LDAPS binds fail with ldap.SERVER_DOWN: Can't contact LDAP server, even with a valid, publicly trusted cert (Let's Encrypt).
I have an lldap instance setup with ldaps, but Fireshare can't establish the cert chain.
Setting LDAPTLS_CACERT=/etc/ssl/certs/ca-certificates.crt or LDAPTLS_REQCERT=never "fixes" it, but the error message makes it look like a network/DNS problem instead of a cert problem.

To Reproduce

  1. Enable LDAP with LDAP_URL=ldaps://your-ldap-host:636
  2. Point it at a server with a valid cert (public CA)
  3. Start the container
  4. See ldap.SERVER_DOWN: Can't contact LDAP server on startup, even though the LDAP server is reachable and the cert is fine

Expected behavior

  1. The log/error message should reflect a certificate issue in this case.
  2. Fireshare should trust the system's CA bundle (already present in the image via ca-certificates) by default for LDAPS connections, the same way tools like curl do automatically.
    Or the LDAP documentation should reflect this.

Additional context
Side note: LDAP_ENABLE=false doesn't actually disable LDAP. Only leaving the var completely unset disables it.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions