summaryrefslogtreecommitdiff
path: root/source3/nsswitch
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2005-05-01 20:05:16 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:56:45 -0500
commita7145e26c99c43a39b24bbf16587b2ea1cd1ef9c (patch)
tree69912f7db5351b044943b5dcbcdd78b30a105e70 /source3/nsswitch
parent8bcfb51f912bc09f5afb185a984b3485be469839 (diff)
downloadsamba-a7145e26c99c43a39b24bbf16587b2ea1cd1ef9c.tar.gz
samba-a7145e26c99c43a39b24bbf16587b2ea1cd1ef9c.tar.bz2
samba-a7145e26c99c43a39b24bbf16587b2ea1cd1ef9c.zip
r6566: fix a couple of local group bugs.
* ensure that we set full access on the handle returned from _samr_create_dom_alias() so that future set_alias commands succeed * fix bug when looking for internal domains in winbindd (caused winbindd_getgrgid() for local groups to fail). (This used to be commit 4615c96ccb8906af4eb1fbe6d0cbf6bb3bcc3fcf)
Diffstat (limited to 'source3/nsswitch')
-rw-r--r--source3/nsswitch/winbindd_util.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/nsswitch/winbindd_util.c b/source3/nsswitch/winbindd_util.c
index efd84bbf73..d6aef04b4b 100644
--- a/source3/nsswitch/winbindd_util.c
+++ b/source3/nsswitch/winbindd_util.c
@@ -91,7 +91,12 @@ static BOOL is_internal_domain(const DOM_SID *sid)
if (sid == NULL)
return False;
- return (sid_check_is_domain(sid) || sid_check_is_builtin(sid));
+ if ( sid_compare_domain( sid, get_global_sam_sid() ) == 0 )
+ return True;
+ if ( sid_compare_domain( sid, &global_sid_Builtin ) == 0 )
+ return True;
+
+ return False;
}