Ad Widget

Collapse

How to add trusted root for LDAP authentication

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Anynetsolution
    Junior Member
    • Apr 2016
    • 8

    #1

    How to add trusted root for LDAP authentication

    Hello Community

    I have zabbix 6.4 running on docker.
    As i want to login on zabbix with LDAP users, I have created an LDAP authentication configuration.
    As host I have the server ldaps://srv01.mydom.com and port 636 is defined.

    But now the CA certificate of the srv01 host is missing, so that the LDAP connection can be trusted. I get a Handshake error

    How and where do I import the CARoot certificate so that the LDAP connection works in encrypted form?​

    Click image for larger version  Name:	grafik.png Views:	0 Size:	4.7 KB ID:	475819
    Last edited by Anynetsolution; 14-12-2023, 13:05.
  • Mitchell-Zabbix
    Junior Member
    • Feb 2023
    • 10

    #2
    Hi

    If you're using Apache, you can check the ssl configuration for Zabbix to find out where the ca file should be placed.
    This should be under ./sites-available/default-ssl.conf.
    Last edited by Mitchell-Zabbix; 14-12-2023, 17:41.

    Comment

    • Anynetsolution
      Junior Member
      • Apr 2016
      • 8

      #3
      Hi

      There is no Apache installed.

      When i run docker container list I see traefik, zabbix-db, zabbix-agent, zabbix-web, grafana and grafana-prometheus as containers

      Comment

      • Anynetsolution
        Junior Member
        • Apr 2016
        • 8

        #4
        Hello Community

        Can someone help me?
        When i define the ldap as follow
        Host: ldaps://srv01.mydom.com
        Port: 636

        I get following error:​
        Click image for larger version

Name:	3.png
Views:	1013
Size:	9.1 KB
ID:	477041

        When I change the Host to
        Host: ldap://srv01.mydom.com
        Port: 636

        then the Test is successfull.
        Click image for larger version

Name:	4.png
Views:	932
Size:	7.0 KB
ID:	477042

        This doesn't make sense. It seem that the Port configuration is not applied.
        Our Zabbix version is a Docker version. The CA certificate is available, and if we run a wget on the corresponding ldap server in the docker bash to test the connection, it also works.

        Can someone explain to me where this LDAP configuration is written? This setting which is set in the web interface must be written in a specific file. Either on the OS itself or in the docker container.

        Comment

        • mumische
          Junior Member
          • Jan 2025
          • 1

          #5
          Looks like Zabbix ignoring port number and use ldap:// or ldaps:// part. Check here how to add CA certificate: https://www.zabbix.com/forum/zabbix-...ps-with-zabbix

          I installed CA certs, but still have had issues with ldaps, so I switched to start_tls (leave port number 389, server ldap:// and check TLS in advanced configuration) and added this line in /etc/openldap/ldap.conf
          TLS_REQCERT never

          Comment

          Working...