NethServer / dev

NethServer issue tracker
https://github.com/NethServer/dev/issues
62 stars 20 forks source link

Ldapproxy selects the wrong LDAP as primary backend #6905

Closed DavidePrincipi closed 6 months ago

DavidePrincipi commented 6 months ago

The backup server logic fails to distinguish between local and remote account provider replica.

Steps to reproduce

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

Components

ldapproxy 1.0.0

DavidePrincipi commented 6 months ago

Test case

Test the bug isn't reproducible

DavidePrincipi commented 6 months ago

VERIFIED

Fix tested on the field 💥

DavidePrincipi commented 6 months ago

Released in https://github.com/NethServer/ns8-ldapproxy/releases/tag/1.0.2