Allow configuring net::ldap connection settings?

Hi!
We’re proposing to add a config option for ldap connections:

Motivation: older and newer cases show adding net::ldap parameters can be required.

Approach: I’m thinking adding the capability to add parameters for the net::ldap connections will provide a good solution for these and other similar issues that require such settings. Currently only a few params are available hardcoded in that file.
Our current idea is to add a dict (e.g. ‘ldap_connection_params’) that is configurable (e.g. an element of ‘ldap_config’?) and that is added to the connection parameters in the method connection_params in order to allow to control the net::ldap connections.

Ideas on better ways to address this?
Also, should we provide a pr on GitHub to provide a solution for this?