diff options
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/passdb.h | 11 | ||||
-rw-r--r-- | source3/include/proto.h | 1 |
2 files changed, 12 insertions, 0 deletions
diff --git a/source3/include/passdb.h b/source3/include/passdb.h index 53ba899d31..c288015c05 100644 --- a/source3/include/passdb.h +++ b/source3/include/passdb.h @@ -197,6 +197,14 @@ struct pdb_search { void (*search_end)(struct pdb_search *search); }; +struct pdb_domain_info { + char *name; + char *dns_domain; + char *dns_forest; + struct dom_sid sid; + struct GUID guid; +}; + #define PDB_CAP_STORE_RIDS 0x0001 #define PDB_CAP_ADS 0x0002 @@ -224,6 +232,9 @@ struct pdb_methods { const char *name; /* What name got this module */ + struct pdb_domain_info *(*get_domain_info)(struct pdb_methods *, + TALLOC_CTX *mem_ctx); + NTSTATUS (*getsampwnam)(struct pdb_methods *, struct samu *sam_acct, const char *username); NTSTATUS (*getsampwsid)(struct pdb_methods *, struct samu *sam_acct, const DOM_SID *sid); diff --git a/source3/include/proto.h b/source3/include/proto.h index 7f4907cd96..955a5a0947 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -4531,6 +4531,7 @@ NTSTATUS smb_register_passdb(int version, const char *name, pdb_init_function in struct pdb_init_function_entry *pdb_find_backend_entry(const char *name); struct event_context *pdb_get_event_context(void); NTSTATUS make_pdb_method_name(struct pdb_methods **methods, const char *selected); +struct pdb_domain_info *pdb_get_domain_info(TALLOC_CTX *mem_ctx); bool pdb_getsampwnam(struct samu *sam_acct, const char *username) ; bool guest_user_info( struct samu *user ); bool pdb_getsampwsid(struct samu *sam_acct, const DOM_SID *sid) ; |