From 845df42a19bade71bf6985d006e8e54018c53bdf Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sat, 17 Jun 2006 02:20:39 +0000 Subject: r16333: Move more code out of the core smbtorture. It now no longer contains protocol-specific code. (This used to be commit 819d3b457648ffb7526a770e842badc17b6061fb) --- source4/torture/ldap/common.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'source4/torture/ldap/common.c') diff --git a/source4/torture/ldap/common.c b/source4/torture/ldap/common.c index 58944b2768..c08534715a 100644 --- a/source4/torture/ldap/common.c +++ b/source4/torture/ldap/common.c @@ -23,6 +23,8 @@ #include "includes.h" #include "libcli/ldap/ldap.h" +#include "torture/torture.h" +#include "torture/ldap/proto.h" NTSTATUS torture_ldap_bind(struct ldap_connection *conn, const char *userdn, const char *password) { @@ -96,3 +98,13 @@ NTSTATUS torture_ldap_close(struct ldap_connection *conn) talloc_free(conn); return NT_STATUS_OK; } + +NTSTATUS torture_ldap_init(void) +{ + register_torture_op("BENCH-CLDAP", torture_bench_cldap); + register_torture_op("LDAP-BASIC", torture_ldap_basic); + register_torture_op("LDAP-SCHEMA", torture_ldap_schema); + register_torture_op("LDAP-CLDAP", torture_cldap); + + return NT_STATUS_OK; +} -- cgit