SATOSA icon indicating copy to clipboard operation
SATOSA copied to clipboard

LDAP attribute microservice connection pool does not reconnect

Open skoranda opened this issue 7 years ago • 4 comments

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 avatar Dec 06 '17 17:12 skoranda

@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

peppelinux avatar Jun 20 '19 20:06 peppelinux

Hi @skoranda is this ready to be closed or the problem still persist?

peppelinux avatar Sep 11 '20 12:09 peppelinux

It still persists. Please leave this issue open. Thanks.

skoranda avatar Sep 11 '20 12:09 skoranda

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!

peppelinux avatar Sep 11 '20 12:09 peppelinux