From: Gerald Carter Date: Tue, 26 Jun 2007 00:52:19 +0000 (+0000) Subject: r23601: BUG 4579: Don't mark the SAM domain on a Samba DC as an internal domain or... X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~118 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5e0f8b114b964d08cfb22a7452c617b8512545dc;p=thirdparty%2Fsamba.git r23601: BUG 4579: Don't mark the SAM domain on a Samba DC as an internal domain or else all network connections from the local winbindd will fail --- diff --git a/source/nsswitch/winbindd_util.c b/source/nsswitch/winbindd_util.c index 83d915429f6..bf606c35c3a 100644 --- a/source/nsswitch/winbindd_util.c +++ b/source/nsswitch/winbindd_util.c @@ -82,6 +82,9 @@ static BOOL is_internal_domain(const DOM_SID *sid) if (sid == NULL) return False; + if ( IS_DC ) + return sid_check_is_builtin(sid); + return (sid_check_is_domain(sid) || sid_check_is_builtin(sid)); } @@ -90,6 +93,9 @@ static BOOL is_in_internal_domain(const DOM_SID *sid) if (sid == NULL) return False; + if ( IS_DC ) + return sid_check_is_in_builtin(sid); + return (sid_check_is_in_our_domain(sid) || sid_check_is_in_builtin(sid)); }