Hi All, changes form v2: - rebased to next - ldap response on older AD-Servers is not case-sensitive - parse ldap response instead of memmem hack - off by one error in seperator extraction - socketaddr is now consructed in cldap_ping.c and no longer in resolve_host.c - IPv6 is - limited - tested. Just the cldap_ping path not the full integration, but this is the critical stuff anyway. Feedback as always welcome :-) Kind Regards David David Voit (1): Implement CLDAP Ping to find the closest site Makefile.am | 15 ++- cldap_ping.c | 344 +++++++++++++++++++++++++++++++++++++++++++++++++ cldap_ping.h | 9 ++ mount.cifs.c | 5 +- resolve_host.c | 259 ++++++++++++++++++++++++++++++++----- resolve_host.h | 6 +- 6 files changed, 600 insertions(+), 38 deletions(-) create mode 100644 cldap_ping.c create mode 100644 cldap_ping.h -- 2.44.0