summaryrefslogtreecommitdiff
path: root/source3/passdb/machine_sid.c
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2012-07-12 15:55:21 +0200
committerMichael Adam <obnox@samba.org>2012-07-12 16:43:51 +0200
commitc43505b621725c9a754f0ee98318d451b093f2ed (patch)
tree62ffe55074eecc8f46bdedb252ef5622a1625b8e /source3/passdb/machine_sid.c
parentac2644b7766e41858d53ead9d0c023a26265789a (diff)
downloadsamba-c43505b621725c9a754f0ee98318d451b093f2ed.tar.gz
samba-c43505b621725c9a754f0ee98318d451b093f2ed.tar.bz2
samba-c43505b621725c9a754f0ee98318d451b093f2ed.zip
s3: rename sid_check_is_domain() to sid_check_is_our_sam()
This does not check whether the given sid is the domain sid, but whether it is the sid of the local sam, which is different for a domain member server.
Diffstat (limited to 'source3/passdb/machine_sid.c')
-rw-r--r--source3/passdb/machine_sid.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/passdb/machine_sid.c b/source3/passdb/machine_sid.c
index bc663f0b26..f3a4402d47 100644
--- a/source3/passdb/machine_sid.c
+++ b/source3/passdb/machine_sid.c
@@ -229,10 +229,10 @@ void reset_global_sam_sid(void)
}
/*****************************************************************
- Check if the SID is our domain SID (S-1-5-21-x-y-z).
+ Check if the SID is our sam SID (S-1-5-21-x-y-z).
*****************************************************************/
-bool sid_check_is_domain(const struct dom_sid *sid)
+bool sid_check_is_our_sam(const struct dom_sid *sid)
{
return dom_sid_equal(sid, get_global_sam_sid());
}
@@ -247,5 +247,5 @@ bool sid_check_is_in_our_domain(const struct dom_sid *sid)
sid_copy(&dom_sid, sid);
sid_split_rid(&dom_sid, NULL);
- return sid_check_is_domain(&dom_sid);
+ return sid_check_is_our_sam(&dom_sid);
}