ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Zimbra Unable to start TLS: hostname verification failed when connecting to ldap master

    IT Discussion
    zimbra tls ldap ldaps
    6
    12
    14.4k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • scottalanmillerS
      scottalanmiller
      last edited by

      Running Zimbra 8.8 here and ran into this error on starting services: "Unable to start TLS: hostname verification failed when connecting to ldap master." This can be pretty frustrating, especially as pretty much nothing online tells you what might be wrong. In my case, I found that the issue came from the system now expecting a TLS based LDAPS connection, but being configured for a standard LDAP connection.

      As the zimbra user, we can configure this like so, for a single server configuration....

      su - zimbra
      zmlocalconfig -e ldap_master_url=ldaps://zimbrahostname:636
      zmlocalconfig -e ldap_url=ldaps://zimbrahostname:636
      zmlocalconfig -e ldap_starttls_supported=0
      zmlocalconfig -e ldap_port=636
      zmcontrol stop
      zmcontrol start
      

      First tested in Zimbra 8.8.5

      C 1 Reply Last reply Reply Quote 3
      • DashrenderD
        Dashrender
        last edited by

        @scottalanmiller said in Zimbra Unable to start TLS: hostname verification failed when connecting to ldap master:

        en connecting to ldap master." This can be pretty frustrating, especially as pretty much nothing online tells you what might b

        So this just happened during an upgrade? Do I assume that it was in the manual that you needed to do this, and it was overlooked? or that the devs didn't bother to tell you, confirm that config during upgrade, etc?

        scottalanmillerS 2 Replies Last reply Reply Quote 0
        • scottalanmillerS
          scottalanmiller @Dashrender
          last edited by

          @dashrender said in Zimbra Unable to start TLS: hostname verification failed when connecting to ldap master:

          @scottalanmiller said in Zimbra Unable to start TLS: hostname verification failed when connecting to ldap master:

          en connecting to ldap master." This can be pretty frustrating, especially as pretty much nothing online tells you what might b

          So this just happened during an upgrade?

          no

          1 Reply Last reply Reply Quote 0
          • scottalanmillerS
            scottalanmiller @Dashrender
            last edited by

            @dashrender said in Zimbra Unable to start TLS: hostname verification failed when connecting to ldap master:

            Do I assume that it was in the manual that you needed to do this, and it was overlooked? or that the devs didn't bother to tell you, confirm that config during upgrade, etc?

            I don't know the source of the change. It happened during a cert renewal.

            1 Reply Last reply Reply Quote 0
            • dbeatoD
              dbeato
              last edited by

              This is with your LDAP SSL not with the Host SSL Certificate correct?

              scottalanmillerS 1 Reply Last reply Reply Quote 0
              • scottalanmillerS
                scottalanmiller @dbeato
                last edited by

                @dbeato said in Zimbra Unable to start TLS: hostname verification failed when connecting to ldap master:

                This is with your LDAP SSL not with the Host SSL Certificate correct?

                In theory they should be the same.

                1 Reply Last reply Reply Quote 1
                • C
                  condealisson
                  last edited by

                  Thank you so much scottalanmiller, saved me tonight after Letsencrypt certificate installation result in TLS error...

                  scottalanmillerS 1 Reply Last reply Reply Quote 2
                  • scottalanmillerS
                    scottalanmiller @condealisson
                    last edited by

                    @condealisson said in Zimbra Unable to start TLS: hostname verification failed when connecting to ldap master:

                    Thank you so much scottalanmiller, saved me tonight after Letsencrypt certificate installation result in TLS error...

                    Glad that it helped you!

                    1 Reply Last reply Reply Quote 0
                    • C
                      ccelis5215 @scottalanmiller
                      last edited by

                      @scottalanmiller Thanks... That did the trick.

                      1 Reply Last reply Reply Quote 1
                      • dbeatoD
                        dbeato
                        last edited by

                        I am still trying to understand this issue, but it is probably due to having multiple Zimbra servers in a pool. Usually in one Zimbra Server setup that usually doesn't happen.

                        scottalanmillerS 1 Reply Last reply Reply Quote 0
                        • scottalanmillerS
                          scottalanmiller @dbeato
                          last edited by

                          @dbeato said in Zimbra Unable to start TLS: hostname verification failed when connecting to ldap master:

                          I am still trying to understand this issue, but it is probably due to having multiple Zimbra servers in a pool. Usually in one Zimbra Server setup that usually doesn't happen.

                          No, we don't use a pool here.

                          1 Reply Last reply Reply Quote 1
                          • G
                            GrantZimbra
                            last edited by

                            Had this error after installing a new commercial certificate. The error seems valid as my server hostname and certificate name do not match, but it is my understanding this name mismatch is allowed and should still work.

                            To resolve this I just ran these two commands as Zimbra user.
                            zmlocalconfig -e ldap_starttls_required=false
                            zmlocalconfig -e ldap_starttls_supported=0

                            I am slightly concerned as to the security implications of disabling these settings. I am still on ldap not ldaps and this is on CentOS 7.

                            1 Reply Last reply Reply Quote 1
                            • 1 / 1
                            • First post
                              Last post