summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-02-22 02:47:53 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-02-22 02:47:53 +0000
commit527aaf6def6b53c0e01fc5d8369b06be4237fca0 (patch)
tree10319b71b7c9f7e2a2fd13b520a7f7bd03390fa5 /source3/include
parent34b31b529eff309d11877197b1fbc62a06f3920a (diff)
downloadsamba-527aaf6def6b53c0e01fc5d8369b06be4237fca0.tar.gz
samba-527aaf6def6b53c0e01fc5d8369b06be4237fca0.tar.bz2
samba-527aaf6def6b53c0e01fc5d8369b06be4237fca0.zip
Add the pdb_plugin module from Jelmer Vernooij <jelmer@nl.linux.org>.
This allow the user to select 'passdb backend = plugin : /path/to/plugin.so : pluging args' And load any arbitary plugin. Apparently Jelmer has a mysql plugin in the works - hence this patch. We probably need to rework the interface a bit before 3.0 (add versioning of some kind) but this is a good start. Andrew Bartlett (This used to be commit d6d18b70f0c377344b0b3d9df5a11d209793bfe0)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/passdb.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/include/passdb.h b/source3/include/passdb.h
index dfcbd46ecf..f17b043fb2 100644
--- a/source3/include/passdb.h
+++ b/source3/include/passdb.h
@@ -82,8 +82,11 @@ typedef struct pdb_methods
} PDB_METHODS;
+typedef NTSTATUS (*pdb_init_function)(struct pdb_context *,
+ struct pdb_methods **,
+ const char *);
-struct pdb_init_function {
+struct pdb_init_function_entry {
char *name;
/* Function to create a member of the authmethods list */
NTSTATUS (*init)(struct pdb_context *pdb_context,