Jerry rightly complained that we can't assume that the first domain is
authorAndrew Bartlett <abartlet@samba.org>
Wed, 31 Dec 2003 05:26:29 +0000 (05:26 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 31 Dec 2003 05:26:29 +0000 (05:26 +0000)
commite6de276ff44fe766804cdf95f45e23cdff2ca5d3
tree456a27b8b20b6f25c808e87190cec2e053685a7c
parent5eee23cc64139ba1d23101c87709e6d5198a6c68
Jerry rightly complained that we can't assume that the first domain is
our primary domain - new domains are added to the front of the list. :-(

Use a much more reliable 'flag test' instead.  (note:  changes winbind structures, make clean).

Andrew Bartlett
(This used to be commit cc050e01370633a985c9878bdce297f9175fdbf7)
source3/nsswitch/winbindd_util.c