nsswitch: Skip groups we were not able to map.
commit7f59711f076e98ece099f6b38ff6da8c80fa6d5e
authorAndreas Schneider <asn@samba.org>
Fri, 19 Sep 2014 11:33:10 +0000 (19 13:33 +0200)
committerDavid Disseldorp <ddiss@samba.org>
Fri, 19 Sep 2014 15:57:14 +0000 (19 17:57 +0200)
tree9c18c6619f7fd0d8e8dbef09d100b516b65157e6
parentfe670be5c45e636788934fc45d45ee3c4c52bb50
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
nsswitch/winbind_nss_linux.c