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

Could not bind to the LDAP server (SoGo) ldaps #18

Open
theoneandonly-vector opened this issue Feb 13, 2021 · 4 comments
Open

Could not bind to the LDAP server (SoGo) ldaps #18

theoneandonly-vector opened this issue Feb 13, 2021 · 4 comments

Comments

@theoneandonly-vector
Copy link

theoneandonly-vector commented Feb 13, 2021

docker-compose logs -f sogo-mailcow:

[ERROR] <0x0x5631569a5d70[LDAPSource]> Could not bind to the LDAP server ldaps://dc.mydomian.tld:636 (389) using the bind DN: [email protected]

why does it show (389) when I set ldaps and port 636?

@theoneandonly-vector theoneandonly-vector changed the title Could not bind to the LDAP server Could not bind to the LDAP server (SoGo) ldaps Feb 15, 2021
@theoneandonly-vector
Copy link
Author

when I set these values manually inside "plist_ldap" which per documentation of SoGo shouldn't be needed (deprecated):

    <key>encryption</key>
    <string>SSL</string>

    <key>port</key>
    <string>636</string>

it will tell me it tries to connect using port 636, but I'm not sure if really applies encryption = SSL, as I can test my AD successfully using LDAP Admin.

@theoneandonly-vector
Copy link
Author

I also manually ran this to trust the certificate like I did on my custom build of "ldap-mailcow":

tar -c ./ucs-root-ca.crt | docker exec -i mailcowdockerized_sogo-mailcow_1 /bin/tar -C /tmp -x
docker exec -it mailcowdockerized_sogo-mailcow_1 bash
cp /tmp/ucs-root-ca.crt /usr/local/share/ca-certificates/foo.crt
chmod 644 /usr/local/share/ca-certificates/foo.crt && update-ca-certificates

@theoneandonly-vector
Copy link
Author

maybe there's a method to get more logs out of it?

@theoneandonly-vector
Copy link
Author

I can reach the host from inside the docker (maybe someone thinks it's a network issue..):

openssl s_client -connect dc.domain.tld:636

It has to be an issue with SSL somehow..
I also tried setting

LDAPTLS_REQCERT=never

and also:

LDAP_TLS_INSECURE=true

but both will just result in:

conf line 6: Unknown setting: LDAPTLS_REQCERT

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