How can we specify LDAP provider and consumer at uri in '_ldap_config'?

We are using Indico 2.2 and 2.1.
And we have 2 OpenLDAP servers, one of them is provider and other is consumer.

Now we want to 2 servers at uri in ‘_ldap_config’ for redundancy.
Can we specify it like this ?

_ldap_config = {
    'uri': 'ldaps://[provider IP], ldaps://[consumer IP]',
    ...

I’m not sure what you mean with provider/consumer in this context… master/slave replication?

If yes, check the python-ldap docs. IIRC. we just forward the data to the library (you can also check the code on GitHub… https://github.com/indico/flask-multipass)

Thank you for your quick reply !
It works !

I’m not sure what you mean with provider/consumer in this context… master/slave replication?

Yes, provider/consumer is almost the same as master/slave replication.
( https://www.openldap.org/doc/admin24/replication.html )

I always appreciate your clear answer.