summaryrefslogtreecommitdiff
path: root/source3/include/passdb.h
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2005-02-20 13:47:16 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:55:41 -0500
commita90a58ff221a4469d6e87df655cb2201d68e237b (patch)
tree7602dac1a9184c80be808f70044edf8cdf53e157 /source3/include/passdb.h
parent8a10eb6d4ea93c15bfe4b0c08bcea5467009d394 (diff)
downloadsamba-a90a58ff221a4469d6e87df655cb2201d68e237b.tar.gz
samba-a90a58ff221a4469d6e87df655cb2201d68e237b.tar.bz2
samba-a90a58ff221a4469d6e87df655cb2201d68e237b.zip
r5467: Optimize _samr_query_groupmem with LDAP backend for large domains.
Could someone else please look at this patch, verifying that I did not break the ldapsam:trusted = False fallback to the old behaviour? It works fine for me, but you never know. You're certainly free to review the new code as well :-) Thanks, Volker (This used to be commit e1c3ca182b299dc65da1fa39aadb69876b5e16b8)
Diffstat (limited to 'source3/include/passdb.h')
-rw-r--r--source3/include/passdb.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/source3/include/passdb.h b/source3/include/passdb.h
index 42f38e5b6a..3c244e7625 100644
--- a/source3/include/passdb.h
+++ b/source3/include/passdb.h
@@ -287,6 +287,12 @@ typedef struct pdb_context
GROUP_MAP **rmap, int *num_entries,
BOOL unix_only);
+ NTSTATUS (*pdb_enum_group_members)(struct pdb_context *context,
+ TALLOC_CTX *mem_ctx,
+ const DOM_SID *group,
+ uint32 **member_rids,
+ int *num_members);
+
NTSTATUS (*pdb_enum_group_memberships)(struct pdb_context *context,
const char *username,
gid_t primary_gid,
@@ -385,6 +391,12 @@ typedef struct pdb_methods
GROUP_MAP **rmap, int *num_entries,
BOOL unix_only);
+ NTSTATUS (*enum_group_members)(struct pdb_methods *methods,
+ TALLOC_CTX *mem_ctx,
+ const DOM_SID *group,
+ uint32 **member_rids,
+ int *num_members);
+
NTSTATUS (*enum_group_memberships)(struct pdb_methods *methods,
const char *username,
gid_t primary_gid,