From c43505b621725c9a754f0ee98318d451b093f2ed Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Thu, 12 Jul 2012 15:55:21 +0200 Subject: 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. --- source3/passdb/lookup_sid.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/passdb/lookup_sid.c') 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; -- cgit