summaryrefslogtreecommitdiff
path: root/source3/passdb/lookup_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/lookup_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/lookup_sid.c')
-rw-r--r--source3/passdb/lookup_sid.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/passdb/lookup_sid.c b/source3/passdb/lookup_sid.c
index 3f8b06dfca..9b2f548e55 100644
--- a/source3/passdb/lookup_sid.c
+++ b/source3/passdb/lookup_sid.c
@@ -497,7 +497,7 @@ static bool lookup_rids(TALLOC_CTX *mem_ctx, const struct dom_sid *domain_sid,
*types = NULL;
}
- if (sid_check_is_domain(domain_sid)) {
+ if (sid_check_is_our_sam(domain_sid)) {
NTSTATUS result;
if (*domain_name == NULL) {
@@ -613,7 +613,7 @@ static bool lookup_as_domain(const struct dom_sid *sid, TALLOC_CTX *mem_ctx,
const char *tmp;
enum lsa_SidType type;
- if (sid_check_is_domain(sid)) {
+ if (sid_check_is_our_sam(sid)) {
*name = talloc_strdup(mem_ctx, get_global_sam_name());
return true;
}
@@ -710,7 +710,7 @@ static bool check_dom_sid_to_level(const struct dom_sid *sid, int level)
case 3:
case 4:
case 6:
- ret = sid_check_is_domain(sid);
+ ret = sid_check_is_our_sam(sid);
break;
case 5:
ret = false;