-
Type: Task
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Labels:
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.
- documents
-
SERVER-71606 Pass const int* instead of timeval* for LDAP_OPT_TIMELIMIT
- Closed