The backup server logic fails to distinguish between local and remote account provider replica.
Steps to reproduce
Install an AD domain with multiple replica among different nodes
Go to each node and execute runagent -m ldapproxyX expand-template nginx.conf.j2 | grep server
Expected behavior
The primary backend is the local one
server {
server 192.168.1.12:636; # origin ad.example.org
server 10.5.4.1:636 backup; # origin ad.example.org
server 10.5.4.9:636 backup; # origin ad.example.org
Actual behavior
The primary backend is a remote one
server {
server 10.5.4.1:636; # origin ad.example.org
server 192.168.1.12:636 backup; # origin ad.example.org
server 10.5.4.9:636 backup; # origin ad.example.org
The backup server logic fails to distinguish between local and remote account provider replica.
Steps to reproduce
runagent -m ldapproxyX expand-template nginx.conf.j2 | grep server
Expected behavior
The primary backend is the local one
Actual behavior
The primary backend is a remote one
Components
ldapproxy 1.0.0