reportportal / kubernetes

Kubernetes/Helm configs for ReportPortal
https://reportportal.io
Apache License 2.0
77 stars 191 forks source link

LDAP Integration Error with Report Portal #427

Open assiakhateeb opened 1 month ago

assiakhateeb commented 1 month ago

I'm encountering an error when trying to configure LDAP integration with Report Portal. Here's the error message:

An error occurred while connecting to server: You do not have enough permissions. simple bind failed: d-fend.local:636; nested exception is javax.naming.CommunicationException: simple bind failed: d-fend.local:636 [Root exception is javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target]

It seems that the Report Portal LDAP integration configuration does not have an option for TLS configuration, such as "Trust all certificates," or a place to add certificates.

Question:

How can I configure LDAP integration for Report Portal using secure port 636 (LDAPS)?

Current Setup:

Report Portal LDAP Configuration:

Parameter Value
URL ldaps://my-company:636
Base DN <Base DN>
Manager DN <Manager DN>
Manager password *****
User search filter (&(objectClass=user)(sAMAccountName={0}))
Group search filter (objectClass=group)
Password encoder type NO
Email attribute mail
Full name attribute displayName
Pink-Bumblebee commented 1 month ago

Hello @assiakhateeb , Maybe this article will be helpful: https://reportportal.io/docs/issues-troubleshooting/IssuesWithLDAPSHowToResolve/

assiakhateeb commented 1 month ago

Hi @Pink-Bumblebee, I have Report Portal installed on Kubernetes using the Helm package manager, so I’m not using Docker as described in the article. Additionally, I see that approach more as a workaround rather than a proper solution. Thanks anyway!

hlebkanonik commented 2 weeks ago

Hi @assiakhateeb, you can try adding the certificate to UAT using a secret and include it in the java_opts here.