summaryrefslogtreecommitdiff
path: root/source3/include/passdb.h
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2010-07-15 16:22:42 +0200
committerGünther Deschner <gd@samba.org>2011-02-16 11:34:44 +0100
commitb4dd65d3f99022bd5fe7e320d7e36da5432592bb (patch)
tree53d82740d2d98fee820f22e386f4411e4bab41b6 /source3/include/passdb.h
parent2e78022066f305143bfbe4cdef757051c8305f1d (diff)
downloadsamba-b4dd65d3f99022bd5fe7e320d7e36da5432592bb.tar.gz
samba-b4dd65d3f99022bd5fe7e320d7e36da5432592bb.tar.bz2
samba-b4dd65d3f99022bd5fe7e320d7e36da5432592bb.zip
s3-passdb: add {get,set,del,enum}_trusted_domain calls
Signed-off-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'source3/include/passdb.h')
-rw-r--r--source3/include/passdb.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/source3/include/passdb.h b/source3/include/passdb.h
index dc50533cdf..5610897b42 100644
--- a/source3/include/passdb.h
+++ b/source3/include/passdb.h
@@ -225,6 +225,17 @@ struct pdb_domain_info {
struct GUID guid;
};
+struct pdb_trusted_domain {
+ char *domain_name;
+ char *netbios_name;
+ struct dom_sid security_identifier;
+ DATA_BLOB trust_auth_incoming;
+ DATA_BLOB trust_auth_outgoing;
+ uint32_t trust_direction;
+ uint32_t trust_type;
+ uint32_t trust_attributes;
+};
+
/*
* trusted domain entry/entries returned by secrets_get_trusted_domains
* (used in _lsa_enum_trust_dom call)
@@ -438,6 +449,21 @@ 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,
+ struct pdb_trusted_domain **td);
+ NTSTATUS (*set_trusted_domain)(struct pdb_methods *methods,
+ const char* domain,
+ const struct pdb_trusted_domain *td);
+ NTSTATUS (*del_trusted_domain)(struct pdb_methods *methods,
+ const char *domain);
+ NTSTATUS (*enum_trusted_domains)(struct pdb_methods *methods,
+ TALLOC_CTX *mem_ctx,
+ uint32_t *num_domains,
+ struct pdb_trusted_domain ***domains);
+
void *private_data; /* Private data of some kind */
void (*free_private_data)(void **);