summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-07-31 10:12:52 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-07-31 10:12:52 +0000
commit6be547fc6b1982a32aff0e2e58e6d1b4524e2598 (patch)
tree288454e70865e6a49903b7e62dc7b673482d0228
parent2dfdf744c05f883d658257cfb3bafb40c32bf8b9 (diff)
downloadsamba-6be547fc6b1982a32aff0e2e58e6d1b4524e2598.tar.gz
samba-6be547fc6b1982a32aff0e2e58e6d1b4524e2598.tar.bz2
samba-6be547fc6b1982a32aff0e2e58e6d1b4524e2598.zip
Don't accidenity mess with the wrong domain's sids.
(This used to be commit 0e2207c9c1ce573098f764e85a65c17cc1f1d284)
-rw-r--r--source3/passdb/passdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/passdb/passdb.c b/source3/passdb/passdb.c
index 1c33fda39d..f1328cbc31 100644
--- a/source3/passdb/passdb.c
+++ b/source3/passdb/passdb.c
@@ -918,8 +918,8 @@ BOOL local_sid_to_gid(gid_t *pgid, DOM_SID *psid, enum SID_NAME_USE *name_type)
pdb_free_sam(&sam_user);
- if (!sid_peek_rid(psid, &rid)) {
- DEBUG(2, ("sid_peek_rid failed! what kind of sid is this? '%s'\n", sid_to_string(str, psid)));
+ if (!sid_peek_check_rid(get_global_sam_sid(), psid, &rid)) {
+ DEBUG(3, ("sid_peek_rid failed - sid '%s' is not in our domain\n", sid_to_string(str, psid)));
return False;
}