summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/ldb_ldap
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-02-20 04:33:43 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-02-20 04:33:43 +0100
commit39a817d310964f8e9a63cfb096b3ad24fa03bd5e (patch)
tree3fa2381e086942f94372cecba60e919bd7805cb7 /source4/lib/ldb/ldb_ldap
parent0020793515ade04f3ef5754717490e2eb2ca6bb9 (diff)
downloadsamba-39a817d310964f8e9a63cfb096b3ad24fa03bd5e.tar.gz
samba-39a817d310964f8e9a63cfb096b3ad24fa03bd5e.tar.bz2
samba-39a817d310964f8e9a63cfb096b3ad24fa03bd5e.zip
Fix use of some modules (needed _PUBLIC_).
(This used to be commit ce332130ea77159832da23bab760fa26921719e2)
Diffstat (limited to 'source4/lib/ldb/ldb_ldap')
-rw-r--r--source4/lib/ldb/ldb_ldap/ldb_ldap.c20
1 files changed, 14 insertions, 6 deletions
diff --git a/source4/lib/ldb/ldb_ldap/ldb_ldap.c b/source4/lib/ldb/ldb_ldap/ldb_ldap.c
index d897350c2f..3f6ff3fd5b 100644
--- a/source4/lib/ldb/ldb_ldap/ldb_ldap.c
+++ b/source4/lib/ldb/ldb_ldap/ldb_ldap.c
@@ -826,9 +826,17 @@ failed:
return -1;
}
-int ldb_ldap_init(void)
-{
- return ldb_register_backend("ldap", lldb_connect) +
- ldb_register_backend("ldapi", lldb_connect) +
- ldb_register_backend("ldaps", lldb_connect);
-}
+_PUBLIC_ struct ldb_backend_ops ldb_ldap_backend_ops = {
+ .name = "ldap",
+ .connect_fn = lldb_connect
+};
+
+_PUBLIC_ struct ldb_backend_ops ldb_ldapi_backend_ops = {
+ .name = "ldapi",
+ .connect_fn = lldb_connect
+};
+
+_PUBLIC_ struct ldb_backend_ops ldb_ldaps_backend_ops = {
+ .name = "ldaps",
+ .connect_fn = lldb_connect
+};