diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-02-20 01:56:55 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-02-20 01:56:55 +0100 |
commit | e3661a6181a7fbeffb02745adda509c01779d5ca (patch) | |
tree | 984b6cf358af46e1267ba8a9413eadd11455a84e | |
parent | 16109a40c0abd8c30a5eb9bf9ef692bfae9dfc7d (diff) | |
download | samba-e3661a6181a7fbeffb02745adda509c01779d5ca.tar.gz samba-e3661a6181a7fbeffb02745adda509c01779d5ca.tar.bz2 samba-e3661a6181a7fbeffb02745adda509c01779d5ca.zip |
Use function-based initialization for ildap backend.
(This used to be commit 46e5027f56722fbe19af36aad1ab03ea1c862f43)
-rw-r--r-- | source4/lib/ldb/ldb_ildap/ldb_ildap.c | 9 |
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; |