summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-09-21 12:49:32 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 15:07:06 -0500
commite62dc0f1efcf7834977be042fd111daeabd8eeec (patch)
treeeeb73e9f90c3dc2bbb0a904819cceef8c1e151d0 /source4/torture
parent204ca09d8e470346a157be11d3c8ebfaea38d612 (diff)
downloadsamba-e62dc0f1efcf7834977be042fd111daeabd8eeec.tar.gz
samba-e62dc0f1efcf7834977be042fd111daeabd8eeec.tar.bz2
samba-e62dc0f1efcf7834977be042fd111daeabd8eeec.zip
r25289: add WINBIND-STRUCT-INFO test
this may needs --option="torture:winbindd separator=+" metze (This used to be commit 8bf28eecf274c5f53ab735036ffe09e0df751a9c)
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/winbind/struct_based.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/source4/torture/winbind/struct_based.c b/source4/torture/winbind/struct_based.c
index 577b7dbcab..a94082dd8d 100644
--- a/source4/torture/winbind/struct_based.c
+++ b/source4/torture/winbind/struct_based.c
@@ -97,6 +97,31 @@ static bool torture_winbind_struct_ping(struct torture_context *torture)
return true;
}
+static bool torture_winbind_struct_info(struct torture_context *torture)
+{
+ struct winbindd_response rep;
+ const char *separator;
+
+ ZERO_STRUCT(rep);
+
+ torture_comment(torture, "Running WINBINDD_INFO (struct based)\n");
+
+ DO_STRUCT_REQ_REP(WINBINDD_INFO, NULL, &rep);
+
+ separator = torture_setting_string(torture,
+ "winbindd separator",
+ lp_winbind_separator());
+ torture_assert_int_equal(torture,
+ rep.data.info.winbind_separator,
+ *separator,
+ "winbind separator doesn't match");
+
+ torture_comment(torture, "Samba Version '%s'\n",
+ rep.data.info.samba_version);
+
+ return true;
+}
+
static bool torture_winbind_struct_netbios_name(struct torture_context *torture)
{
struct winbindd_request req;
@@ -396,6 +421,7 @@ struct torture_suite *torture_winbind_struct_init(void)
torture_suite_add_simple_test(suite, "INTERFACE_VERSION", torture_winbind_struct_interface_version);
torture_suite_add_simple_test(suite, "PING", torture_winbind_struct_ping);
+ torture_suite_add_simple_test(suite, "INFO", torture_winbind_struct_info);
torture_suite_add_simple_test(suite, "NETBIOS_NAME", torture_winbind_struct_netbios_name);
torture_suite_add_simple_test(suite, "DOMAIN_NAME", torture_winbind_struct_domain_name);
torture_suite_add_simple_test(suite, "LIST_TRUSTDOM", torture_winbind_struct_list_trustdom);