summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2011-08-10 13:46:34 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-08-13 10:25:06 +1000
commit6f21f556c1e9a6df9f7dc00aa1e270ff91ffd850 (patch)
tree004c16842d3f443bb54e27ba28d6a6729d11f865 /source3
parenta1088d08430bbf487c34236bbad367158621ecd9 (diff)
downloadsamba-6f21f556c1e9a6df9f7dc00aa1e270ff91ffd850.tar.gz
samba-6f21f556c1e9a6df9f7dc00aa1e270ff91ffd850.tar.bz2
samba-6f21f556c1e9a6df9f7dc00aa1e270ff91ffd850.zip
passdb: Add a function to expose loaded backend list.
This function is used in python wrapper to list available python backends.
Diffstat (limited to 'source3')
-rw-r--r--source3/passdb/pdb_interface.c6
-rw-r--r--source3/passdb/proto.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/source3/passdb/pdb_interface.c b/source3/passdb/pdb_interface.c
index c92b22ae99..bc79459245 100644
--- a/source3/passdb/pdb_interface.c
+++ b/source3/passdb/pdb_interface.c
@@ -99,6 +99,12 @@ struct pdb_init_function_entry *pdb_find_backend_entry(const char *name)
return NULL;
}
+const struct pdb_init_function_entry *pdb_get_backends(void)
+{
+ return backends;
+}
+
+
/*
* The event context for the passdb backend. I know this is a bad hack and yet
* another static variable, but our pdb API is a global thing per
diff --git a/source3/passdb/proto.h b/source3/passdb/proto.h
index 3699efe799..e84ece7497 100644
--- a/source3/passdb/proto.h
+++ b/source3/passdb/proto.h
@@ -201,6 +201,7 @@ uint32_t pdb_build_fields_present(struct samu *sampass);
NTSTATUS smb_register_passdb(int version, const char *name, pdb_init_function init) ;
struct pdb_init_function_entry *pdb_find_backend_entry(const char *name);
+const struct pdb_init_function_entry *pdb_get_backends(void);
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);