diff options
author | Günther Deschner <gd@samba.org> | 2009-10-28 11:03:15 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2011-07-31 22:37:26 +0200 |
commit | f9a5df89292eeab54b9eed4bacb5b11e7f31f1fb (patch) | |
tree | 3ec62ad9f7e978f201a2f44d6c3e16bbab7a2532 /source3/include | |
parent | b0d9f620aa0182e4e3f60b19896e059f2cfa1ac1 (diff) | |
download | samba-f9a5df89292eeab54b9eed4bacb5b11e7f31f1fb.tar.gz samba-f9a5df89292eeab54b9eed4bacb5b11e7f31f1fb.tar.bz2 samba-f9a5df89292eeab54b9eed4bacb5b11e7f31f1fb.zip |
s3-passdb: add dummy calls to control global (replicated) secrets.
Guenther
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/passdb.h | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/source3/include/passdb.h b/source3/include/passdb.h index 855d253086..546bcb0cb1 100644 --- a/source3/include/passdb.h +++ b/source3/include/passdb.h @@ -316,9 +316,10 @@ enum pdb_policy_type { * Changed to 17, the sampwent interface is gone. * Changed to 18, pdb_rid_algorithm -> pdb_capabilities * Changed to 19, removed uid_to_rid + * Changed to 20, pdb_secret calls */ -#define PASSDB_INTERFACE_VERSION 19 +#define PASSDB_INTERFACE_VERSION 20 struct pdb_methods { @@ -484,7 +485,6 @@ struct pdb_methods TALLOC_CTX *mem_ctx, uint32_t *num_domains, struct trustdom_info ***domains); - NTSTATUS (*get_trusted_domain)(struct pdb_methods *methods, TALLOC_CTX *mem_ctx, const char *domain, @@ -503,6 +503,22 @@ struct pdb_methods uint32_t *num_domains, struct pdb_trusted_domain ***domains); + NTSTATUS (*get_secret)(struct pdb_methods *methods, + TALLOC_CTX *mem_ctx, + const char *secret_name, + DATA_BLOB *secret_current, + NTTIME *secret_current_lastchange, + DATA_BLOB *secret_old, + NTTIME *secret_old_lastchange, + struct security_descriptor **sd); + NTSTATUS (*set_secret)(struct pdb_methods *methods, + const char *secret_name, + DATA_BLOB *secret_current, + DATA_BLOB *secret_old, + struct security_descriptor *sd); + NTSTATUS (*delete_secret)(struct pdb_methods *methods, + const char *secret_name); + void *private_data; /* Private data of some kind */ void (*free_private_data)(void **); |