From 7cb2a4be354c23b4228d67fe2bba68067ea619cf Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Sun, 6 May 2007 19:17:30 +0000 Subject: r22704: Implement three step method for enumerating domain trusts. (a) Query our primary domain for trusts (b) Query all tree roots in our forest (c) Query all forest roots in trusted forests. This will give us a complete trust topology including domains via transitive Krb5 trusts. We also store the trust type, flags, and attributes so we can determine one-way trusted domains (outgoing only trust path). Patch for one-way trusts coming in a later check-in. "wbinfo -m" now lists all domains in the domain_list() as held by the main winbindd process. (This used to be commit 9cf6068f1e0a1063d331af17aa493140497b96ef) --- source3/nsswitch/winbindd.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source3/nsswitch/winbindd.c') diff --git a/source3/nsswitch/winbindd.c b/source3/nsswitch/winbindd.c index ed4a23681b..9c5cd3b0e3 100644 --- a/source3/nsswitch/winbindd.c +++ b/source3/nsswitch/winbindd.c @@ -1139,6 +1139,10 @@ int main(int argc, char **argv, char **envp) netsamlogon_cache_init(); /* Non-critical */ + /* clear the cached list of trusted domains */ + + wcache_tdc_clear(); + if (!init_domain_list()) { DEBUG(0,("unable to initalize domain list\n")); exit(1); -- cgit