r23072: In winbindd_ads.c:lookup_groupmem, replace the bottleneck
authorMichael Adam <obnox@samba.org>
Tue, 22 May 2007 12:49:41 +0000 (12:49 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:22:18 +0000 (12:22 -0500)
commit88dac65ab1b951d445f0eedb638e9ace93139872
tree546f94a2b3aae9451806325746ee04f1a6a18052
parent66ff0bc6c39f86a9830dc508cd891e33638b475d
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
source/nsswitch/winbindd_ads.c