summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Peach <jpeach@samba.org>2007-05-01 20:03:44 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:19:51 -0500
commitd7041fedc8f3dcd992cb425e5ec02f433fb870bd (patch)
treefe39ef36ea6661695848f4a92e039638950073fa
parenta127d5331a62c21fcf6013b3849e421af0f30924 (diff)
downloadsamba-d7041fedc8f3dcd992cb425e5ec02f433fb870bd.tar.gz
samba-d7041fedc8f3dcd992cb425e5ec02f433fb870bd.tar.bz2
samba-d7041fedc8f3dcd992cb425e5ec02f433fb870bd.zip
r22631: Remove the possibility of sid_check_is_domain and
sid_check_is_in_our_domain getting out of sync. (This used to be commit bbc102172abcb5f7c5c9e777536d7c17afe8b355)
-rw-r--r--source3/passdb/machine_sid.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/passdb/machine_sid.c b/source3/passdb/machine_sid.c
index d7cae06749..ebf9f2794b 100644
--- a/source3/passdb/machine_sid.c
+++ b/source3/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);
}