r23072: In winbindd_ads.c:lookup_groupmem, replace the bottleneck
commitb5100b1f256599ae7bc6635762546c74986f68a9
authorMichael Adam <obnox@samba.org>
Tue, 22 May 2007 12:49:41 +0000 (22 12:49 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:22:18 +0000 (10 12:22 -0500)
tree8969dae1b1ad877f1b25180ce78d46c872d7e4b6
parent87d30dc32d06ce20e091b9d482af126780a9e4b7
r23072: In winbindd_ads.c:lookup_groupmem, replace the bottleneck
dn_lookup loop by a rpccli_lsa_lookupsids_all (see r23070)
call. This replaces one ldap search per member sid by one
rpc call per 1000 sids. This greatly speeds up groupmem
lookups for groups with lots of users.

Since the loop in lookup_groupmem was the only use of dn_lookup,
the function is removed.

Michael
(This used to be commit 88dac65ab1b951d445f0eedb638e9ace93139872)
source3/nsswitch/winbindd_ads.c