Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-16184

[Server] Investigate changes in SERVER-71606: Pass const int* instead of timeval* for LDAP_OPT_TIMELIMIT

      Original Downstream Change Summary

      The `security.ldap.timeoutMS` option was changed to accept 32-bit integers (int) instead of 64-bit integers (long). This was done after discovering that the underlying system library (OpenLDAP) only accepts 32-bit integers for its timeout. The docs should be updated to state that this option takes int rather than long.

      Description of Linked Ticket

      When LDAP_OPT_TIMELIMIT is set, OpenLDAP casts the value provided to a const int* (see here). Currently, we pass in the address to timeout, which is of type timeval

      We should pass the correct type here to avoid unexpected behavior due to casting.

            david.hou@mongodb.com David Hou
            backlog-server-pm Backlog - Core Eng Program Management Team
            0 Vote for this issue
            2 Start watching this issue

              1 year, 2 weeks ago