David Voit <david.voit@xxxxxxxxx> writes: > For domain based DFS we always need to contact the domain controllers. > On setups, which are using bigger AD installations you could get random dc on the other side of the world, > if you don't have site support. This can lead to network timeouts and other problems. > > CLDAP-Ping uses ASN.1 + UDP (CLDAP) and custom-DCE encoding including DName compressions without > field separation. Finally after finding the sitename we now need to do a DNS SRV lookups to find > the correct IPs to our closest site and fill up the remaining IPs from the global list. > > Signed-off-by: David Voit <david.voit@xxxxxxxxx> > --- > Makefile.am | 15 ++- > cldap_ping.c | 346 +++++++++++++++++++++++++++++++++++++++++++++++++ > cldap_ping.h | 14 ++ > mount.cifs.c | 5 +- > resolve_host.c | 258 +++++++++++++++++++++++++++++++----- > resolve_host.h | 6 +- > 6 files changed, 606 insertions(+), 38 deletions(-) > create mode 100644 cldap_ping.c > create mode 100644 cldap_ping.h Great work! I've tested it and found no issues. Most of the cifs-utils code seems to follow the Linux kernel coding style, but I don't see it being mentioned anywhere, so the patch looks good. Thanks!