diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-02-20 02:57:07 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-02-20 02:57:07 +0100 |
commit | 995788536e5ba7b3a0e67e377a9769b279d0b8ae (patch) | |
tree | 06fb578a17c9bc81e7a0c53215853f1a4c81bde4 /source4/lib/ldb/ldb_ildap | |
parent | e3661a6181a7fbeffb02745adda509c01779d5ca (diff) | |
download | samba-995788536e5ba7b3a0e67e377a9769b279d0b8ae.tar.gz samba-995788536e5ba7b3a0e67e377a9769b279d0b8ae.tar.bz2 samba-995788536e5ba7b3a0e67e377a9769b279d0b8ae.zip |
Remove more function-based inits.
(This used to be commit b1a7810f3e70f9a831d9b8e85d531e448072adaf)
Diffstat (limited to 'source4/lib/ldb/ldb_ildap')
-rw-r--r-- | source4/lib/ldb/ldb_ildap/ldb_ildap.c | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/source4/lib/ldb/ldb_ildap/ldb_ildap.c b/source4/lib/ldb/ldb_ildap/ldb_ildap.c index 8ad6830c43..fb7100e3c1 100644 --- a/source4/lib/ldb/ldb_ildap/ldb_ildap.c +++ b/source4/lib/ldb/ldb_ildap/ldb_ildap.c @@ -811,6 +811,18 @@ failed: return -1; } -ldb_connect_fn ldb_ldap_connect = ildb_connect; -ldb_connect_fn ldb_ldapi_connect = ildb_connect; -ldb_connect_fn ldb_ldaps_connect = ildb_connect; +const struct ldb_backend_ops ldb_ldap_backend_ops { + .name = "ldap", + .connect_fn = ildb_connect +}; + +const struct ldb_backend_ops ldb_ildap_backend_ops { + .name = "ildap", + .connect_fn = ildb_connect +}; + +const struct ldb_backend_ops ldb_ldaps_backend_ops { + .name = "ldaps", + .connect_fn = ildb_connect +}; + |