summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2006-04-28 14:51:09 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:16:33 -0500
commit6afac6fd5b34f06c12f09948a7638107fde94f16 (patch)
tree7b20ba7e39e765528e9334d142819c32c809e014 /source3
parentdf980b79fc4f0c9ce4e3483fd4a01a38ac1737ee (diff)
downloadsamba-6afac6fd5b34f06c12f09948a7638107fde94f16.tar.gz
samba-6afac6fd5b34f06c12f09948a7638107fde94f16.tar.bz2
samba-6afac6fd5b34f06c12f09948a7638107fde94f16.zip
r15307: Ignore builtin groups we're a member of on the DC as those memberships
are not valid locally. Guenther (This used to be commit 177da7754b53348d8754d46098dbd11300234bb5)
Diffstat (limited to 'source3')
-rw-r--r--source3/nsswitch/winbindd_ads.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/nsswitch/winbindd_ads.c b/source3/nsswitch/winbindd_ads.c
index ede1765273..30064603d1 100644
--- a/source3/nsswitch/winbindd_ads.c
+++ b/source3/nsswitch/winbindd_ads.c
@@ -585,7 +585,12 @@ static NTSTATUS lookup_usergroups_alt(struct winbindd_domain *domain,
DEBUG(1,("No sid for this group ?!?\n"));
continue;
}
-
+
+ /* ignore Builtin groups from ADS - Guenther */
+ if (sid_check_is_in_builtin(&group_sid)) {
+ continue;
+ }
+
add_sid_to_array(mem_ctx, &group_sid, user_sids,
&num_groups);
}