this is a trick to work around the fact that posix does not supply
authorAndrew Tridgell <tridge@samba.org>
Sun, 14 Jul 2002 22:15:20 +0000 (22:15 +0000)
committerAndrew Tridgell <tridge@samba.org>
Sun, 14 Jul 2002 22:15:20 +0000 (22:15 +0000)
commite3f73256d31ab9914daae49f41e984a534996870
tree1e7829670b0c56bf53ecda80447c2c30e5b194f4
parentb5ec92d7a2e5ba33b641267d2319d101d70a0d9a
this is a trick to work around the fact that posix does not supply
a getgr*() function that lists groups without numerating all the
group members. Instead of definiing a new nss method (which might
cause problems) I added an environment variable WINBIND_GETGRLST
that tells winbind not to fill in the group members in a gergrent()
request. This can speed up group listing by a factor of 20 or more
(on my test system with 50000 groups it reduces the time from an hour
to 2 minutes)
source/nsswitch/winbind_nss.c
source/nsswitch/winbindd.c
source/nsswitch/winbindd_dual.c
source/nsswitch/winbindd_group.c
source/nsswitch/winbindd_nss.h
source/nsswitch/winbindd_rpc.c