From 6afac6fd5b34f06c12f09948a7638107fde94f16 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Fri, 28 Apr 2006 14:51:09 +0000 Subject: 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) --- source3/nsswitch/winbindd_ads.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'source3/nsswitch/winbindd_ads.c') 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); } -- cgit