diff options
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/passdb.h | 26 | ||||
-rw-r--r-- | source3/include/proto.h | 7 |
2 files changed, 33 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 **); diff --git a/source3/include/proto.h b/source3/include/proto.h index 6f0dbae561..a5d69bc214 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -3873,6 +3873,13 @@ bool pdb_set_trusteddom_pw(const char* domain, const char* pwd, bool pdb_del_trusteddom_pw(const char *domain); 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_set_trusted_domain(const char* domain, + const struct pdb_trusted_domain *td); +NTSTATUS pdb_del_trusted_domain(const char *domain); +NTSTATUS pdb_enum_trusted_domains(TALLOC_CTX *mem_ctx, uint32_t *num_domains, + struct pdb_trusted_domain ***domains); NTSTATUS make_pdb_method( struct pdb_methods **methods ) ; /* The following definitions come from passdb/pdb_ldap.c */ |