diff options
author | Günther Deschner <gd@samba.org> | 2006-04-28 14:51:09 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:16:33 -0500 |
commit | 6afac6fd5b34f06c12f09948a7638107fde94f16 (patch) | |
tree | 7b20ba7e39e765528e9334d142819c32c809e014 | |
parent | df980b79fc4f0c9ce4e3483fd4a01a38ac1737ee (diff) | |
download | samba-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)
-rw-r--r-- | source3/nsswitch/winbindd_ads.c | 7 |
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); } |