SATOSA
SATOSA copied to clipboard
LDAP attribute microservice connection pool does not reconnect
From a deployer: "the satosa 500 error continues - it seems to start each night when the ldap server reboots & scales down. rebuilding the satosa stack fixes it"
@skoranda take a look bere https://github.com/IdentityPython/SATOSA/pull/240
This makes client connection strategies be configurable via microservice yaml definitions. With a client_strategy = ldap3.RESTARTABLE this problem Will be solved I think
Hi @skoranda is this ready to be closed or the problem still persist?
It still persists. Please leave this issue open. Thanks.
Try to put these as global ldap3 parameters
ldap3.set_config_parameter('RESTARTABLE_TRIES', 1)
ldap3.set_config_parameter('POOLING_LOOP_TIMEOUT', 3)
ldap3.set_config_parameter('RESET_AVAILABILITY_TIMEOUT', 1)
ldap3.set_config_parameter('RESTARTABLE_SLEEPTIME', 1)
https://ldap3.readthedocs.io/en/latest/installation.html#global-configuration The connection pool would be reinitialized, the connection to LDAP should (must) then work again!