summaryrefslogtreecommitdiff
path: root/source3/passdb/passdb.c
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2012-07-12 16:00:59 +0200
committerMichael Adam <obnox@samba.org>2012-07-12 18:36:02 +0200
commit1ee95e4cb14b0f9c7bbaba0c994f0a511822cff8 (patch)
treef6e37fee3351a8c09bbaa0ee3a4395e1bec69371 /source3/passdb/passdb.c
parentc43505b621725c9a754f0ee98318d451b093f2ed (diff)
downloadsamba-1ee95e4cb14b0f9c7bbaba0c994f0a511822cff8.tar.gz
samba-1ee95e4cb14b0f9c7bbaba0c994f0a511822cff8.tar.bz2
samba-1ee95e4cb14b0f9c7bbaba0c994f0a511822cff8.zip
s3: rename sid_check_is_in_our_domain() to sid_check_is_in_our_sam()
This does not check whether the given sid is in our domain, but but whether it belongs to the local sam, which is a different thing on a domain member server. Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Thu Jul 12 18:36:02 CEST 2012 on sn-devel-104
Diffstat (limited to 'source3/passdb/passdb.c')
-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 71afb339fa..379d85803f 100644
--- a/source3/passdb/passdb.c
+++ b/source3/passdb/passdb.c
@@ -623,7 +623,7 @@ bool lookup_global_sam_name(const char *name, int flags, uint32_t *rid,
TALLOC_FREE(sam_account);
if (ret) {
- if (!sid_check_is_in_our_domain(&user_sid)) {
+ if (!sid_check_is_in_our_sam(&user_sid)) {
DEBUG(0, ("User %s with invalid SID %s in passdb\n",
name, sid_string_dbg(&user_sid)));
return False;
@@ -654,7 +654,7 @@ bool lookup_global_sam_name(const char *name, int flags, uint32_t *rid,
}
/* BUILTIN groups are looked up elsewhere */
- if (!sid_check_is_in_our_domain(&map->sid)) {
+ if (!sid_check_is_in_our_sam(&map->sid)) {
DEBUG(10, ("Found group %s (%s) not in our domain -- "
"ignoring.", name, sid_string_dbg(&map->sid)));
TALLOC_FREE(map);