summaryrefslogtreecommitdiffstats
path: root/source3/include/passdb.h
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-07-04 11:12:33 +0200
committerVolker Lendecke <vl@samba.org>2009-07-04 12:54:22 +0200
commitb8322ec2b23f60379cbecaf68c0ce8f254611d41 (patch)
tree244cd83c4f6ddde972f57389151fbecb02768abc /source3/include/passdb.h
parent1c778aa19a345a813942e1502539b1503b2085bd (diff)
downloadsamba-b8322ec2b23f60379cbecaf68c0ce8f254611d41.tar.gz
samba-b8322ec2b23f60379cbecaf68c0ce8f254611d41.tar.xz
samba-b8322ec2b23f60379cbecaf68c0ce8f254611d41.zip
Add pdb_get_domain_info
Diffstat (limited to 'source3/include/passdb.h')
-rw-r--r--source3/include/passdb.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/source3/include/passdb.h b/source3/include/passdb.h
index 53ba899d31f..c288015c053 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);