diff options
author | Volker Lendecke <vl@samba.org> | 2009-06-28 17:36:12 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-06-28 22:13:50 +0200 |
commit | 711544d4943a40649b6c590f8ee003093081889a (patch) | |
tree | afee8fcd95e3a9b3844dccd9cb11b2418cf67fd8 /source3/include | |
parent | 325a58a6532e2a9bc7b8e21d55c9b1ccfb879bf9 (diff) | |
download | samba-711544d4943a40649b6c590f8ee003093081889a.tar.gz samba-711544d4943a40649b6c590f8ee003093081889a.tar.bz2 samba-711544d4943a40649b6c590f8ee003093081889a.zip |
Turn the pdb_rid_algorithm into a capabilities call that returns flags
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/passdb.h | 5 | ||||
-rw-r--r-- | source3/include/proto.h | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/source3/include/passdb.h b/source3/include/passdb.h index d67c2842a6..dadb2275d3 100644 --- a/source3/include/passdb.h +++ b/source3/include/passdb.h @@ -197,6 +197,8 @@ struct pdb_search { void (*search_end)(struct pdb_search *search); }; +#define PDB_CAP_STORE_RIDS 0x0001 + /***************************************************************** Functions to be implemented by the new (v2) passdb API ****************************************************************/ @@ -212,6 +214,7 @@ struct pdb_search { * enum lsa_SidType rather than uint32. * Changed to 16 for access to the trusted domain passwords (obnox). * Changed to 17, the sampwent interface is gone. + * Changed to 18, pdb_rid_algorithm -> pdb_capabilities */ #define PASSDB_INTERFACE_VERSION 17 @@ -361,7 +364,7 @@ struct pdb_methods bool (*sid_to_id)(struct pdb_methods *methods, const DOM_SID *sid, union unid_t *id, enum lsa_SidType *type); - bool (*rid_algorithm)(struct pdb_methods *methods); + uint32_t (*capabilities)(struct pdb_methods *methods); bool (*new_rid)(struct pdb_methods *methods, uint32 *rid); diff --git a/source3/include/proto.h b/source3/include/proto.h index 07a749d849..1a8a9a9538 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -4595,7 +4595,7 @@ bool pdb_uid_to_sid(uid_t uid, DOM_SID *sid); bool pdb_gid_to_sid(gid_t gid, DOM_SID *sid); bool pdb_sid_to_id(const DOM_SID *sid, union unid_t *id, enum lsa_SidType *type); -bool pdb_rid_algorithm(void); +uint32_t pdb_capabilities(void); bool pdb_new_rid(uint32 *rid); bool initialize_password_db(bool reload, struct event_context *event_ctx); struct pdb_search *pdb_search_init(TALLOC_CTX *mem_ctx, |