The problem is we're calling get_kdc_ip_string() which calls netlogon_pings() to contact the secondary DC (we already have a working connection to a "first" DC) and netlogon_pings() returns an error if all DCs it was supposed to ping fail to respond. This causes get_kdc_ip_string() to return an error causing complete idmapping failure. Have patch, need bugnumber.
Created attachment 18659 [details] WIP patch for master
This bug was referenced in samba master: 88572cc8f629a737a1d5b33d5800f3692895233f
Created attachment 18672 [details] patch for 4.22
Comment on attachment 18672 [details] patch for 4.22 LGTM, RB+
Jule, please add to 4.22.x, thanks!
Pushed to autobuild-v4-22-test.
This bug was referenced in samba v4-22-test: e119cb0b4840429ac763d1899a8bec1f1fbb0f4b
Closing out bug report. Thanks!
This bug was referenced in samba v4-22-stable (Release samba-4.22.4): e119cb0b4840429ac763d1899a8bec1f1fbb0f4b