summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2010-08-24 13:48:18 +0200
committerGünther Deschner <gd@samba.org>2011-02-16 11:44:04 +0100
commit72de98228926627673edb99fb83c84f0b835baf5 (patch)
tree45a09806926e7f29a2d6be133efac29e19c652cc /source3/include
parentb4bc1f8f5ce534bb564465e8f706f69ea1e28f57 (diff)
downloadsamba-72de98228926627673edb99fb83c84f0b835baf5.tar.gz
samba-72de98228926627673edb99fb83c84f0b835baf5.tar.bz2
samba-72de98228926627673edb99fb83c84f0b835baf5.zip
s3-ipasam: add ipasam_get_trusted_domain_by_sid()
Signed-off-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/passdb.h4
-rw-r--r--source3/include/proto.h2
2 files changed, 6 insertions, 0 deletions
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);