r22631: Remove the possibility of sid_check_is_domain and
authorJames Peach <jpeach@samba.org>
Tue, 1 May 2007 20:03:44 +0000 (20:03 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:19:51 +0000 (12:19 -0500)
sid_check_is_in_our_domain getting out of sync.
(This used to be commit bbc102172abcb5f7c5c9e777536d7c17afe8b355)

source3/passdb/machine_sid.c

index d7cae06749c5f74836b18bf80a0493c3f2618021..ebf9f2794b6e81fc57be2719284c2d777f587c48 100644 (file)
@@ -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);
 }