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

AD with TLS? #18

Closed
RAFd3v opened this issue Sep 5, 2023 · 3 comments
Closed

AD with TLS? #18

RAFd3v opened this issue Sep 5, 2023 · 3 comments

Comments

@RAFd3v
Copy link

RAFd3v commented Sep 5, 2023

What would be the best practice to troubleshoot AD Login issues with the LDAP Plugin?

Is there a log file?
Are the options to allow self-signed certificates?

Great Project by the way!

@RAFd3v
Copy link
Author

RAFd3v commented Sep 5, 2023

If someone should face the same problems here’s was what worked for me:

I imported the self-signed cert.

openssl s_client -connect XXX:389 \ -starttls ldap \ -showcerts < /dev/null | \ openssl x509 -text | \ sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p'

copy the certificate from -----BEGIN CERTIFICATE----- to -----END CERTIFICATE----- and place it in a file

sudo nano /etc/ssl/certs/XXX.pem

sudo keytool -importcert -alias XXX \ -file /etc/ssl/certs/XXX.pem \ -keystore /usr/lib/jvm/java-11-openjdk-amd64/lib/security/cacerts \ -storepass changeit \ -noprompt

Restart Apache Tomcat

systemctl restart tomcat9

@RAFd3v RAFd3v closed this as completed Sep 5, 2023
@itiligent
Copy link
Owner

Hey thanks for the excellent input... so I can include your learnings in the AD instructions and enhance them, would you mind providing a little more info and context about your specific environment and issue ? I've not tested with AD and TLS, but this is a common scenario I should adddress.
I think I'm reading that your AD was already using TLS, so you extracted the existing AD TLS cert with the first command and then imported the resultant command output (the cert file) into the java keystore?

@itiligent itiligent reopened this Sep 6, 2023
@RAFd3v
Copy link
Author

RAFd3v commented Sep 14, 2023

Sorry for the dealy answer. A little busy at the moment.

But yes, that's correct. First I read the self signed certificate (In this case a synology AD Server) put it into a file an imported the certificate to the trust store.

I was struggling with the Guacamole LDAP integration since a couple of weeks. That's the reason why I add the comment. I think I'm not only person with this problem. So its great the hear you will make your already great documentation better.

@itiligent itiligent reopened this Sep 14, 2023
@itiligent itiligent changed the title Best practice to troubleshot LDAP problems? AD with TLS? Oct 4, 2023
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