From 2abab7ee6d04a62017d99578c274244a1cdd27b2 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 30 Aug 2006 04:40:03 +0000 Subject: r17928: Implement the basic store for CLDAP sitename support when looking up DC's. On every CLDAP call store the returned client sitename (if present, delete store if not) in gencache with infinate timeout. On AD DNS DC lookup, try looking for sitename DC's first, only try generic if sitename DNS lookup failed. I still haven't figured out yet how to ensure we fetch the sitename with a CLDAP query before doing the generic DC list lookup. This code is difficult to understand. I'll do some experiments and backtraces tomorrow to try and work out where to force a CLDAP site query first. Jeremy. (This used to be commit ab3f0c5b1e9c5fd192c5514cbe9451b938f9cd5d) --- source3/include/ads_cldap.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/include/ads_cldap.h') diff --git a/source3/include/ads_cldap.h b/source3/include/ads_cldap.h index 65feb072e0..e5df892a40 100644 --- a/source3/include/ads_cldap.h +++ b/source3/include/ads_cldap.h @@ -35,8 +35,8 @@ struct cldap_netlogon_reply { char unk[MAX_DNS_LABEL]; char user_name[MAX_DNS_LABEL]; - char site_name[MAX_DNS_LABEL]; - char site_name_2[MAX_DNS_LABEL]; + char server_site_name[MAX_DNS_LABEL]; + char client_site_name[MAX_DNS_LABEL]; uint32 version; uint16 lmnt_token; -- cgit