Fix winbindd_can_contact_domain() on a samba DC.
authorMichael Adam <obnox@samba.org>
Fri, 25 Jan 2008 15:40:17 +0000 (16:40 +0100)
committerMichael Adam <obnox@samba.org>
Fri, 25 Jan 2008 15:43:21 +0000 (16:43 +0100)
commit3ca606731b99754493ab5a8d761225c637bc82dd
tree166c84383b9d82dd0cdaba1469a55416b35ef0db
parent05ff7fd46e19d9c1aab8524495c9b926290927c7
Fix winbindd_can_contact_domain() on a samba DC.

The check for inbound trusts is invalid when samba is a DC
and has a trust with an active directory domain.

This effectively prevented tusts with an AD domain on a
samba DC from working (unless using "winbindd rpc only"),
because an ads_connect() was never performed. Only the
rpc-based winbindd methods were working properly.

Jerry: Please check!

Michael
(This used to be commit dcd42a1e0642c69348adfaeecef7f7f2f074ac30)
source3/winbindd/winbindd_util.c