diff options
author | Volker Lendecke <vl@samba.org> | 2009-07-04 11:12:33 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-07-04 12:54:22 +0200 |
commit | b8322ec2b23f60379cbecaf68c0ce8f254611d41 (patch) | |
tree | 244cd83c4f6ddde972f57389151fbecb02768abc /source3/passdb | |
parent | 1c778aa19a345a813942e1502539b1503b2085bd (diff) | |
download | samba-b8322ec2b23f60379cbecaf68c0ce8f254611d41.tar.gz samba-b8322ec2b23f60379cbecaf68c0ce8f254611d41.tar.bz2 samba-b8322ec2b23f60379cbecaf68c0ce8f254611d41.zip |
Add pdb_get_domain_info
Diffstat (limited to 'source3/passdb')
-rw-r--r-- | source3/passdb/pdb_ads.c | 7 | ||||
-rw-r--r-- | source3/passdb/pdb_interface.c | 13 |
2 files changed, 20 insertions, 0 deletions
diff --git a/source3/passdb/pdb_ads.c b/source3/passdb/pdb_ads.c index f6cf06f1b2..1f3788c94f 100644 --- a/source3/passdb/pdb_ads.c +++ b/source3/passdb/pdb_ads.c @@ -69,6 +69,12 @@ struct pdb_ads_samu_private { struct tldap_message *ldapmsg; }; +static struct pdb_domain_info *pdb_ads_get_domain_info( + struct pdb_methods *m, TALLOC_CTX *mem_ctx) +{ + return NULL; +} + static struct samu *pdb_ads_init_guest(TALLOC_CTX *mem_ctx, struct pdb_methods *m) { @@ -1962,6 +1968,7 @@ static NTSTATUS pdb_ads_enum_trusteddoms(struct pdb_methods *m, static void pdb_ads_init_methods(struct pdb_methods *m) { m->name = "ads"; + m->get_domain_info = pdb_ads_get_domain_info; m->getsampwnam = pdb_ads_getsampwnam; m->getsampwsid = pdb_ads_getsampwsid; m->create_user = pdb_ads_create_user; diff --git a/source3/passdb/pdb_interface.c b/source3/passdb/pdb_interface.c index a72409ea4a..465a6bf595 100644 --- a/source3/passdb/pdb_interface.c +++ b/source3/passdb/pdb_interface.c @@ -210,6 +210,12 @@ static struct pdb_methods *pdb_get_methods(void) return pdb_get_methods_reload(False); } +struct pdb_domain_info *pdb_get_domain_info(TALLOC_CTX *mem_ctx) +{ + struct pdb_methods *pdb = pdb_get_methods(); + return pdb->get_domain_info(pdb, mem_ctx); +} + bool pdb_getsampwnam(struct samu *sam_acct, const char *username) { struct pdb_methods *pdb = pdb_get_methods(); @@ -1992,6 +1998,12 @@ static NTSTATUS pdb_default_enum_trusteddoms(struct pdb_methods *methods, return secrets_trusted_domains(mem_ctx, num_domains, domains); } +static struct pdb_domain_info *pdb_default_get_domain_info( + struct pdb_methods *m, TALLOC_CTX *mem_ctx) +{ + return NULL; +} + /******************************************************************* Create a pdb_methods structure and initialize it with the default operations. In this way a passdb module can simply implement @@ -2008,6 +2020,7 @@ NTSTATUS make_pdb_method( struct pdb_methods **methods ) return NT_STATUS_NO_MEMORY; } + (*methods)->get_domain_info = pdb_default_get_domain_info; (*methods)->getsampwnam = pdb_default_getsampwnam; (*methods)->getsampwsid = pdb_default_getsampwsid; (*methods)->create_user = pdb_default_create_user; |