summaryrefslogtreecommitdiff
path: root/source4/torture/ldap
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-06-17 02:20:39 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:09:11 -0500
commit845df42a19bade71bf6985d006e8e54018c53bdf (patch)
tree178f954f612466265049694564e7bf950524e0f9 /source4/torture/ldap
parent835d8ed2f61fff798ac49156df94b86ace704b6d (diff)
downloadsamba-845df42a19bade71bf6985d006e8e54018c53bdf.tar.gz
samba-845df42a19bade71bf6985d006e8e54018c53bdf.tar.bz2
samba-845df42a19bade71bf6985d006e8e54018c53bdf.zip
r16333: Move more code out of the core smbtorture. It now no longer
contains protocol-specific code. (This used to be commit 819d3b457648ffb7526a770e842badc17b6061fb)
Diffstat (limited to 'source4/torture/ldap')
-rw-r--r--source4/torture/ldap/common.c12
1 files changed, 12 insertions, 0 deletions
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;
+}