Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-68524

LDAP name resolution will ignore host in /etc/hosts

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • ALL
    • Hide

      1. Add following line to /etc/hosts:

      1.1.1.1  ldaptest2.10gen.cc
      

      2. use ldaptest2.10gen.cc as an LDAP server by supplying --ldapServers=ldaptest.10gen.cc,ldaptest2.10gen.cc parameter

      Receive:

      "id":20575,
      "ctx":"main",
      "msg":"Error creating service context",
      "attr":{"error":"DNSHostNotFound: Can't connect to the specified LDAP servers, error: LDAP Host: ldaptest2.10gen.cc was NOT successfully resolved."}
      

      Show
      1. Add following line to /etc/hosts : 1.1.1.1 ldaptest2.10gen.cc 2. use ldaptest2.10gen.cc as an LDAP server by supplying --ldapServers=ldaptest.10gen.cc,ldaptest2.10gen.cc parameter Receive: "id":20575, "ctx":"main", "msg":"Error creating service context", "attr":{"error":"DNSHostNotFound: Can't connect to the specified LDAP servers, error: LDAP Host: ldaptest2.10gen.cc was NOT successfully resolved."}
    • Security 2022-08-22, Security 2022-09-05

    Description

      LDAP resolver cache mechanism seems to ignore hosts in /etc/hosts

      Attachments

        Activity

          People

            sergey.galtsev@mongodb.com Sergey Galtsev (Inactive)
            sergey.galtsev@mongodb.com Sergey Galtsev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: