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); }