From 72de98228926627673edb99fb83c84f0b835baf5 Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Tue, 24 Aug 2010 13:48:18 +0200 Subject: s3-ipasam: add ipasam_get_trusted_domain_by_sid() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Günther Deschner --- source3/include/passdb.h | 4 ++++ source3/include/proto.h | 2 ++ 2 files changed, 6 insertions(+) (limited to 'source3/include') diff --git a/source3/include/passdb.h b/source3/include/passdb.h index 5610897b42..ddf3d9489a 100644 --- a/source3/include/passdb.h +++ b/source3/include/passdb.h @@ -454,6 +454,10 @@ struct pdb_methods TALLOC_CTX *mem_ctx, const char *domain, struct pdb_trusted_domain **td); + NTSTATUS (*get_trusted_domain_by_sid)(struct pdb_methods *methods, + TALLOC_CTX *mem_ctx, + struct dom_sid *sid, + struct pdb_trusted_domain **td); NTSTATUS (*set_trusted_domain)(struct pdb_methods *methods, const char* domain, const struct pdb_trusted_domain *td); diff --git a/source3/include/proto.h b/source3/include/proto.h index 5ce6bd6a9d..3a964c3c52 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -3875,6 +3875,8 @@ NTSTATUS pdb_enum_trusteddoms(TALLOC_CTX *mem_ctx, uint32_t *num_domains, struct trustdom_info ***domains); NTSTATUS pdb_get_trusted_domain(TALLOC_CTX *mem_ctx, const char *domain, struct pdb_trusted_domain **td); +NTSTATUS pdb_get_trusted_domain_by_sid(TALLOC_CTX *mem_ctx, struct dom_sid *sid, + struct pdb_trusted_domain **td); NTSTATUS pdb_set_trusted_domain(const char* domain, const struct pdb_trusted_domain *td); NTSTATUS pdb_del_trusted_domain(const char *domain); -- cgit