svn commit: samba r6278 - in trunk/source: include passdb utils
vlendec at samba.org
vlendec at samba.org
Sun Apr 10 15:27:25 GMT 2005
Author: vlendec
Date: 2005-04-10 15:27:24 +0000 (Sun, 10 Apr 2005)
New Revision: 6278
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=6278
Log:
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
Modified:
trunk/source/include/passdb.h
trunk/source/passdb/pdb_interface.c
trunk/source/utils/net.c
Changeset:
Sorry, the patch is too large (491 lines) to include; please use WebSVN to see it!
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=6278
More information about the samba-cvs
mailing list