nsswitch: Skip groups we were not able to map.
commitcdc4cc329af427f0e921a826c9a3b8162d13550d
authorAndreas Schneider <asn@samba.org>
Fri, 19 Sep 2014 11:33:10 +0000 (19 13:33 +0200)
committerKarolin Seeger <kseeger@samba.org>
Mon, 29 Sep 2014 20:07:06 +0000 (29 22:07 +0200)
treed2f5f3165159e9d9a43e1bf06fa95c98cb79693e
parent42cc79d45e8ad6136f7376ef962f16d06caac55c
nsswitch: Skip groups we were not able to map.

If we have configured the idmap_ad backend it is possible that the user
is in a group without a gid set. This will result in (uid_t)-1 as the
gid. We return this invalid gid to NSS which is wrong.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=10824

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
Autobuild-User(master): David Disseldorp <ddiss@samba.org>
Autobuild-Date(master): Fri Sep 19 17:57:14 CEST 2014 on sn-devel-104

(cherry picked from commit 7f59711f076e98ece099f6b38ff6da8c80fa6d5e)
Signed-off-by: Andreas Schneider <asn@samba.org>
Autobuild-User(v4-0-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-0-test): Mon Sep 29 22:07:06 CEST 2014 on sn-devel-104
nsswitch/winbind_nss_linux.c