summaryrefslogtreecommitdiff
path: root/source3/winbindd/winbindd.h
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2008-06-26 14:02:39 -0700
committerJeremy Allison <jra@samba.org>2008-06-26 14:02:39 -0700
commit120c09b125f656d6d03b979560f3ef6652217691 (patch)
treec7f5db8defa25852acacb3e1eebaaba4b2bc3e04 /source3/winbindd/winbindd.h
parent23cafd02d3222b910dbc30a7eab20ebdcc81ab33 (diff)
downloadsamba-120c09b125f656d6d03b979560f3ef6652217691.tar.gz
samba-120c09b125f656d6d03b979560f3ef6652217691.tar.bz2
samba-120c09b125f656d6d03b979560f3ef6652217691.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 (This used to be commit 5188f2861137ff06d5399561d55d7d00c3a08644)
Diffstat (limited to 'source3/winbindd/winbindd.h')
-rw-r--r--source3/winbindd/winbindd.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/winbindd/winbindd.h b/source3/winbindd/winbindd.h
index 301d877e61..b2fe8b67e7 100644
--- a/source3/winbindd/winbindd.h
+++ b/source3/winbindd/winbindd.h
@@ -363,7 +363,12 @@ struct winbindd_tdc_domain {
uint32 trust_type;
};
-
+/* Switch for listing users or groups */
+enum ent_type {
+ LIST_USERS = 0,
+ LIST_GROUPS,
+};
+
#include "winbindd/winbindd_proto.h"
#define WINBINDD_ESTABLISH_LOOP 30