diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-11-01 22:30:23 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-11-01 13:05:04 +0000 |
commit | a386ca85590a0ee18c1d98c80c6b1ec4faab31a7 (patch) | |
tree | 8fef6fd8fa4ed2bfbe1cd822f1428164c3858f08 /source4/lib/ldb/ldb_ldap | |
parent | 8366bb495abefe5cc1d0cb120530a1933d942fbf (diff) | |
download | samba-a386ca85590a0ee18c1d98c80c6b1ec4faab31a7.tar.gz samba-a386ca85590a0ee18c1d98c80c6b1ec4faab31a7.tar.bz2 samba-a386ca85590a0ee18c1d98c80c6b1ec4faab31a7.zip |
s4-ldb: enable ldb module version checking
Diffstat (limited to 'source4/lib/ldb/ldb_ldap')
-rw-r--r-- | source4/lib/ldb/ldb_ldap/ldb_ldap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/lib/ldb/ldb_ldap/ldb_ldap.c b/source4/lib/ldb/ldb_ldap/ldb_ldap.c index b32be90a89..6728269286 100644 --- a/source4/lib/ldb/ldb_ldap/ldb_ldap.c +++ b/source4/lib/ldb/ldb_ldap/ldb_ldap.c @@ -957,10 +957,11 @@ failed: /* initialise the module */ -int ldb_ldap_init(const char *ldb_version) +int ldb_ldap_init(const char *version) { int ret, i; const char *names[] = { "ldap", "ldaps", "ldapi", NULL }; + LDB_MODULE_CHECK_VERSION(version); for (i=0; names[i]; i++) { ret = ldb_register_backend(names[i], lldb_connect, false); if (ret != LDB_SUCCESS) { |