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

external ldaps #116

Open
ptulpen opened this issue Sep 22, 2020 · 1 comment
Open

external ldaps #116

ptulpen opened this issue Sep 22, 2020 · 1 comment

Comments

@ptulpen
Copy link

ptulpen commented Sep 22, 2020

Hello,
I really like the new feature using ldap, but currently have 2 Issues with an external DC as ldapserver:

  • How do I include certificates to use ldapS?
  • With wireshark I see that the bind is succesful, but the search operation results in "errorMessage: 000004DC: LdapErr: DSID-0C090A7D, comment: In order to perform this operation a successful bind must be completed on the connection., data 0, v3839"

Is there maybe something special to keep in mind then the ldapserver is an AD?

Best regards, Peter

@pjreed
Copy link
Contributor

pjreed commented Sep 30, 2020

If the server's certificate is signed by a trusted authority, I would expect it to work without any issues; the URL for that would look something like ldaps://ldap.company.com:636.

Right now there's not a way in the config to easily add a custom certificate authority, although I can see how that would be useful. At the moment, the easiest way to add one would probably be to build a custom Docker image that adds your certificates. I think the Tomcat instance in the container uses the default Java certificate store, which should be at /usr/local/openjdk-11/lib/security/cacerts, and you could modify the default Dockerfile to use keytool to import your certificate. I haven't tested it, but I think that should work.

I haven't actually used Active Directory, only slapd, so I'm not sure if it has any special requirements, but if you have other programs that can bind to it successfully, I would expect it to work. Just to make sure you've got the bind DN, password, and search base all right, you might try using ldapsearch from the command line to see if it can connect and get results.

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

2 participants