summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-02-20 01:56:55 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-02-20 01:56:55 +0100
commite3661a6181a7fbeffb02745adda509c01779d5ca (patch)
tree984b6cf358af46e1267ba8a9413eadd11455a84e /source4/lib
parent16109a40c0abd8c30a5eb9bf9ef692bfae9dfc7d (diff)
downloadsamba-e3661a6181a7fbeffb02745adda509c01779d5ca.tar.gz
samba-e3661a6181a7fbeffb02745adda509c01779d5ca.tar.bz2
samba-e3661a6181a7fbeffb02745adda509c01779d5ca.zip
Use function-based initialization for ildap backend.
(This used to be commit 46e5027f56722fbe19af36aad1ab03ea1c862f43)
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/ldb/ldb_ildap/ldb_ildap.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/source4/lib/ldb/ldb_ildap/ldb_ildap.c b/source4/lib/ldb/ldb_ildap/ldb_ildap.c
index a834e912d4..8ad6830c43 100644
--- a/source4/lib/ldb/ldb_ildap/ldb_ildap.c
+++ b/source4/lib/ldb/ldb_ildap/ldb_ildap.c
@@ -811,9 +811,6 @@ failed:
return -1;
}
-int ldb_ildap_init(void)
-{
- return ldb_register_backend("ldap", ildb_connect) +
- ldb_register_backend("ldapi", ildb_connect) +
- ldb_register_backend("ldaps", ildb_connect);
-}
+ldb_connect_fn ldb_ldap_connect = ildb_connect;
+ldb_connect_fn ldb_ldapi_connect = ildb_connect;
+ldb_connect_fn ldb_ldaps_connect = ildb_connect;