From: James Peach Date: Tue, 1 May 2007 20:03:44 +0000 (+0000) Subject: r22631: Remove the possibility of sid_check_is_domain and X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~568 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bbc102172abcb5f7c5c9e777536d7c17afe8b355;p=thirdparty%2Fsamba.git r22631: Remove the possibility of sid_check_is_domain and sid_check_is_in_our_domain getting out of sync. --- diff --git a/source/passdb/machine_sid.c b/source/passdb/machine_sid.c index d7cae06749c..ebf9f2794b6 100644 --- a/source/passdb/machine_sid.c +++ b/source/passdb/machine_sid.c @@ -220,6 +220,5 @@ BOOL sid_check_is_in_our_domain(const DOM_SID *sid) sid_copy(&dom_sid, sid); sid_split_rid(&dom_sid, &rid); - - return sid_equal(&dom_sid, get_global_sam_sid()); + return sid_check_is_domain(&dom_sid); }