diff options
author | Jeremy Allison <jra@samba.org> | 2008-06-26 14:02:39 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2008-06-26 14:02:39 -0700 |
commit | 5188f2861137ff06d5399561d55d7d00c3a08644 (patch) | |
tree | 5406d60a5d7cb8c556e14a90fa06eedbe6759091 /source/winbindd/winbindd_domain.c | |
parent | 384052f546af8c1c6848c03cad4f2ba618ba7209 (diff) | |
download | samba-5188f2861137ff06d5399561d55d7d00c3a08644.tar.gz samba-5188f2861137ff06d5399561d55d7d00c3a08644.tar.xz samba-5188f2861137ff06d5399561d55d7d00c3a08644.zip |
From Steve Danneman @ Isilon.
Attached is the companion patch to
(037b9689d9042a398cb91e4628a82fcdfa913c21), which
made handling of WINBINDD_LIST_GROUPS asynchronous.
Because most all of the list_groups code was reusable, I abstracted it,
and implemented both list_groups and list_users on top of it.
On my large test domain a "wbinfo -u" call went from 70 seconds to 30
seconds with this patch. Plus, the parent process is no longer blocked
from receiving new requests during that time.
Steven Danneman | Software Development Engineer
Isilon Systems P +1-206-315-7500 F +1-206-315-7501
www.isilon.com
Diffstat (limited to 'source/winbindd/winbindd_domain.c')
-rw-r--r-- | source/winbindd/winbindd_domain.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/winbindd/winbindd_domain.c b/source/winbindd/winbindd_domain.c index 4d10f49ca21..2e8c6175ca0 100644 --- a/source/winbindd/winbindd_domain.c +++ b/source/winbindd/winbindd_domain.c @@ -50,6 +50,10 @@ static const struct winbindd_child_dispatch_table domain_dispatch_table[] = { .struct_cmd = WINBINDD_LOOKUPRIDS, .struct_fn = winbindd_dual_lookuprids, },{ + .name = "LIST_USERS", + .struct_cmd = WINBINDD_LIST_USERS, + .struct_fn = winbindd_dual_list_users, + },{ .name = "LIST_GROUPS", .struct_cmd = WINBINDD_LIST_GROUPS, .struct_fn = winbindd_dual_list_groups, |