From: Michael Adam Date: Mon, 26 May 2008 10:38:48 +0000 (+0200) Subject: winbind: correctly omit check for trusted domain support in cm_prepare_connection X-Git-Tag: samba-3.3.0pre1~1122 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a5a51ca8e5971992d9b060d66201b808bd2b7a53;p=thirdparty%2Fsamba.git winbind: correctly omit check for trusted domain support in cm_prepare_connection when checking for a trusted domain situation. This is how it was meant to be: Otherwise, with a dc-trusted-domain situation but trusted domains disabled, we would attempt to do a session setup and fail (wouldn't even get a trust password). Michael --- diff --git a/source/winbindd/winbindd_cm.c b/source/winbindd/winbindd_cm.c index 2ee0fae6db9..a1027cec971 100644 --- a/source/winbindd/winbindd_cm.c +++ b/source/winbindd/winbindd_cm.c @@ -808,7 +808,7 @@ static NTSTATUS cm_prepare_connection(const struct winbindd_domain *domain, goto done; } - if (!is_trusted_domain_situation(domain->name) && + if (!is_dc_trusted_domain_situation(domain->name) && (*cli)->protocol >= PROTOCOL_NT1 && (*cli)->capabilities & CAP_EXTENDED_SECURITY) {