r22704: Implement three step method for enumerating domain trusts.
commit9cf6068f1e0a1063d331af17aa493140497b96ef
authorGerald Carter <jerry@samba.org>
Sun, 6 May 2007 19:17:30 +0000 (6 19:17 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:21:47 +0000 (10 12:21 -0500)
tree2b68947c90dfe1c1084c46778aaf4f64e51b05c7
parentd12b8147d6bd34fad680cb8705dc6d7bbea1db12
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.
source/include/rpc_ds.h
source/nsswitch/winbindd.c
source/nsswitch/winbindd.h
source/nsswitch/winbindd_ads.c
source/nsswitch/winbindd_misc.c
source/nsswitch/winbindd_util.c