diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2006-03-05 16:05:26 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:52:14 -0500 |
commit | 5d0aa16dfcf3047a52d3dd7e12ffb704a9725e83 (patch) | |
tree | 8a9ae36a29652dec9dbb5138ba3c0dee86b8e32d /source4/lib/ldb/ldb_ildap | |
parent | 8edf29e8ef4d886321a6e8ec3902065641d34f40 (diff) | |
download | samba-5d0aa16dfcf3047a52d3dd7e12ffb704a9725e83.tar.gz samba-5d0aa16dfcf3047a52d3dd7e12ffb704a9725e83.tar.bz2 samba-5d0aa16dfcf3047a52d3dd7e12ffb704a9725e83.zip |
r13839: Use registration mechanism for backends as well (in the same sense
my previous patch added it for modules). This is the next step towards
LDB backends and modules as run-time loadable .so files.
(This used to be commit fb2f70de4f6c4a9b13ad590cb4d3a9c858cede49)
Diffstat (limited to 'source4/lib/ldb/ldb_ildap')
-rw-r--r-- | source4/lib/ldb/ldb_ildap/ldb_ildap.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/lib/ldb/ldb_ildap/ldb_ildap.c b/source4/lib/ldb/ldb_ildap/ldb_ildap.c index 3467e65bf9..ab37ab7570 100644 --- a/source4/lib/ldb/ldb_ildap/ldb_ildap.c +++ b/source4/lib/ldb/ldb_ildap/ldb_ildap.c @@ -987,7 +987,7 @@ static const struct ldb_module_ops ildb_ops = { /* connect to the database */ -int ildb_connect(struct ldb_context *ldb, const char *url, +static int ildb_connect(struct ldb_context *ldb, const char *url, unsigned int flags, const char *options[]) { struct ildb_private *ildb = NULL; @@ -1065,3 +1065,7 @@ failed: return -1; } +int ldb_ildap_init(void) +{ + return ldb_register_backend("ldap", ildb_connect); +} |