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

Improve readme for TLS connect & public CA certificates #106

Open
wants to merge 1 commit into
base: stable
Choose a base branch
from

Conversation

fredericgermain
Copy link

Hi,

I improved the README.md to have PLA works with a openldap with enforced TLS, but with a public certificate configured (like LetEncrypt)

This doesn't really fix #74, but at least it explains a way to make it work in the readme.

There was two pain points at least :

StartTLS vs TLS

the tls example in the README.md uses {'tls': True, 'port': 636}. This makes actually connect PLA on port 636, but using the StartTLS method.

=> to fix that, without pathing LPA, the only way I found is using full uri ldaps://ldap.example.org. I think such an example should be added in the README.md, and it should make it clearer that StartTLS is used on 'tls': true (bad API design in PLA IMHO)

CA certificates bundle

It would make sense for me to use PHPLDAPADMIN_LDAP_CLIENT_TLS=false, but I found in that case /etc/ldap/ldap.conf points to a non-existing file, and there is no way to use TLS then, as it's not possible to configure the CA certificate (a TLS_CACERT config is required in ldap.conf).

I found that just overriding the ca certs with volume works, so I added a section.

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

Successfully merging this pull request may close these issues.

TLS/SSL (ldaps) is broken
1 participant