r6277: This implements a new caching API for enumerating the pdb elements. It is
authorVolker Lendecke <vlendec@samba.org>
Sun, 10 Apr 2005 15:26:37 +0000 (15:26 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:56:34 +0000 (10:56 -0500)
commit8b4f67a1e9d459145cde10b1064781d58d62b805
treebbc320a2f956fa3fb034f3df70f7b14bb693375a
parentc73f2656fd89e227a8a3e2ab20f7393ff2c515c7
r6277: This implements a new caching API for enumerating the pdb elements. It is
modeled after query_displayinfo and should hide the differences between users,
groups and aliases while allowing a cache analog load_sampw_entries:

struct pdb_search *pdb_search_users(uint16 acct_flags);
struct pdb_search *pdb_search_groups(void);
struct pdb_search *pdb_search_aliases(const DOM_SID *sid);
uint32 pdb_search_entries(struct pdb_search *search, uint32 start_idx,
                          uint32 max_entries,
                          struct samr_displayentry **result);
void pdb_search_destroy(struct pdb_search *search);

Why this API? Eventually we will need to apply the work gd has started on
enumerating users with paged ldap searches to groups and aliases. Before doing
that I want to clean up the search routines we have.

The sample application (more to follow) is 'net maxrid'.

Volker
source/include/passdb.h
source/include/smb_macros.h
source/passdb/pdb_interface.c
source/utils/net.c