Use function-based initialization for ildap backend.
authorJelmer Vernooij <jelmer@samba.org>
Wed, 20 Feb 2008 00:56:55 +0000 (01:56 +0100)
committerJelmer Vernooij <jelmer@samba.org>
Wed, 20 Feb 2008 00:56:55 +0000 (01:56 +0100)
source/lib/ldb/ldb_ildap/ldb_ildap.c

index a834e91..8ad6830 100644 (file)
@@ -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;