torture 34 lib/crypto/hmacmd5test.c bool torture_local_crypto_hmacmd5(struct torture_context *torture) torture 44 lib/crypto/hmacmd5test.c TALLOC_CTX *tctx = talloc_new(torture); torture 28 lib/crypto/md4test.c bool torture_local_crypto_md4(struct torture_context *torture) torture 28 lib/crypto/md5test.c bool torture_local_crypto_md5(struct torture_context *torture) torture 46 lib/torture/torture.c struct torture_context *torture = talloc_zero(event_ctx, torture 49 lib/torture/torture.c if (torture == NULL) torture 52 lib/torture/torture.c torture->ev = event_ctx; torture 53 lib/torture/torture.c torture->results = talloc_reference(torture, results); torture 55 lib/torture/torture.c return torture; torture 1907 source4/torture/basic/denytest.c bool torture_ntdenytest2(struct torture_context *torture, torture 1911 source4/torture/basic/denytest.c return torture_ntdenytest(torture, cli1, cli2, 0); torture 130 source4/torture/basic/disconnect.c bool torture_disconnect(struct torture_context *torture) torture 140 source4/torture/basic/disconnect.c if (!torture_open_connection(&cli, torture, 0)) { torture 150 source4/torture/basic/disconnect.c if (!torture_open_connection(&cli, torture, 0)) { torture 155 source4/torture/basic/disconnect.c if (!torture_open_connection(&cli, torture, 0)) { torture 159 source4/torture/basic/disconnect.c if (torture_setting_bool(torture, "samba3", false)) { torture 163 source4/torture/basic/mangle_test.c bool torture_mangle(struct torture_context *torture, torture 183 source4/torture/basic/mangle_test.c name = gen_name(torture); torture 185 source4/torture/basic/mangle_test.c if (!test_one(torture, cli, name)) { torture 189 source4/torture/basic/mangle_test.c if (torture_setting_bool(torture, "progress", true)) { torture 91 source4/torture/basic/properties.c bool torture_test_properties(struct torture_context *torture, torture 285 source4/torture/basic/scanner.c bool torture_trans2_scan(struct torture_context *torture, torture 546 source4/torture/basic/scanner.c bool torture_nttrans_scan(struct torture_context *torture, torture 551 source4/torture/basic/scanner.c struct smb_iconv_convenience *iconv_convenience = lp_iconv_convenience(torture->lp_ctx); torture 582 source4/torture/basic/scanner.c bool torture_smb_scan(struct torture_context *torture) torture 592 source4/torture/basic/scanner.c if (!torture_open_connection(&cli, torture, 0)) { torture 193 source4/torture/ldap/basic.c bool torture_ldap_basic(struct torture_context *torture) torture 199 source4/torture/ldap/basic.c const char *host = torture_setting_string(torture, "host", NULL); torture 200 source4/torture/ldap/basic.c const char *userdn = torture_setting_string(torture, "ldap_userdn", NULL); torture 201 source4/torture/ldap/basic.c const char *secret = torture_setting_string(torture, "ldap_secret", NULL); torture 209 source4/torture/ldap/basic.c status = torture_ldap_connection(torture, &conn, url); torture 224 source4/torture/ldap/basic.c if (!test_bind_sasl(torture, conn, cmdline_credentials)) { torture 485 source4/torture/ldap/cldap.c bool torture_cldap(struct torture_context *torture) torture 488 source4/torture/ldap/cldap.c const char *host = torture_setting_string(torture, "host", NULL); torture 490 source4/torture/ldap/cldap.c ret &= test_cldap_netlogon(torture, host); torture 491 source4/torture/ldap/cldap.c ret &= test_cldap_netlogon_flags(torture, host); torture 492 source4/torture/ldap/cldap.c ret &= test_cldap_netlogon_flag_ds_dns_forest(torture, host); torture 493 source4/torture/ldap/cldap.c ret &= test_cldap_generic(torture, host); torture 183 source4/torture/ldap/cldapbench.c bool torture_bench_cldap(struct torture_context *torture) torture 190 source4/torture/ldap/cldapbench.c make_nbt_name_server(&name, torture_setting_string(torture, "host", NULL)); torture 193 source4/torture/ldap/cldapbench.c status = resolve_name(lp_resolve_context(torture->lp_ctx), &name, torture, &address, torture->ev); torture 200 source4/torture/ldap/cldapbench.c ret &= bench_cldap_netlogon(torture, address); torture 201 source4/torture/ldap/cldapbench.c ret &= bench_cldap_rootdse(torture, address); torture 378 source4/torture/ldap/schema.c bool torture_ldap_schema(struct torture_context *torture) torture 382 source4/torture/ldap/schema.c const char *host = torture_setting_string(torture, "host", NULL); torture 389 source4/torture/ldap/schema.c url = talloc_asprintf(torture, "ldap://%s/", host); torture 391 source4/torture/ldap/schema.c ldb = ldb_wrap_connect(torture, torture->ev, torture->lp_ctx, url, torture 39 source4/torture/ldap/uptodatevector.c static bool test_check_uptodatevector(struct torture_context *torture, torture 57 source4/torture/ldap/uptodatevector.c torture_comment(torture, "Check replUpToDateVector on partition[%s]\n", torture 60 source4/torture/ldap/uptodatevector.c ret = ldb_search(ldb, torture, &r, partition_dn, LDB_SCOPE_BASE, attrs, torture 72 source4/torture/ldap/uptodatevector.c ndr_err = ndr_pull_struct_blob_all(utdv_val1, torture, torture 73 source4/torture/ldap/uptodatevector.c lp_iconv_convenience(torture->lp_ctx), &utdv1, torture 89 source4/torture/ldap/uptodatevector.c msg = ldb_msg_new(torture); torture 118 source4/torture/ldap/uptodatevector.c ndr_err = ndr_pull_struct_blob_all(utdv_val, torture, torture 119 source4/torture/ldap/uptodatevector.c lp_iconv_convenience(torture->lp_ctx), &utdv, torture 137 source4/torture/ldap/uptodatevector.c torture_comment(torture, "[%u]: uSNChanged[%llu] description[%s] replUpToDateVector[%s]\n", i, torture 154 source4/torture/ldap/uptodatevector.c bool torture_ldap_uptodatevector(struct torture_context *torture) torture 158 source4/torture/ldap/uptodatevector.c const char *host = torture_setting_string(torture, "host", NULL); torture 161 source4/torture/ldap/uptodatevector.c url = talloc_asprintf(torture, "ldap://%s/", host); torture 164 source4/torture/ldap/uptodatevector.c ldb = ldb_wrap_connect(torture, torture->ev, torture->lp_ctx, url, torture 170 source4/torture/ldap/uptodatevector.c ret &= test_check_uptodatevector(torture, ldb, samdb_base_dn(ldb)); torture 171 source4/torture/ldap/uptodatevector.c ret &= test_check_uptodatevector(torture, ldb, samdb_config_dn(ldb)); torture 172 source4/torture/ldap/uptodatevector.c ret &= test_check_uptodatevector(torture, ldb, samdb_schema_dn(ldb)); torture 39 source4/torture/ldb/ldb.c static bool torture_ldb_attrs(struct torture_context *torture) torture 41 source4/torture/ldb/ldb.c TALLOC_CTX *mem_ctx = talloc_new(torture); torture 50 source4/torture/ldb/ldb.c torture_assert(torture, torture 51 source4/torture/ldb/ldb.c ldb = ldb_init(mem_ctx, torture->ev), torture 54 source4/torture/ldb/ldb.c torture_assert_int_equal(torture, torture 61 source4/torture/ldb/ldb.c torture_assert(torture, attr = ldb_schema_attribute_by_name(ldb, "objectSid"), torture 66 source4/torture/ldb/ldb.c torture_assert_int_equal(torture, torture 71 source4/torture/ldb/ldb.c torture_assert_data_blob_equal(torture, binary_sid_blob, sid_blob, torture 74 source4/torture/ldb/ldb.c torture_assert_int_equal(torture, torture 79 source4/torture/ldb/ldb.c torture_assert_int_equal(torture, torture 83 source4/torture/ldb/ldb.c torture_assert_data_blob_equal(torture, torture 87 source4/torture/ldb/ldb.c torture_assert_int_equal(torture, torture 91 source4/torture/ldb/ldb.c torture_assert_int_equal(torture, torture 95 source4/torture/ldb/ldb.c torture_assert_int_equal(torture, torture 99 source4/torture/ldb/ldb.c torture_assert_int_equal(torture, torture 103 source4/torture/ldb/ldb.c torture_assert(torture, attr->syntax->comparison_fn(ldb, mem_ctx, &guid_blob, &binary_sid_blob) != 0, torture 108 source4/torture/ldb/ldb.c torture_assert(torture, attr = ldb_schema_attribute_by_name(ldb, "objectGUID"), torture 113 source4/torture/ldb/ldb.c torture_assert_int_equal(torture, torture 118 source4/torture/ldb/ldb.c torture_assert_data_blob_equal(torture, binary_guid_blob, guid_blob, torture 123 source4/torture/ldb/ldb.c torture_assert_int_equal(torture, torture 128 source4/torture/ldb/ldb.c torture_assert_data_blob_equal(torture, binary_guid_blob, guid_blob, torture 131 source4/torture/ldb/ldb.c torture_assert_int_equal(torture, torture 136 source4/torture/ldb/ldb.c torture_assert_data_blob_equal(torture, binary_guid_blob, guid_blob, torture 139 source4/torture/ldb/ldb.c torture_assert_int_equal(torture, torture 143 source4/torture/ldb/ldb.c torture_assert_data_blob_equal(torture, string_sid_blob, data_blob_string_const(sid), torture 146 source4/torture/ldb/ldb.c torture_assert_int_equal(torture, torture 150 source4/torture/ldb/ldb.c torture_assert_int_equal(torture, torture 154 source4/torture/ldb/ldb.c torture_assert_int_equal(torture, torture 158 source4/torture/ldb/ldb.c torture_assert_int_equal(torture, torture 168 source4/torture/ldb/ldb.c static bool torture_ldb_dn_attrs(struct torture_context *torture) torture 170 source4/torture/ldb/ldb.c TALLOC_CTX *mem_ctx = talloc_new(torture); torture 180 source4/torture/ldb/ldb.c torture_assert(torture, torture 181 source4/torture/ldb/ldb.c ldb = ldb_init(mem_ctx, torture->ev), torture 184 source4/torture/ldb/ldb.c torture_assert_int_equal(torture, torture 191 source4/torture/ldb/ldb.c torture_assert(torture, attr = ldb_dn_extended_syntax_by_name(ldb, "SID"), torture 196 source4/torture/ldb/ldb.c torture_assert_int_equal(torture, torture 201 source4/torture/ldb/ldb.c torture_assert_data_blob_equal(torture, binary_sid_blob, sid_blob, torture 206 source4/torture/ldb/ldb.c torture_assert_int_equal(torture, torture 211 source4/torture/ldb/ldb.c torture_assert_data_blob_equal(torture, binary_sid_blob, sid_blob, torture 214 source4/torture/ldb/ldb.c torture_assert_int_equal(torture, torture 219 source4/torture/ldb/ldb.c torture_assert_int_equal(torture, torture 223 source4/torture/ldb/ldb.c torture_assert_data_blob_equal(torture, torture 227 source4/torture/ldb/ldb.c torture_assert_int_equal(torture, torture 231 source4/torture/ldb/ldb.c torture_assert_data_blob_equal(torture, torture 237 source4/torture/ldb/ldb.c torture_assert(torture, attr = ldb_dn_extended_syntax_by_name(ldb, "GUID"), torture 242 source4/torture/ldb/ldb.c torture_assert_int_equal(torture, torture 247 source4/torture/ldb/ldb.c torture_assert_data_blob_equal(torture, binary_guid_blob, guid_blob, torture 252 source4/torture/ldb/ldb.c torture_assert_int_equal(torture, torture 257 source4/torture/ldb/ldb.c torture_assert_data_blob_equal(torture, binary_guid_blob, guid_blob, torture 260 source4/torture/ldb/ldb.c torture_assert_int_equal(torture, torture 265 source4/torture/ldb/ldb.c torture_assert_int_equal(torture, torture 269 source4/torture/ldb/ldb.c torture_assert_data_blob_equal(torture, torture 273 source4/torture/ldb/ldb.c torture_assert_int_equal(torture, torture 277 source4/torture/ldb/ldb.c torture_assert_data_blob_equal(torture, torture 287 source4/torture/ldb/ldb.c static bool torture_ldb_dn_extended(struct torture_context *torture) torture 289 source4/torture/ldb/ldb.c TALLOC_CTX *mem_ctx = talloc_new(torture); torture 298 source4/torture/ldb/ldb.c torture_assert(torture, torture 299 source4/torture/ldb/ldb.c ldb = ldb_init(mem_ctx, torture->ev), torture 302 source4/torture/ldb/ldb.c torture_assert_int_equal(torture, torture 309 source4/torture/ldb/ldb.c torture_assert(torture, torture 313 source4/torture/ldb/ldb.c torture_assert(torture, torture 317 source4/torture/ldb/ldb.c torture_assert(torture, ldb_dn_has_extended(dn) == false, torture 320 source4/torture/ldb/ldb.c torture_assert(torture, ldb_dn_get_extended_component(dn, "SID") == NULL, torture 323 source4/torture/ldb/ldb.c torture_assert(torture, ldb_dn_get_extended_component(dn, "GUID") == NULL, torture 326 source4/torture/ldb/ldb.c torture_assert(torture, ldb_dn_get_extended_component(dn, "WKGUID") == NULL, torture 330 source4/torture/ldb/ldb.c torture_assert(torture, torture 335 source4/torture/ldb/ldb.c torture_assert(torture, torture 341 source4/torture/ldb/ldb.c torture_assert(torture, torture 345 source4/torture/ldb/ldb.c torture_assert(torture, ldb_dn_has_extended(dn) == true, torture 348 source4/torture/ldb/ldb.c torture_assert(torture, ldb_dn_get_extended_component(dn, "SID") != NULL, torture 351 source4/torture/ldb/ldb.c torture_assert(torture, ldb_dn_get_extended_component(dn, "GUID") != NULL, torture 354 source4/torture/ldb/ldb.c torture_assert_data_blob_equal(torture, *ldb_dn_get_extended_component(dn, "SID"), sid_blob, torture 357 source4/torture/ldb/ldb.c torture_assert_data_blob_equal(torture, *ldb_dn_get_extended_component(dn, "GUID"), guid_blob, torture 360 source4/torture/ldb/ldb.c torture_assert_str_equal(torture, ldb_dn_get_linearized(dn), dn_str, torture 363 source4/torture/ldb/ldb.c torture_assert_str_equal(torture, ldb_dn_get_casefold(dn), strupper_talloc(mem_ctx, dn_str), torture 366 source4/torture/ldb/ldb.c torture_assert_str_equal(torture, ldb_dn_get_component_name(dn, 0), "cn", torture 369 source4/torture/ldb/ldb.c torture_assert_data_blob_equal(torture, *ldb_dn_get_component_val(dn, 0), data_blob_string_const("admin"), torture 372 source4/torture/ldb/ldb.c torture_assert_str_equal(torture, ldb_dn_get_extended_linearized(mem_ctx, dn, 1), torture 377 source4/torture/ldb/ldb.c torture_assert_str_equal(torture, ldb_dn_get_extended_linearized(mem_ctx, dn, 0), torture 382 source4/torture/ldb/ldb.c torture_assert(torture, ldb_dn_remove_child_components(dn, 1) == true, torture 385 source4/torture/ldb/ldb.c torture_assert(torture, ldb_dn_has_extended(dn) == false, torture 388 source4/torture/ldb/ldb.c torture_assert(torture, ldb_dn_get_extended_component(dn, "SID") == NULL, torture 391 source4/torture/ldb/ldb.c torture_assert(torture, ldb_dn_get_extended_component(dn, "GUID") == NULL, torture 396 source4/torture/ldb/ldb.c torture_assert_int_equal(torture, ldb_dn_set_extended_component(dn, "GUID", &guid_blob), 0, torture 399 source4/torture/ldb/ldb.c torture_assert_int_equal(torture, ldb_dn_set_extended_component(dn, "SID", &sid_blob), 0, torture 402 source4/torture/ldb/ldb.c torture_assert_data_blob_equal(torture, *ldb_dn_get_extended_component(dn, "SID"), sid_blob, torture 405 source4/torture/ldb/ldb.c torture_assert_data_blob_equal(torture, *ldb_dn_get_extended_component(dn, "GUID"), guid_blob, torture 408 source4/torture/ldb/ldb.c torture_assert_str_equal(torture, ldb_dn_get_linearized(dn), "cn=users,dc=samba,dc=org", torture 411 source4/torture/ldb/ldb.c torture_assert_str_equal(torture, ldb_dn_get_extended_linearized(mem_ctx, dn, 1), torture 416 source4/torture/ldb/ldb.c torture_assert_str_equal(torture, ldb_dn_get_extended_linearized(mem_ctx, dn, 0), torture 422 source4/torture/ldb/ldb.c torture_assert(torture, torture 427 source4/torture/ldb/ldb.c torture_assert(torture, torture 431 source4/torture/ldb/ldb.c torture_assert(torture, ldb_dn_has_extended(dn) == true, torture 434 source4/torture/ldb/ldb.c torture_assert(torture, ldb_dn_get_extended_component(dn, "SID") == NULL, torture 437 source4/torture/ldb/ldb.c torture_assert_int_equal(torture, ldb_dn_get_comp_num(dn), 0, torture 440 source4/torture/ldb/ldb.c torture_assert(torture, ldb_dn_get_extended_component(dn, "GUID") != NULL, torture 443 source4/torture/ldb/ldb.c torture_assert_data_blob_equal(torture, *ldb_dn_get_extended_component(dn, "GUID"), guid_blob, torture 446 source4/torture/ldb/ldb.c torture_assert_str_equal(torture, ldb_dn_get_linearized(dn), "", torture 449 source4/torture/ldb/ldb.c torture_assert_str_equal(torture, ldb_dn_get_extended_linearized(mem_ctx, dn, 1), torture 454 source4/torture/ldb/ldb.c torture_assert_str_equal(torture, ldb_dn_get_extended_linearized(mem_ctx, dn, 0), torture 460 source4/torture/ldb/ldb.c torture_assert(torture, torture 465 source4/torture/ldb/ldb.c torture_assert(torture, torture 469 source4/torture/ldb/ldb.c torture_assert(torture, ldb_dn_has_extended(dn) == true, torture 472 source4/torture/ldb/ldb.c torture_assert(torture, ldb_dn_get_extended_component(dn, "SID") == NULL, torture 475 source4/torture/ldb/ldb.c torture_assert(torture, ldb_dn_get_extended_component(dn, "GUID") != NULL, torture 478 source4/torture/ldb/ldb.c torture_assert_data_blob_equal(torture, *ldb_dn_get_extended_component(dn, "GUID"), guid_blob, torture 481 source4/torture/ldb/ldb.c torture_assert_str_equal(torture, ldb_dn_get_linearized(dn), "", torture 485 source4/torture/ldb/ldb.c torture_assert(torture, torture 490 source4/torture/ldb/ldb.c torture_assert(torture, torture 494 source4/torture/ldb/ldb.c torture_assert(torture, ldb_dn_has_extended(dn) == true, torture 497 source4/torture/ldb/ldb.c torture_assert(torture, ldb_dn_get_extended_component(dn, "GUID") == NULL, torture 500 source4/torture/ldb/ldb.c torture_assert(torture, ldb_dn_get_extended_component(dn, "SID") != NULL, torture 503 source4/torture/ldb/ldb.c torture_assert_data_blob_equal(torture, *ldb_dn_get_extended_component(dn, "SID"), sid_blob, torture 506 source4/torture/ldb/ldb.c torture_assert_str_equal(torture, ldb_dn_get_linearized(dn), "", torture 509 source4/torture/ldb/ldb.c torture_assert_str_equal(torture, ldb_dn_get_extended_linearized(mem_ctx, dn, 1), torture 514 source4/torture/ldb/ldb.c torture_assert_str_equal(torture, ldb_dn_get_extended_linearized(mem_ctx, dn, 0), torture 520 source4/torture/ldb/ldb.c torture_assert(torture, torture 525 source4/torture/ldb/ldb.c torture_assert(torture, torture 529 source4/torture/ldb/ldb.c torture_assert(torture, ldb_dn_has_extended(dn) == true, torture 532 source4/torture/ldb/ldb.c torture_assert(torture, ldb_dn_get_extended_component(dn, "GUID") == NULL, torture 535 source4/torture/ldb/ldb.c torture_assert(torture, ldb_dn_get_extended_component(dn, "SID") != NULL, torture 538 source4/torture/ldb/ldb.c torture_assert_data_blob_equal(torture, *ldb_dn_get_extended_component(dn, "SID"), sid_blob, torture 541 source4/torture/ldb/ldb.c torture_assert_str_equal(torture, ldb_dn_get_linearized(dn), "", torture 549 source4/torture/ldb/ldb.c static bool torture_ldb_dn(struct torture_context *torture) torture 551 source4/torture/ldb/ldb.c TALLOC_CTX *mem_ctx = talloc_new(torture); torture 557 source4/torture/ldb/ldb.c torture_assert(torture, torture 558 source4/torture/ldb/ldb.c ldb = ldb_init(mem_ctx, torture->ev), torture 561 source4/torture/ldb/ldb.c torture_assert_int_equal(torture, torture 568 source4/torture/ldb/ldb.c torture_assert(torture, torture 572 source4/torture/ldb/ldb.c torture_assert(torture, torture 576 source4/torture/ldb/ldb.c torture_assert(torture, torture 580 source4/torture/ldb/ldb.c torture_assert(torture, torture 584 source4/torture/ldb/ldb.c torture_assert_str_equal(torture, ldb_dn_get_linearized(dn), "dc=samba,dc=org", torture 587 source4/torture/ldb/ldb.c torture_assert_str_equal(torture, ldb_dn_get_extended_linearized(mem_ctx, dn, 0), "dc=samba,dc=org", torture 591 source4/torture/ldb/ldb.c torture_assert(torture, torture 595 source4/torture/ldb/ldb.c torture_assert(torture, torture 599 source4/torture/ldb/ldb.c torture_assert(torture, torture 603 source4/torture/ldb/ldb.c torture_assert(torture, torture 608 source4/torture/ldb/ldb.c torture_assert(torture, torture 612 source4/torture/ldb/ldb.c torture_assert(torture, torture 616 source4/torture/ldb/ldb.c torture_assert(torture, torture 620 source4/torture/ldb/ldb.c torture_assert(torture, torture 628 source4/torture/ldb/ldb.c static bool torture_ldb_dn_invalid_extended(struct torture_context *torture) torture 630 source4/torture/ldb/ldb.c TALLOC_CTX *mem_ctx = talloc_new(torture); torture 636 source4/torture/ldb/ldb.c torture_assert(torture, torture 637 source4/torture/ldb/ldb.c ldb = ldb_init(mem_ctx, torture->ev), torture 640 source4/torture/ldb/ldb.c torture_assert_int_equal(torture, torture 647 source4/torture/ldb/ldb.c torture_assert(torture, torture 651 source4/torture/ldb/ldb.c torture_assert(torture, torture 656 source4/torture/ldb/ldb.c torture_assert(torture, torture 661 source4/torture/ldb/ldb.c torture_assert(torture, torture 665 source4/torture/ldb/ldb.c torture_assert(torture, torture 670 source4/torture/ldb/ldb.c torture_assert(torture, torture 674 source4/torture/ldb/ldb.c torture_assert(torture, torture 679 source4/torture/ldb/ldb.c torture_assert(torture, torture 683 source4/torture/ldb/ldb.c torture_assert(torture, torture 688 source4/torture/ldb/ldb.c torture_assert(torture, torture 692 source4/torture/ldb/ldb.c torture_assert(torture, torture 697 source4/torture/ldb/ldb.c torture_assert(torture, torture 701 source4/torture/ldb/ldb.c torture_assert(torture, torture 706 source4/torture/ldb/ldb.c torture_assert(torture, torture 710 source4/torture/ldb/ldb.c torture_assert(torture, torture 714 source4/torture/ldb/ldb.c torture_assert(torture, torture 73 source4/torture/libnet/domain.c bool torture_domainopen(struct torture_context *torture) torture 84 source4/torture/libnet/domain.c net_ctx = libnet_context_init(torture->ev, torture->lp_ctx); torture 86 source4/torture/libnet/domain.c status = torture_rpc_connection(torture, torture 94 source4/torture/libnet/domain.c name.string = lp_workgroup(torture->lp_ctx); torture 73 source4/torture/libnet/groupinfo.c bool torture_groupinfo(struct torture_context *torture) torture 86 source4/torture/libnet/groupinfo.c status = torture_rpc_connection(torture, torture 94 source4/torture/libnet/groupinfo.c name.string = lp_workgroup(torture->lp_ctx); torture 99 source4/torture/libnet/groupinfo.c if (!test_opendomain(torture, p, mem_ctx, &h, &name, &sid)) { torture 53 source4/torture/libnet/groupman.c bool torture_groupadd(struct torture_context *torture) torture 66 source4/torture/libnet/groupman.c status = torture_rpc_connection(torture, torture 70 source4/torture/libnet/groupman.c torture_assert_ntstatus_ok(torture, status, "RPC connection"); torture 72 source4/torture/libnet/groupman.c domain_name.string = lp_workgroup(torture->lp_ctx); torture 73 source4/torture/libnet/groupman.c if (!test_opendomain(torture, p, mem_ctx, &h, &domain_name, &sid)) { torture 565 source4/torture/libnet/libnet_BecomeDC.c bool torture_net_become_dc(struct torture_context *torture) torture 578 source4/torture/libnet/libnet_BecomeDC.c torture_assert_ntstatus_ok(torture, torture_temp_dir(torture, "libnet_BecomeDC", &location), torture 581 source4/torture/libnet/libnet_BecomeDC.c s = talloc_zero(torture, struct test_become_dc_state); torture 584 source4/torture/libnet/libnet_BecomeDC.c s->tctx = torture; torture 585 source4/torture/libnet/libnet_BecomeDC.c s->lp_ctx = torture->lp_ctx; torture 587 source4/torture/libnet/libnet_BecomeDC.c s->netbios_name = lp_parm_string(torture->lp_ctx, NULL, "become dc", "smbtorture dc"); torture 595 source4/torture/libnet/libnet_BecomeDC.c s->tj = torture_join_domain(torture, s->netbios_name, torture 604 source4/torture/libnet/libnet_BecomeDC.c s->ctx = libnet_context_init(torture->ev, torture->lp_ctx); torture 607 source4/torture/libnet/libnet_BecomeDC.c s->ldb = ldb_init(s, torture->ev); torture 613 source4/torture/libnet/libnet_BecomeDC.c b.in.source_dsa_address = torture_setting_string(torture, "host", NULL); torture 686 source4/torture/libnet/libnet_BecomeDC.c if (lp_parm_bool(torture->lp_ctx, NULL, "become dc", "do not unjoin", false)) { torture 695 source4/torture/libnet/libnet_BecomeDC.c u.in.source_dsa_address = torture_setting_string(torture, "host", NULL); torture 705 source4/torture/libnet/libnet_BecomeDC.c torture_leave_domain(torture, s->tj); torture 126 source4/torture/libnet/libnet_domain.c bool torture_domain_open_lsa(struct torture_context *torture) torture 139 source4/torture/libnet/libnet_domain.c domain_name = lp_workgroup(torture->lp_ctx); torture 141 source4/torture/libnet/libnet_domain.c ctx = libnet_context_init(torture->ev, torture->lp_ctx); torture 154 source4/torture/libnet/libnet_domain.c status = libnet_DomainOpen(ctx, torture, &r); torture 177 source4/torture/libnet/libnet_domain.c bool torture_domain_close_lsa(struct torture_context *torture) torture 190 source4/torture/libnet/libnet_domain.c status = torture_rpc_binding(torture, &binding); torture 195 source4/torture/libnet/libnet_domain.c ctx = libnet_context_init(torture->ev, torture->lp_ctx); torture 206 source4/torture/libnet/libnet_domain.c cmdline_credentials, torture->ev, torture->lp_ctx); torture 213 source4/torture/libnet/libnet_domain.c domain_name.string = lp_workgroup(torture->lp_ctx); torture 215 source4/torture/libnet/libnet_domain.c if (!test_opendomain_lsa(p, torture, &h, &domain_name, &access_mask)) { torture 246 source4/torture/libnet/libnet_domain.c bool torture_domain_open_samr(struct torture_context *torture) torture 259 source4/torture/libnet/libnet_domain.c ctx = libnet_context_init(torture->ev, torture->lp_ctx); torture 265 source4/torture/libnet/libnet_domain.c domain_name = lp_workgroup(torture->lp_ctx); torture 305 source4/torture/libnet/libnet_domain.c bool torture_domain_close_samr(struct torture_context *torture) torture 319 source4/torture/libnet/libnet_domain.c status = torture_rpc_binding(torture, &binding); torture 324 source4/torture/libnet/libnet_domain.c ctx = libnet_context_init(torture->ev, torture->lp_ctx); torture 335 source4/torture/libnet/libnet_domain.c ctx->cred, torture->ev, torture->lp_ctx); torture 342 source4/torture/libnet/libnet_domain.c domain_name.string = talloc_strdup(mem_ctx, lp_workgroup(torture->lp_ctx)); torture 344 source4/torture/libnet/libnet_domain.c if (!test_opendomain_samr(p, torture, &h, &domain_name, &access_mask, &sid)) { torture 377 source4/torture/libnet/libnet_domain.c bool torture_domain_list(struct torture_context *torture) torture 387 source4/torture/libnet/libnet_domain.c status = torture_rpc_binding(torture, &binding); torture 392 source4/torture/libnet/libnet_domain.c ctx = libnet_context_init(torture->ev, torture->lp_ctx); torture 229 source4/torture/libnet/libnet_group.c bool torture_groupinfo_api(struct torture_context *torture) torture 243 source4/torture/libnet/libnet_group.c ctx = libnet_context_init(torture->ev, torture->lp_ctx); torture 246 source4/torture/libnet/libnet_group.c status = torture_rpc_connection(torture, torture 253 source4/torture/libnet/libnet_group.c domain_name.string = lp_workgroup(torture->lp_ctx); torture 299 source4/torture/libnet/libnet_group.c bool torture_grouplist(struct torture_context *torture) torture 309 source4/torture/libnet/libnet_group.c ctx = libnet_context_init(torture->ev, torture->lp_ctx); torture 312 source4/torture/libnet/libnet_group.c domain_name.string = lp_workgroup(torture->lp_ctx); torture 360 source4/torture/libnet/libnet_group.c bool torture_creategroup(struct torture_context *torture) torture 370 source4/torture/libnet/libnet_group.c ctx = libnet_context_init(torture->ev, torture->lp_ctx); torture 374 source4/torture/libnet/libnet_group.c req.in.domain_name = lp_workgroup(torture->lp_ctx); torture 32 source4/torture/libnet/libnet_lookup.c bool torture_lookup(struct torture_context *torture) torture 43 source4/torture/libnet/libnet_lookup.c ctx = libnet_context_init(torture->ev, torture->lp_ctx); torture 46 source4/torture/libnet/libnet_lookup.c lookup.in.hostname = torture_setting_string(torture, "host", NULL); torture 48 source4/torture/libnet/libnet_lookup.c status = torture_rpc_binding(torture, &binding); torture 76 source4/torture/libnet/libnet_lookup.c bool torture_lookup_host(struct torture_context *torture) torture 87 source4/torture/libnet/libnet_lookup.c ctx = libnet_context_init(torture->ev, torture->lp_ctx); torture 90 source4/torture/libnet/libnet_lookup.c lookup.in.hostname = torture_setting_string(torture, "host", NULL); torture 92 source4/torture/libnet/libnet_lookup.c status = torture_rpc_binding(torture, &binding); torture 119 source4/torture/libnet/libnet_lookup.c bool torture_lookup_pdc(struct torture_context *torture) torture 130 source4/torture/libnet/libnet_lookup.c ctx = libnet_context_init(torture->ev, torture->lp_ctx); torture 141 source4/torture/libnet/libnet_lookup.c lookup->in.domain_name = lp_workgroup(torture->lp_ctx); torture 167 source4/torture/libnet/libnet_lookup.c bool torture_lookup_sam_name(struct torture_context *torture) torture 174 source4/torture/libnet/libnet_lookup.c ctx = libnet_context_init(torture->ev, torture->lp_ctx); torture 181 source4/torture/libnet/libnet_lookup.c r.in.domain_name = lp_workgroup(torture->lp_ctx); torture 86 source4/torture/libnet/libnet_rpc.c static bool torture_rpc_connect(struct torture_context *torture, torture 92 source4/torture/libnet/libnet_rpc.c ctx = libnet_context_init(torture->ev, torture->lp_ctx); torture 136 source4/torture/libnet/libnet_rpc.c bool torture_rpc_connect_srv(struct torture_context *torture) torture 142 source4/torture/libnet/libnet_rpc.c status = torture_rpc_binding(torture, &binding); torture 147 source4/torture/libnet/libnet_rpc.c return torture_rpc_connect(torture, level, NULL, binding->host); torture 151 source4/torture/libnet/libnet_rpc.c bool torture_rpc_connect_pdc(struct torture_context *torture) torture 158 source4/torture/libnet/libnet_rpc.c status = torture_rpc_binding(torture, &binding); torture 166 source4/torture/libnet/libnet_rpc.c domain_name = lp_workgroup(torture->lp_ctx); torture 167 source4/torture/libnet/libnet_rpc.c return torture_rpc_connect(torture, level, NULL, domain_name); torture 171 source4/torture/libnet/libnet_rpc.c bool torture_rpc_connect_dc(struct torture_context *torture) torture 178 source4/torture/libnet/libnet_rpc.c status = torture_rpc_binding(torture, &binding); torture 186 source4/torture/libnet/libnet_rpc.c domain_name = lp_workgroup(torture->lp_ctx); torture 187 source4/torture/libnet/libnet_rpc.c return torture_rpc_connect(torture, level, NULL, domain_name); torture 191 source4/torture/libnet/libnet_rpc.c bool torture_rpc_connect_dc_info(struct torture_context *torture) torture 198 source4/torture/libnet/libnet_rpc.c status = torture_rpc_binding(torture, &binding); torture 206 source4/torture/libnet/libnet_rpc.c domain_name = lp_workgroup(torture->lp_ctx); torture 207 source4/torture/libnet/libnet_rpc.c return torture_rpc_connect(torture, level, NULL, domain_name); torture 211 source4/torture/libnet/libnet_rpc.c bool torture_rpc_connect_binding(struct torture_context *torture) torture 218 source4/torture/libnet/libnet_rpc.c status = torture_rpc_binding(torture, &binding); torture 223 source4/torture/libnet/libnet_rpc.c bindstr = dcerpc_binding_string(torture, binding); torture 225 source4/torture/libnet/libnet_rpc.c return torture_rpc_connect(torture, level, bindstr, NULL); torture 116 source4/torture/libnet/libnet_share.c bool torture_listshares(struct torture_context *torture) torture 128 source4/torture/libnet/libnet_share.c status = torture_rpc_binding(torture, &binding); torture 134 source4/torture/libnet/libnet_share.c libnetctx = libnet_context_init(torture->ev, torture->lp_ctx); torture 202 source4/torture/libnet/libnet_share.c bool torture_delshare(struct torture_context *torture) torture 212 source4/torture/libnet/libnet_share.c host = torture_setting_string(torture, "host", NULL); torture 213 source4/torture/libnet/libnet_share.c status = torture_rpc_binding(torture, &binding); torture 214 source4/torture/libnet/libnet_share.c torture_assert_ntstatus_ok(torture, status, "Failed to get binding"); torture 216 source4/torture/libnet/libnet_share.c libnetctx = libnet_context_init(torture->ev, torture->lp_ctx); torture 219 source4/torture/libnet/libnet_share.c status = torture_rpc_connection(torture, torture 223 source4/torture/libnet/libnet_share.c torture_assert_ntstatus_ok(torture, status, "Failed to get rpc connection"); torture 225 source4/torture/libnet/libnet_share.c if (!test_addshare(p, torture, host, TEST_SHARENAME)) { torture 232 source4/torture/libnet/libnet_share.c status = libnet_DelShare(libnetctx, torture, &share); torture 233 source4/torture/libnet/libnet_share.c torture_assert_ntstatus_ok(torture, status, "Failed to delete share"); torture 239 source4/torture/libnet/libnet_user.c bool torture_createuser(struct torture_context *torture) torture 249 source4/torture/libnet/libnet_user.c ctx = libnet_context_init(torture->ev, torture->lp_ctx); torture 253 source4/torture/libnet/libnet_user.c req.in.domain_name = lp_workgroup(torture->lp_ctx); torture 281 source4/torture/libnet/libnet_user.c bool torture_deleteuser(struct torture_context *torture) torture 295 source4/torture/libnet/libnet_user.c ctx = libnet_context_init(torture->ev, torture->lp_ctx); torture 299 source4/torture/libnet/libnet_user.c req.in.domain_name = lp_workgroup(torture->lp_ctx); torture 301 source4/torture/libnet/libnet_user.c status = torture_rpc_connection(torture, torture 309 source4/torture/libnet/libnet_user.c domain_name.string = lp_workgroup(torture->lp_ctx); torture 473 source4/torture/libnet/libnet_user.c bool torture_modifyuser(struct torture_context *torture) torture 490 source4/torture/libnet/libnet_user.c ctx = libnet_context_init(torture->ev, torture->lp_ctx); torture 493 source4/torture/libnet/libnet_user.c status = torture_rpc_connection(torture, torture 503 source4/torture/libnet/libnet_user.c domain_name.string = lp_workgroup(torture->lp_ctx); torture 514 source4/torture/libnet/libnet_user.c status = torture_rpc_binding(torture, &binding); torture 524 source4/torture/libnet/libnet_user.c req.in.domain_name = lp_workgroup(torture->lp_ctx); torture 527 source4/torture/libnet/libnet_user.c set_test_changes(torture, &req, 1, &name, fld); torture 529 source4/torture/libnet/libnet_user.c status = libnet_ModifyUser(ctx, torture, &req); torture 537 source4/torture/libnet/libnet_user.c user_req.in.domain_name = lp_workgroup(torture->lp_ctx); torture 541 source4/torture/libnet/libnet_user.c status = libnet_UserInfo(ctx, torture, &user_req); torture 577 source4/torture/libnet/libnet_user.c req.in.domain_name = lp_workgroup(torture->lp_ctx); torture 581 source4/torture/libnet/libnet_user.c status = libnet_ModifyUser(ctx, torture, &req); torture 588 source4/torture/libnet/libnet_user.c name = talloc_strdup(torture, TEST_USERNAME); torture 593 source4/torture/libnet/libnet_user.c if (!test_cleanup(ctx->samr.pipe, torture, &ctx->samr.handle, name)) { torture 599 source4/torture/libnet/libnet_user.c if (!test_samr_close(ctx->samr.pipe, torture, &ctx->samr.handle)) { torture 611 source4/torture/libnet/libnet_user.c bool torture_userinfo_api(struct torture_context *torture) torture 625 source4/torture/libnet/libnet_user.c ctx = libnet_context_init(torture->ev, torture->lp_ctx); torture 628 source4/torture/libnet/libnet_user.c status = torture_rpc_connection(torture, torture 635 source4/torture/libnet/libnet_user.c domain_name.string = lp_workgroup(torture->lp_ctx); torture 681 source4/torture/libnet/libnet_user.c bool torture_userlist(struct torture_context *torture) torture 691 source4/torture/libnet/libnet_user.c ctx = libnet_context_init(torture->ev, torture->lp_ctx); torture 694 source4/torture/libnet/libnet_user.c domain_name.string = lp_workgroup(torture->lp_ctx); torture 129 source4/torture/libnet/userinfo.c bool torture_userinfo(struct torture_context *torture) torture 142 source4/torture/libnet/userinfo.c status = torture_rpc_connection(torture, torture 150 source4/torture/libnet/userinfo.c name.string = lp_workgroup(torture->lp_ctx); torture 155 source4/torture/libnet/userinfo.c if (!test_opendomain(torture, p, mem_ctx, &h, &name, &sid)) { torture 160 source4/torture/libnet/userinfo.c if (!test_user_create(torture, p, mem_ctx, &h, TEST_USERNAME, &rid)) { torture 170 source4/torture/libnet/userinfo.c if (!test_user_cleanup(torture, p, mem_ctx, &h, TEST_USERNAME)) { torture 178 source4/torture/libnet/userinfo.c if (!test_opendomain(torture, p, mem_ctx, &h, &name, &sid)) { torture 183 source4/torture/libnet/userinfo.c if (!test_user_create(torture, p, mem_ctx, &h, TEST_USERNAME, &rid)) { torture 193 source4/torture/libnet/userinfo.c if (!test_user_cleanup(torture, p, mem_ctx, &h, TEST_USERNAME)) { torture 304 source4/torture/libnet/userman.c bool torture_useradd(struct torture_context *torture) torture 317 source4/torture/libnet/userman.c status = torture_rpc_connection(torture, torture 321 source4/torture/libnet/userman.c torture_assert_ntstatus_ok(torture, status, "RPC connect failed"); torture 323 source4/torture/libnet/userman.c domain_name.string = lp_workgroup(torture->lp_ctx); torture 324 source4/torture/libnet/userman.c if (!test_opendomain(torture, p, mem_ctx, &h, &domain_name, &sid)) { torture 334 source4/torture/libnet/userman.c if (!test_user_cleanup(torture, p, mem_ctx, &h, name)) { torture 339 source4/torture/libnet/userman.c if (!test_opendomain(torture, p, mem_ctx, &h, &domain_name, &sid)) { torture 349 source4/torture/libnet/userman.c if (!test_user_cleanup(torture, p, mem_ctx, &h, name)) { torture 360 source4/torture/libnet/userman.c bool torture_userdel(struct torture_context *torture) torture 374 source4/torture/libnet/userman.c status = torture_rpc_connection(torture, torture 382 source4/torture/libnet/userman.c domain_name.string = lp_workgroup(torture->lp_ctx); torture 383 source4/torture/libnet/userman.c if (!test_opendomain(torture, p, mem_ctx, &h, &domain_name, &sid)) { torture 388 source4/torture/libnet/userman.c if (!test_user_create(torture, p, mem_ctx, &h, name, &rid)) { torture 404 source4/torture/libnet/userman.c bool torture_usermod(struct torture_context *torture) torture 419 source4/torture/libnet/userman.c status = torture_rpc_connection(torture, torture 423 source4/torture/libnet/userman.c torture_assert_ntstatus_ok(torture, status, "RPC connect"); torture 425 source4/torture/libnet/userman.c domain_name.string = lp_workgroup(torture->lp_ctx); torture 428 source4/torture/libnet/userman.c if (!test_opendomain(torture, p, mem_ctx, &h, &domain_name, &sid)) { torture 433 source4/torture/libnet/userman.c if (!test_user_create(torture, p, mem_ctx, &h, name, &rid)) { torture 441 source4/torture/libnet/userman.c if (!test_usermod(torture, p, mem_ctx, &h, i, &m, &name)) { torture 446 source4/torture/libnet/userman.c if (!test_compare(torture, p, mem_ctx, &h, &m, name)) { torture 453 source4/torture/libnet/userman.c if (!test_user_cleanup(torture, p, mem_ctx, &h, name)) { torture 54 source4/torture/local/dbspeed.c static bool test_tdb_speed(struct torture_context *torture, const void *_data) torture 58 source4/torture/local/dbspeed.c int timelimit = torture_setting_int(torture, "timelimit", 10); torture 60 source4/torture/local/dbspeed.c TALLOC_CTX *tmp_ctx = talloc_new(torture); torture 64 source4/torture/local/dbspeed.c torture_comment(torture, "Testing tdb speed for sidmap\n"); torture 71 source4/torture/local/dbspeed.c torture_fail(torture, "Failed to open test.tdb"); torture 74 source4/torture/local/dbspeed.c torture_comment(torture, "Adding %d SID records\n", torture_entries); torture 80 source4/torture/local/dbspeed.c torture_result(torture, TORTURE_FAIL, "Failed to add SID %d\n", i); torture 86 source4/torture/local/dbspeed.c torture_result(torture, TORTURE_FAIL, "Failed to add UID %d\n", i); torture 91 source4/torture/local/dbspeed.c torture_comment(torture, "Testing for %d seconds\n", timelimit); torture 103 source4/torture/local/dbspeed.c torture_result(torture, TORTURE_FAIL, "Failed to fetch SID %d\n", i); torture 112 source4/torture/local/dbspeed.c torture_result(torture, TORTURE_FAIL, "Failed to fetch UID %d\n", i); torture 119 source4/torture/local/dbspeed.c torture_comment(torture, "tdb speed %.2f ops/sec\n", tdb_speed); torture 163 source4/torture/local/dbspeed.c static bool test_ldb_speed(struct torture_context *torture, const void *_data) torture 167 source4/torture/local/dbspeed.c int timelimit = torture_setting_int(torture, "timelimit", 10); torture 169 source4/torture/local/dbspeed.c TALLOC_CTX *tmp_ctx = talloc_new(torture); torture 177 source4/torture/local/dbspeed.c torture_comment(torture, "Testing ldb speed for sidmap\n"); torture 179 source4/torture/local/dbspeed.c ldb = ldb_wrap_connect(tmp_ctx, torture->ev, torture->lp_ctx, "tdb://test.ldb", torture 184 source4/torture/local/dbspeed.c torture_fail(torture, "Failed to open test.ldb"); torture 193 source4/torture/local/dbspeed.c torture_comment(torture, "Adding %d SID records\n", torture_entries); torture 197 source4/torture/local/dbspeed.c torture_result(torture, TORTURE_FAIL, "Failed to add SID %d\n", i); torture 202 source4/torture/local/dbspeed.c if (talloc_total_blocks(torture) > 100) { torture 203 source4/torture/local/dbspeed.c torture_result(torture, TORTURE_FAIL, "memory leak in ldb add\n"); torture 207 source4/torture/local/dbspeed.c torture_comment(torture, "Testing for %d seconds\n", timelimit); torture 218 source4/torture/local/dbspeed.c torture_fail(torture, talloc_asprintf(torture, "Failed to find SID %d", i)); torture 223 source4/torture/local/dbspeed.c torture_fail(torture, talloc_asprintf(torture, "Failed to find UID %d", i)); torture 228 source4/torture/local/dbspeed.c if (talloc_total_blocks(torture) > 100) { torture 231 source4/torture/local/dbspeed.c torture_fail(torture, "memory leak in ldb search"); torture 235 source4/torture/local/dbspeed.c torture_comment(torture, "ldb speed %.2f ops/sec\n", ldb_speed); torture 237 source4/torture/local/dbspeed.c torture_comment(torture, "ldb/tdb speed ratio is %.2f%%\n", (100*ldb_speed/tdb_speed)); torture 221 source4/torture/nbench/nbench.c bool torture_nbench(struct torture_context *torture) torture 224 source4/torture/nbench/nbench.c int torture_nprocs = torture_setting_int(torture, "nprocs", 4); torture 228 source4/torture/nbench/nbench.c read_only = torture_setting_bool(torture, "readonly", false); torture 230 source4/torture/nbench/nbench.c nb_max_retries = torture_setting_int(torture, "nretries", 1); torture 232 source4/torture/nbench/nbench.c p = torture_setting_string(torture, "timelimit", NULL); torture 239 source4/torture/nbench/nbench.c loadfile = torture_setting_string(torture, "loadfile", NULL); torture 245 source4/torture/nbench/nbench.c if (!torture_open_connection(&cli, torture, 0)) { torture 269 source4/torture/nbench/nbench.c torture_create_procs(torture, run_netbench, &correct); torture 30 source4/torture/nbt/browse.c bool torture_nbt_browse(struct torture_context *torture) torture 43 source4/torture/nbt/browse.c status = resolve_name(&name, mem_ctx, &address, torture->ev); torture 522 source4/torture/rap/rap.c bool torture_rap_scan(struct torture_context *torture, struct smbcli_state *cli) torture 527 source4/torture/rap/rap.c struct rap_call *call = new_rap_cli_call(torture, lp_iconv_convenience(torture->lp_ctx), callno); torture 530 source4/torture/rap/rap.c result = rap_cli_do_call(cli->tree, lp_iconv_convenience(torture->lp_ctx), call); torture 353 source4/torture/raw/chkpath.c bool torture_raw_chkpath(struct torture_context *torture, torture 378 source4/torture/raw/chkpath.c fnum = create_complex_file(cli, torture, BASEDIR "\\nt\\V S\\VB98\\vb6.exe"); torture 385 source4/torture/raw/chkpath.c ret &= test_chkpath(cli, torture); torture 386 source4/torture/raw/chkpath.c ret &= test_chkpath_names(cli, torture); torture 31 source4/torture/raw/close.c bool torture_raw_close(struct torture_context *torture, torture 44 source4/torture/raw/close.c fnum = create_complex_file(cli, torture, fname); \ torture 75 source4/torture/raw/close.c status = smb_raw_pathinfo(cli->tree, torture, &finfo); torture 80 source4/torture/raw/close.c timestring(torture, basetime), torture 81 source4/torture/raw/close.c nt_time_string(torture, finfo.all_info.out.write_time)); torture 82 source4/torture/raw/close.c dump_all_info(torture, &finfo); torture 96 source4/torture/raw/close.c dump_all_info(torture, &finfo); torture 98 source4/torture/raw/close.c if (!torture_setting_bool(torture, "samba3", false)) { torture 114 source4/torture/raw/close.c status = smb_raw_pathinfo(cli->tree, torture, &finfo2); torture 126 source4/torture/raw/close.c status = smb_raw_pathinfo(cli->tree, torture, &finfo); torture 132 source4/torture/raw/close.c dump_all_info(torture, &finfo); torture 905 source4/torture/raw/context.c bool torture_raw_context(struct torture_context *torture, torture 909 source4/torture/raw/context.c if (lp_use_spnego(torture->lp_ctx)) { torture 910 source4/torture/raw/context.c ret &= torture_raw_context_int(torture, cli); torture 911 source4/torture/raw/context.c lp_set_cmdline(torture->lp_ctx, "use spnego", "False"); torture 914 source4/torture/raw/context.c ret &= torture_raw_context_int(torture, cli); torture 447 source4/torture/raw/eas.c bool torture_raw_eas(struct torture_context *torture, struct smbcli_state *cli) torture 455 source4/torture/raw/eas.c ret &= test_eas(cli, torture); torture 456 source4/torture/raw/eas.c ret &= test_nttrans_create(cli, torture); torture 466 source4/torture/raw/eas.c bool torture_max_eas(struct torture_context *torture) torture 471 source4/torture/raw/eas.c if (!torture_open_connection(&cli, torture, 0)) { torture 479 source4/torture/raw/eas.c ret &= test_max_eas(cli, torture); torture 155 source4/torture/raw/ioctl.c bool torture_raw_ioctl(struct torture_context *torture, torture 164 source4/torture/raw/ioctl.c ret &= test_ioctl(cli, torture); torture 165 source4/torture/raw/ioctl.c ret &= test_fsctl(cli, torture); torture 316 source4/torture/raw/lockbench.c bool torture_bench_lock(struct torture_context *torture) torture 319 source4/torture/raw/lockbench.c TALLOC_CTX *mem_ctx = talloc_new(torture); torture 321 source4/torture/raw/lockbench.c int timelimit = torture_setting_int(torture, "timelimit", 10); torture 328 source4/torture/raw/lockbench.c progress = torture_setting_bool(torture, "progress", true); torture 330 source4/torture/raw/lockbench.c nprocs = torture_setting_int(torture, "nprocs", 4); torture 336 source4/torture/raw/lockbench.c state[i].tctx = torture; torture 339 source4/torture/raw/lockbench.c state[i].ev = torture->ev; torture 340 source4/torture/raw/lockbench.c if (!torture_open_connection_ev(&cli, i, torture, torture->ev)) { torture 381 source4/torture/raw/lockbench.c event_add_timed(torture->ev, state, timeval_current_ofs(1, 0), report_rate, state); torture 386 source4/torture/raw/lockbench.c event_loop_once(torture->ev); torture 235 source4/torture/raw/lookuprate.c bool torture_bench_lookup(struct torture_context *torture) torture 243 source4/torture/raw/lookuprate.c if (!torture_open_connection(&cli, torture, 0)) { torture 164 source4/torture/raw/mkdir.c bool torture_raw_mkdir(struct torture_context *torture, torture 169 source4/torture/raw/mkdir.c if (!test_mkdir(cli, torture)) { torture 346 source4/torture/raw/mux.c bool torture_raw_mux(struct torture_context *torture, struct smbcli_state *cli) torture 354 source4/torture/raw/mux.c ret &= test_mux_open(cli, torture); torture 355 source4/torture/raw/mux.c ret &= test_mux_write(cli, torture); torture 356 source4/torture/raw/mux.c ret &= test_mux_lock(cli, torture); torture 1473 source4/torture/raw/notify.c static bool test_notify_tcon(struct smbcli_state *cli, struct torture_context *torture) torture 1502 source4/torture/raw/notify.c status = smb_raw_open(cli->tree, torture, &io); torture 1506 source4/torture/raw/notify.c status = smb_raw_open(cli->tree, torture, &io); torture 1522 source4/torture/raw/notify.c status = smb_raw_changenotify_recv(req, torture, ¬ify); torture 1533 source4/torture/raw/notify.c status = smb_raw_changenotify_recv(req, torture, ¬ify); torture 1542 source4/torture/raw/notify.c tree = secondary_tcon(cli, torture); torture 1548 source4/torture/raw/notify.c status = smb_raw_changenotify_recv(req, torture, ¬ify); torture 1559 source4/torture/raw/notify.c status = smb_raw_changenotify_recv(req, torture, ¬ify); torture 1576 source4/torture/raw/notify.c status = smb_raw_changenotify_recv(req, torture, ¬ify); torture 1587 source4/torture/raw/notify.c status = smb_raw_changenotify_recv(req, torture, ¬ify); torture 1603 source4/torture/raw/notify.c bool torture_raw_notify(struct torture_context *torture, torture 1613 source4/torture/raw/notify.c ret &= test_notify_tcon(cli, torture); torture 1614 source4/torture/raw/notify.c ret &= test_notify_dir(cli, cli2, torture); torture 1615 source4/torture/raw/notify.c ret &= test_notify_mask(cli, torture); torture 1616 source4/torture/raw/notify.c ret &= test_notify_recursive(cli, torture); torture 1617 source4/torture/raw/notify.c ret &= test_notify_mask_change(cli, torture); torture 1618 source4/torture/raw/notify.c ret &= test_notify_file(cli, torture); torture 1619 source4/torture/raw/notify.c ret &= test_notify_tdis(torture); torture 1620 source4/torture/raw/notify.c ret &= test_notify_exit(torture); torture 1621 source4/torture/raw/notify.c ret &= test_notify_ulogoff(torture); torture 1622 source4/torture/raw/notify.c ret &= test_notify_tcp_dis(torture); torture 1623 source4/torture/raw/notify.c ret &= test_notify_double(cli, torture); torture 1624 source4/torture/raw/notify.c ret &= test_notify_tree(cli, torture); torture 1625 source4/torture/raw/notify.c ret &= test_notify_overflow(cli, torture); torture 1626 source4/torture/raw/notify.c ret &= test_notify_basedir(cli, torture); torture 391 source4/torture/raw/offline.c bool torture_test_offline(struct torture_context *torture) torture 394 source4/torture/raw/offline.c TALLOC_CTX *mem_ctx = talloc_new(torture); torture 396 source4/torture/raw/offline.c int timelimit = torture_setting_int(torture, "timelimit", 10); torture 401 source4/torture/raw/offline.c progress = torture_setting_bool(torture, "progress", true); torture 403 source4/torture/raw/offline.c nconnections = torture_setting_int(torture, "nprocs", 4); torture 410 source4/torture/raw/offline.c state[i].tctx = torture; torture 412 source4/torture/raw/offline.c state[i].ev = torture->ev; torture 413 source4/torture/raw/offline.c if (!torture_open_connection_ev(&cli, i, torture, torture->ev)) { torture 424 source4/torture/raw/offline.c state[i].tctx = torture; torture 426 source4/torture/raw/offline.c state[i].ev = torture->ev; torture 476 source4/torture/raw/offline.c event_add_timed(torture->ev, state, timeval_current_ofs(1, 0), report_rate, state); torture 481 source4/torture/raw/offline.c event_loop_once(torture->ev); torture 495 source4/torture/raw/offline.c event_loop_once(torture->ev); torture 1653 source4/torture/raw/open.c bool torture_raw_open(struct torture_context *torture, struct smbcli_state *cli) torture 1661 source4/torture/raw/open.c ret &= test_ntcreatex_brlocked(cli, torture); torture 1662 source4/torture/raw/open.c ret &= test_open(cli, torture); torture 1663 source4/torture/raw/open.c ret &= test_raw_open_multi(torture); torture 1664 source4/torture/raw/open.c ret &= test_openx(cli, torture); torture 1665 source4/torture/raw/open.c ret &= test_ntcreatex(cli, torture); torture 1666 source4/torture/raw/open.c ret &= test_nttrans_create(cli, torture); torture 1667 source4/torture/raw/open.c ret &= test_t2open(cli, torture); torture 1668 source4/torture/raw/open.c ret &= test_mknew(cli, torture); torture 1669 source4/torture/raw/open.c ret &= test_create(cli, torture); torture 1670 source4/torture/raw/open.c ret &= test_ctemp(cli, torture); torture 1671 source4/torture/raw/open.c ret &= test_chained(cli, torture); torture 1672 source4/torture/raw/open.c ret &= test_no_leading_slash(cli, torture); torture 1673 source4/torture/raw/open.c ret &= test_openx_over_dir(cli, torture); torture 1674 source4/torture/raw/open.c ret &= test_open_for_delete(cli, torture); torture 368 source4/torture/raw/openbench.c bool torture_bench_open(struct torture_context *torture) torture 371 source4/torture/raw/openbench.c TALLOC_CTX *mem_ctx = talloc_new(torture); torture 373 source4/torture/raw/openbench.c int timelimit = torture_setting_int(torture, "timelimit", 10); torture 381 source4/torture/raw/openbench.c progress = torture_setting_bool(torture, "progress", true); torture 383 source4/torture/raw/openbench.c nprocs = torture_setting_int(torture, "nprocs", 4); torture 389 source4/torture/raw/openbench.c state[i].tctx = torture; torture 392 source4/torture/raw/openbench.c state[i].ev = torture->ev; torture 393 source4/torture/raw/openbench.c if (!torture_open_connection_ev(&state[i].cli, i, torture, torture->ev)) { torture 433 source4/torture/raw/openbench.c report_te = event_add_timed(torture->ev, state, timeval_current_ofs(1, 0), torture 439 source4/torture/raw/openbench.c event_loop_once(torture->ev); torture 2903 source4/torture/raw/oplock.c bool torture_bench_oplock(struct torture_context *torture) torture 2907 source4/torture/raw/oplock.c TALLOC_CTX *mem_ctx = talloc_new(torture); torture 2908 source4/torture/raw/oplock.c int torture_nprocs = torture_setting_int(torture, "nprocs", 4); torture 2910 source4/torture/raw/oplock.c int timelimit = torture_setting_int(torture, "timelimit", 10); torture 2916 source4/torture/raw/oplock.c torture_comment(torture, "Opening %d connections\n", torture_nprocs); torture 2918 source4/torture/raw/oplock.c if (!torture_open_connection_ev(&cli[i], i, torture, torture->ev)) { torture 2957 source4/torture/raw/oplock.c torture_comment(torture, "Running for %d seconds\n", timelimit); torture 2963 source4/torture/raw/oplock.c CHECK_STATUS(torture, status, NT_STATUS_OK); torture 2967 source4/torture/raw/oplock.c if (torture_setting_bool(torture, "progress", true)) { torture 2968 source4/torture/raw/oplock.c torture_comment(torture, "%.2f ops/second\r", count/timeval_elapsed(&tv)); torture 2972 source4/torture/raw/oplock.c torture_comment(torture, "%.2f ops/second\n", count/timeval_elapsed(&tv)); torture 3036 source4/torture/raw/oplock.c bool torture_hold_oplock(struct torture_context *torture, torture 178 source4/torture/raw/pingpong.c bool torture_ping_pong(struct torture_context *torture) torture 182 source4/torture/raw/pingpong.c TALLOC_CTX *mem_ctx = talloc_new(torture); torture 193 source4/torture/raw/pingpong.c fn = torture_setting_string(torture, "filename", NULL); torture 199 source4/torture/raw/pingpong.c num_locks = torture_setting_int(torture, "num_locks", -1); torture 205 source4/torture/raw/pingpong.c do_reads = torture_setting_bool(torture, "read", false); torture 206 source4/torture/raw/pingpong.c do_writes = torture_setting_bool(torture, "write", false); torture 207 source4/torture/raw/pingpong.c lock_timeout = torture_setting_int(torture, "lock_timeout", 100000); torture 209 source4/torture/raw/pingpong.c if (!torture_open_connection(&cli, torture, 0)) { torture 228 source4/torture/raw/qfileinfo.c static bool torture_raw_qfileinfo_internals(struct torture_context *torture, torture 301 source4/torture/raw/qfileinfo.c torture_fail(torture, "too many level failures - giving up"); torture 453 source4/torture/raw/qfileinfo.c torture_comment(torture, "create_time: %s\n", nt_time_string(mem_ctx, correct_time)); torture 465 source4/torture/raw/qfileinfo.c torture_comment(torture, "access_time: %s\n", nt_time_string(mem_ctx, correct_time)); torture 477 source4/torture/raw/qfileinfo.c torture_comment(torture, "write_time : %s\n", nt_time_string(mem_ctx, correct_time)); torture 490 source4/torture/raw/qfileinfo.c torture_comment(torture, "change_time: %s\n", nt_time_string(mem_ctx, correct_time)); torture 516 source4/torture/raw/qfileinfo.c torture_comment(torture, "size: %u\n", (uint_t)correct_size); torture 537 source4/torture/raw/qfileinfo.c torture_comment(torture, "alloc_size: %u\n", (uint_t)correct_size); torture 570 source4/torture/raw/qfileinfo.c torture_comment(torture, "attrib: 0x%x\n", (uint_t)correct_attrib); torture 586 source4/torture/raw/qfileinfo.c torture_comment(torture, "name: %s\n", correct_name); torture 610 source4/torture/raw/qfileinfo.c torture_fail(torture, "ALL_INFO didn't give a filename"); torture 634 source4/torture/raw/qfileinfo.c torture_comment(torture, "alt_name: %s\n", correct_name); torture 656 source4/torture/raw/qfileinfo.c torture_comment(torture, "stream_name: %s\n", correct_name); torture 772 source4/torture/raw/qfileinfo.c torture_comment(torture, "file_id=%.0f\n", (double)s1->internal_information.out.file_id); torture 819 source4/torture/raw/qfileinfo.c bool torture_raw_qfileinfo(struct torture_context *torture, torture 826 source4/torture/raw/qfileinfo.c fnum = create_complex_file(cli, torture, fname); torture 832 source4/torture/raw/qfileinfo.c ret = torture_raw_qfileinfo_internals(torture, torture, cli->tree, fnum, fname, false /* is_ipc */); torture 840 source4/torture/raw/qfileinfo.c bool torture_raw_qfileinfo_pipe(struct torture_context *torture, torture 850 source4/torture/raw/qfileinfo.c if (!(p = dcerpc_pipe_init(torture, cli->tree->session->transport->socket->event.ctx, torture 851 source4/torture/raw/qfileinfo.c lp_iconv_convenience(torture->lp_ctx)))) { torture 856 source4/torture/raw/qfileinfo.c torture_assert_ntstatus_ok(torture, status, "dcerpc_pipe_open_smb failed"); torture 861 source4/torture/raw/qfileinfo.c ret = torture_raw_qfileinfo_internals(torture, torture, ipc_tree, fnum, fname, true /* is_ipc */); torture 123 source4/torture/raw/qfsinfo.c bool torture_raw_qfsinfo(struct torture_context *torture, torture 133 source4/torture/raw/qfsinfo.c torture_comment(torture, "Running level %s\n", levels[i].name); torture 135 source4/torture/raw/qfsinfo.c levels[i].status = smb_raw_fsinfo(cli->tree, torture, &levels[i].fsinfo); torture 154 source4/torture/raw/qfsinfo.c torture_comment(torture, "%d levels failed\n", count); torture 155 source4/torture/raw/qfsinfo.c torture_assert(torture, count > 13, "too many level failures - giving up"); torture 158 source4/torture/raw/qfsinfo.c torture_comment(torture, "check for correct aliases\n"); torture 181 source4/torture/raw/qfsinfo.c torture_comment(torture, "volume_info.volume_name = '%s'\n", s1->volume_info.out.volume_name.s); torture 192 source4/torture/raw/qfsinfo.c torture_comment(torture, "attribute_info.fs_type = '%s'\n", s1->attribute_info.out.fs_type.s); torture 195 source4/torture/raw/qfsinfo.c torture_comment(torture, "check for consistent disk sizes\n"); torture 214 source4/torture/raw/qfsinfo.c torture_comment(torture, "total disk = %.0f MB\n", size1*scale/1.0e6); torture 217 source4/torture/raw/qfsinfo.c torture_comment(torture, "check consistent free disk space\n"); torture 236 source4/torture/raw/qfsinfo.c torture_comment(torture, "free disk = %.0f MB\n", size1*scale/1.0e6); torture 239 source4/torture/raw/qfsinfo.c torture_comment(torture, "volume info consistency\n"); torture 287 source4/torture/raw/qfsinfo.c torture_comment(torture, "check for correct termination\n"); torture 128 source4/torture/raw/samba3hide.c bool torture_samba3_hide(struct torture_context *torture) torture 138 source4/torture/raw/samba3hide.c torture, &cli, torture, torture_setting_string(torture, "host", NULL), torture 139 source4/torture/raw/samba3hide.c torture_setting_string(torture, "share", NULL), torture->ev)) { torture 144 source4/torture/raw/samba3hide.c status = torture_second_tcon(torture, cli->session, "hideunread", torture 152 source4/torture/raw/samba3hide.c status = torture_second_tcon(torture, cli->session, "hideunwrite", torture 187 source4/torture/raw/samba3hide.c if (!is_writeable(torture, cli->tree, fname)) { torture 216 source4/torture/raw/samba3hide.c if (is_writeable(torture, cli->tree, fname)) { torture 244 source4/torture/raw/samba3hide.c if (is_writeable(torture, cli->tree, fname)) { torture 39 source4/torture/raw/samba3misc.c bool torture_samba3_checkfsp(struct torture_context *torture) torture 58 source4/torture/raw/samba3misc.c torture, &cli, torture, torture_setting_string(torture, "host", NULL), torture 59 source4/torture/raw/samba3misc.c torture_setting_string(torture, "share", NULL), torture->ev)) { torture 67 source4/torture/raw/samba3misc.c status = torture_second_tcon(torture, cli->session, torture 68 source4/torture/raw/samba3misc.c torture_setting_string(torture, "share", NULL), torture 328 source4/torture/raw/samba3misc.c bool torture_samba3_badpath(struct torture_context *torture) torture 348 source4/torture/raw/samba3misc.c nt_status_support = lp_nt_status_support(torture->lp_ctx); torture 350 source4/torture/raw/samba3misc.c if (!lp_set_cmdline(torture->lp_ctx, "nt status support", "yes")) { torture 355 source4/torture/raw/samba3misc.c if (!torture_open_connection(&cli_nt, torture, 0)) { torture 359 source4/torture/raw/samba3misc.c if (!lp_set_cmdline(torture->lp_ctx, "nt status support", "no")) { torture 364 source4/torture/raw/samba3misc.c if (!torture_open_connection(&cli_dos, torture, 1)) { torture 368 source4/torture/raw/samba3misc.c if (!lp_set_cmdline(torture->lp_ctx, "nt status support", torture 544 source4/torture/raw/samba3misc.c || !torture_setting_bool(torture, "samba3", false)) { torture 550 source4/torture/raw/samba3misc.c || !torture_setting_bool(torture, "samba3", false)) { torture 612 source4/torture/raw/samba3misc.c bool torture_samba3_caseinsensitive(struct torture_context *torture) torture 630 source4/torture/raw/samba3misc.c if (!torture_open_connection(&cli, torture, 0)) { torture 236 source4/torture/raw/seek.c bool torture_raw_seek(struct torture_context *torture, struct smbcli_state *cli) torture 240 source4/torture/raw/seek.c ret &= test_seek(cli, torture); torture 35 source4/torture/raw/setfileinfo.c bool torture_raw_sfileinfo(struct torture_context *torture, torture 63 source4/torture/raw/setfileinfo.c fnum = create_complex_file(cli, torture, fname); \ torture 92 source4/torture/raw/setfileinfo.c status2 = smb_raw_fileinfo(cli->tree, torture, &finfo1); \ torture 115 source4/torture/raw/setfileinfo.c status2 = smb_raw_pathinfo(cli->tree, torture, &finfo1); \ torture 118 source4/torture/raw/setfileinfo.c status2 = smb_raw_pathinfo(cli->tree, torture, &finfo1); \ torture 130 source4/torture/raw/setfileinfo.c status2 = smb_raw_fileinfo(cli->tree, torture, &finfo2); \ torture 133 source4/torture/raw/setfileinfo.c status2 = smb_raw_pathinfo(cli->tree, torture, &finfo2); \ torture 136 source4/torture/raw/setfileinfo.c status2 = smb_raw_pathinfo(cli->tree, torture, &finfo2); \ torture 151 source4/torture/raw/setfileinfo.c dump_all_info(torture, &finfo1); \ torture 162 source4/torture/raw/setfileinfo.c printf("\t%s", timestring(torture, value)); \ torture 163 source4/torture/raw/setfileinfo.c printf("\t%s\n", nt_time_string(torture, finfo2.stype.out.field)); \ torture 164 source4/torture/raw/setfileinfo.c dump_all_info(torture, &finfo1); \ torture 175 source4/torture/raw/setfileinfo.c dump_all_info(torture, &finfo1); \ torture 448 source4/torture/raw/setfileinfo.c bool torture_raw_sfileinfo_rename(struct torture_context *torture, torture 483 source4/torture/raw/setfileinfo.c smbcli_close(cli->tree, create_complex_file(cli, torture, fnum_fname_new)); torture 484 source4/torture/raw/setfileinfo.c smbcli_close(cli->tree, create_complex_file(cli, torture, path_fname_new)); torture 504 source4/torture/raw/setfileinfo.c fnum2 = create_complex_file(cli, torture, fnum_fname); torture 531 source4/torture/raw/setfileinfo.c fnum2 = create_complex_file(cli, torture, fnum_fname); torture 582 source4/torture/raw/setfileinfo.c if (torture_setting_bool(torture, "samba3", false)) { torture 609 source4/torture/raw/setfileinfo.c fnum = create_complex_file(cli, torture, path_fname); torture 675 source4/torture/raw/setfileinfo.c bool torture_raw_sfileinfo_bug(struct torture_context *torture, torture 683 source4/torture/raw/setfileinfo.c if (!torture_setting_bool(torture, "dangerous", false)) torture 684 source4/torture/raw/setfileinfo.c torture_skip(torture, torture 687 source4/torture/raw/setfileinfo.c fnum = create_complex_file(cli, torture, fname); torture 1656 source4/torture/raw/streams.c bool torture_raw_streams(struct torture_context *torture, torture 1665 source4/torture/raw/streams.c ret &= test_stream_dir(torture, cli, torture); torture 1667 source4/torture/raw/streams.c ret &= test_stream_io(torture, cli, torture); torture 1669 source4/torture/raw/streams.c ret &= test_stream_sharemodes(torture, cli, torture); torture 1671 source4/torture/raw/streams.c if (!torture_setting_bool(torture, "samba4", false)) { torture 1672 source4/torture/raw/streams.c ret &= test_stream_delete(torture, cli, torture); torture 1674 source4/torture/raw/streams.c ret &= test_stream_names(torture, cli, torture); torture 1676 source4/torture/raw/streams.c ret &= test_stream_names2(torture, cli, torture); torture 1678 source4/torture/raw/streams.c ret &= test_stream_rename(torture, cli, torture); torture 1680 source4/torture/raw/streams.c ret &= test_stream_rename2(torture, cli, torture); torture 1682 source4/torture/raw/streams.c ret &= test_stream_create_disposition(torture, cli, torture); torture 1685 source4/torture/raw/streams.c ret &= test_stream_attributes(torture, cli, torture); torture 29 source4/torture/rpc/alter_context.c bool torture_rpc_alter_context(struct torture_context *torture) torture 39 source4/torture/rpc/alter_context.c torture_comment(torture, "opening LSA connection\n"); torture 40 source4/torture/rpc/alter_context.c status = torture_rpc_connection(torture, &p, &ndr_table_lsarpc); torture 41 source4/torture/rpc/alter_context.c torture_assert_ntstatus_ok(torture, status, "connecting"); torture 43 source4/torture/rpc/alter_context.c if (!test_lsa_OpenPolicy2(p, torture, &handle)) { torture 47 source4/torture/rpc/alter_context.c torture_comment(torture, "Opening secondary DSSETUP context\n"); torture 49 source4/torture/rpc/alter_context.c torture_assert_ntstatus_ok(torture, status, "dcerpc_alter_context failed"); torture 53 source4/torture/rpc/alter_context.c torture_comment(torture, "Opening bad secondary connection\n"); torture 55 source4/torture/rpc/alter_context.c torture_assert_ntstatus_equal(torture, status, NT_STATUS_RPC_UNSUPPORTED_NAME_SYNTAX, torture 58 source4/torture/rpc/alter_context.c torture_comment(torture, "testing DSSETUP pipe operations\n"); torture 59 source4/torture/rpc/alter_context.c ret &= test_DsRoleGetPrimaryDomainInformation(torture, p2); torture 62 source4/torture/rpc/alter_context.c ret &= test_lsa_Close(p, torture, handle); torture 68 source4/torture/rpc/alter_context.c torture_comment(torture, "Testing change of primary context\n"); torture 69 source4/torture/rpc/alter_context.c status = dcerpc_alter_context(p, torture, &p2->syntax, &p2->transfer_syntax); torture 70 source4/torture/rpc/alter_context.c torture_assert_ntstatus_ok(torture, status, "dcerpc_alter_context failed"); torture 72 source4/torture/rpc/alter_context.c torture_comment(torture, "testing DSSETUP pipe operations - should fault\n"); torture 73 source4/torture/rpc/alter_context.c ret &= test_DsRoleGetPrimaryDomainInformation_ext(torture, p, NT_STATUS_NET_WRITE_FAULT); torture 75 source4/torture/rpc/alter_context.c ret &= test_lsa_OpenPolicy2(p, torture, &handle); torture 78 source4/torture/rpc/alter_context.c ret &= test_lsa_Close(p, torture, handle); torture 81 source4/torture/rpc/alter_context.c torture_comment(torture, "testing DSSETUP pipe operations\n"); torture 83 source4/torture/rpc/alter_context.c ret &= test_DsRoleGetPrimaryDomainInformation(torture, p2); torture 38 source4/torture/rpc/async_bind.c bool torture_async_bind(struct torture_context *torture) torture 51 source4/torture/rpc/async_bind.c if (!torture_setting_bool(torture, "async", false)) { torture 56 source4/torture/rpc/async_bind.c binding_string = torture_setting_string(torture, "binding", NULL); torture 62 source4/torture/rpc/async_bind.c bind_req = talloc_array(torture, struct composite_context*, torture_numasync); torture 64 source4/torture/rpc/async_bind.c pipe = talloc_array(torture, struct dcerpc_pipe*, torture_numasync); torture 66 source4/torture/rpc/async_bind.c table = talloc_array(torture, const struct ndr_interface_table*, torture_numasync); torture 76 source4/torture/rpc/async_bind.c table[i], creds, torture->ev, torture->lp_ctx); torture 262 source4/torture/rpc/autoidl.c bool torture_rpc_autoidl(struct torture_context *torture) torture 274 source4/torture/rpc/autoidl.c test_auto_scan(torture, iface); torture 128 source4/torture/rpc/bench.c bool torture_bench_rpc(struct torture_context *torture) torture 137 source4/torture/rpc/bench.c status = torture_rpc_connection(torture, torture 145 source4/torture/rpc/bench.c if (!bench_NetShareEnumAll(torture, p, mem_ctx)) { torture 44 source4/torture/rpc/bind.c bool torture_multi_bind(struct torture_context *torture) torture 54 source4/torture/rpc/bind.c status = torture_rpc_binding(torture, &binding); torture 60 source4/torture/rpc/bind.c status = torture_rpc_connection(torture, &p, &ndr_table_lsarpc); torture 68 source4/torture/rpc/bind.c torture->lp_ctx); torture 106 source4/torture/rpc/countcalls.c bool torture_rpc_countcalls(struct torture_context *torture) torture 112 source4/torture/rpc/countcalls.c iface_name = lp_parm_string(torture->lp_ctx, NULL, "countcalls", "interface"); torture 119 source4/torture/rpc/countcalls.c return count_calls(torture, torture, iface, false); torture 124 source4/torture/rpc/countcalls.c loop_ctx = talloc_named(torture, 0, "torture_rpc_councalls loop context"); torture 125 source4/torture/rpc/countcalls.c ret &= count_calls(torture, loop_ctx, l->table, true); torture 645 source4/torture/rpc/dfs.c bool torture_rpc_dfs(struct torture_context *torture) torture 651 source4/torture/rpc/dfs.c const char *host = torture_setting_string(torture, "host", NULL); torture 653 source4/torture/rpc/dfs.c status = torture_rpc_connection(torture, &p, &ndr_table_netdfs); torture 654 source4/torture/rpc/dfs.c torture_assert_ntstatus_ok(torture, status, "Unable to connect"); torture 656 source4/torture/rpc/dfs.c ret &= test_GetManagerVersion(p, torture, &version); torture 657 source4/torture/rpc/dfs.c ret &= test_ManagerInitialize(p, torture, host); torture 658 source4/torture/rpc/dfs.c ret &= test_Enum(p, torture); torture 659 source4/torture/rpc/dfs.c ret &= test_EnumEx(p, torture, host); torture 660 source4/torture/rpc/dfs.c ret &= test_StdRoot(p, torture, torture, host); torture 661 source4/torture/rpc/dfs.c ret &= test_FtRoot(p, torture, host); torture 662 source4/torture/rpc/dfs.c ret &= test_DcAddress(p, torture, host); torture 60 source4/torture/rpc/drsuapi.c static bool test_DsGetDomainControllerInfo(struct dcerpc_pipe *p, struct torture_context *torture, torture 108 source4/torture/rpc/drsuapi.c torture_comment(torture, torture 112 source4/torture/rpc/drsuapi.c status = dcerpc_drsuapi_DsGetDomainControllerInfo(p, torture, &r); torture 113 source4/torture/rpc/drsuapi.c torture_assert_ntstatus_ok(torture, status, torture 115 source4/torture/rpc/drsuapi.c torture_assert_werr_equal(torture, torture 124 source4/torture/rpc/drsuapi.c torture_assert_int_equal(torture, torture 149 source4/torture/rpc/drsuapi.c torture_assert(torture, found, torture 166 source4/torture/rpc/drsuapi.c status = dcerpc_drsuapi_DsGetDomainControllerInfo(p, torture, &r); torture 168 source4/torture/rpc/drsuapi.c torture_assert_ntstatus_ok(torture, status, torture 170 source4/torture/rpc/drsuapi.c torture_assert_werr_ok(torture, r.out.result, torture 174 source4/torture/rpc/drsuapi.c const char *dc_account = talloc_asprintf(torture, "%s\\%s$", torture 184 source4/torture/rpc/drsuapi.c torture_assert(torture, found, torture 726 source4/torture/rpc/drsuapi.c bool torture_rpc_drsuapi(struct torture_context *torture) torture 736 source4/torture/rpc/drsuapi.c priv.join = torture_join_domain(torture, TEST_MACHINE_NAME, ACB_SVRTRUST, torture 739 source4/torture/rpc/drsuapi.c torture_fail(torture, "Failed to join as BDC"); torture 742 source4/torture/rpc/drsuapi.c status = torture_rpc_connection(torture, torture 746 source4/torture/rpc/drsuapi.c torture_leave_domain(torture, priv.join); torture 747 source4/torture/rpc/drsuapi.c torture_fail(torture, "Unable to connect to DRSUAPI pipe"); torture 750 source4/torture/rpc/drsuapi.c ret &= test_DsBind(p, torture, &priv); torture 752 source4/torture/rpc/drsuapi.c ret &= test_QuerySitesByCost(p, torture, &priv); torture 754 source4/torture/rpc/drsuapi.c ret &= test_DsGetDomainControllerInfo(p, torture, &priv); torture 756 source4/torture/rpc/drsuapi.c ret &= test_DsCrackNames(torture, p, torture, &priv); torture 758 source4/torture/rpc/drsuapi.c ret &= test_DsWriteAccountSpn(p, torture, &priv); torture 760 source4/torture/rpc/drsuapi.c ret &= test_DsReplicaGetInfo(p, torture, &priv); torture 762 source4/torture/rpc/drsuapi.c ret &= test_DsReplicaSync(p, torture, &priv); torture 764 source4/torture/rpc/drsuapi.c ret &= test_DsReplicaUpdateRefs(p, torture, &priv); torture 766 source4/torture/rpc/drsuapi.c ret &= test_DsGetNCChanges(p, torture, &priv); torture 768 source4/torture/rpc/drsuapi.c ret &= test_DsUnbind(p, torture, &priv); torture 770 source4/torture/rpc/drsuapi.c torture_leave_domain(torture, priv.join); torture 776 source4/torture/rpc/drsuapi.c bool torture_rpc_drsuapi_cracknames(struct torture_context *torture) torture 784 source4/torture/rpc/drsuapi.c torture_comment(torture, "Connected to DRSUAPI pipe\n"); torture 788 source4/torture/rpc/drsuapi.c priv.join = torture_join_domain(torture, TEST_MACHINE_NAME, ACB_SVRTRUST, torture 791 source4/torture/rpc/drsuapi.c torture_fail(torture, "Failed to join as BDC\n"); torture 794 source4/torture/rpc/drsuapi.c status = torture_rpc_connection(torture, torture 798 source4/torture/rpc/drsuapi.c torture_leave_domain(torture, priv.join); torture 799 source4/torture/rpc/drsuapi.c torture_fail(torture, "Unable to connect to DRSUAPI pipe"); torture 802 source4/torture/rpc/drsuapi.c ret &= test_DsBind(p, torture, &priv); torture 806 source4/torture/rpc/drsuapi.c test_DsGetDomainControllerInfo(p, torture, &priv); torture 808 source4/torture/rpc/drsuapi.c ret &= test_DsCrackNames(torture, p, torture, &priv); torture 810 source4/torture/rpc/drsuapi.c ret &= test_DsUnbind(p, torture, &priv); torture 813 source4/torture/rpc/drsuapi.c torture_leave_domain(torture, priv.join); torture 888 source4/torture/rpc/dssync.c bool torture_rpc_dssync(struct torture_context *torture) torture 895 source4/torture/rpc/dssync.c ctx = test_create_context(torture); torture 897 source4/torture/rpc/dssync.c ret &= _test_DsBind(torture, ctx, ctx->admin.credentials, &ctx->admin.drsuapi); torture 901 source4/torture/rpc/dssync.c ret &= test_LDAPBind(torture, ctx, ctx->admin.credentials, &ctx->admin.ldap); torture 905 source4/torture/rpc/dssync.c ret &= test_GetInfo(torture, ctx); torture 906 source4/torture/rpc/dssync.c ret &= _test_DsBind(torture, ctx, ctx->new_dc.credentials, &ctx->new_dc.drsuapi); torture 910 source4/torture/rpc/dssync.c ret &= test_FetchData(torture, ctx); torture 911 source4/torture/rpc/dssync.c ret &= test_FetchNT4Data(torture, ctx); torture 33 source4/torture/rpc/handles.c static bool test_handles_lsa(struct torture_context *torture) torture 44 source4/torture/rpc/handles.c TALLOC_CTX *mem_ctx = talloc_new(torture); torture 46 source4/torture/rpc/handles.c torture_comment(torture, "RPC-HANDLE-LSARPC\n"); torture 48 source4/torture/rpc/handles.c status = torture_rpc_connection(torture, &p1, &ndr_table_lsarpc); torture 49 source4/torture/rpc/handles.c torture_assert_ntstatus_ok(torture, status, "opening lsa pipe1"); torture 51 source4/torture/rpc/handles.c status = torture_rpc_connection(torture, &p2, &ndr_table_lsarpc); torture 52 source4/torture/rpc/handles.c torture_assert_ntstatus_ok(torture, status, "opening lsa pipe1"); torture 73 source4/torture/rpc/handles.c torture_comment(torture, "lsa_OpenPolicy not supported - skipping\n"); torture 82 source4/torture/rpc/handles.c torture_assert_ntstatus_equal(torture, status, NT_STATUS_NET_WRITE_FAULT, torture 84 source4/torture/rpc/handles.c torture_assert_int_equal(torture, p2->last_fault_code, DCERPC_FAULT_CONTEXT_MISMATCH, torture 88 source4/torture/rpc/handles.c torture_assert_ntstatus_ok(torture, status, "closing policy handle on p1"); torture 91 source4/torture/rpc/handles.c torture_assert_ntstatus_equal(torture, status, NT_STATUS_NET_WRITE_FAULT, torture 93 source4/torture/rpc/handles.c torture_assert_int_equal(torture, p1->last_fault_code, DCERPC_FAULT_CONTEXT_MISMATCH, torture 101 source4/torture/rpc/handles.c static bool test_handles_lsa_shared(struct torture_context *torture) torture 114 source4/torture/rpc/handles.c TALLOC_CTX *mem_ctx = talloc_new(torture); torture 118 source4/torture/rpc/handles.c torture_comment(torture, "RPC-HANDLE-LSARPC-SHARED\n"); torture 120 source4/torture/rpc/handles.c torture_comment(torture, "connect lsa pipe1\n"); torture 121 source4/torture/rpc/handles.c status = torture_rpc_connection(torture, &p1, &ndr_table_lsarpc); torture 122 source4/torture/rpc/handles.c torture_assert_ntstatus_ok(torture, status, "opening lsa pipe1"); torture 127 source4/torture/rpc/handles.c torture_comment(torture, "use assoc_group_id[0x%08X] for new connections\n", assoc_group_id); torture 129 source4/torture/rpc/handles.c torture_comment(torture, "connect lsa pipe2\n"); torture 130 source4/torture/rpc/handles.c status = torture_rpc_connection_transport(torture, &p2, &ndr_table_lsarpc, torture 133 source4/torture/rpc/handles.c torture_assert_ntstatus_ok(torture, status, "opening lsa pipe2"); torture 152 source4/torture/rpc/handles.c torture_comment(torture, "open lsa policy handle\n"); torture 155 source4/torture/rpc/handles.c torture_comment(torture, "lsa_OpenPolicy not supported - skipping\n"); torture 163 source4/torture/rpc/handles.c torture_comment(torture, "connect lsa pipe3 after the policy handle is opened\n"); torture 164 source4/torture/rpc/handles.c status = torture_rpc_connection_transport(torture, &p3, &ndr_table_lsarpc, torture 167 source4/torture/rpc/handles.c torture_assert_ntstatus_ok(torture, status, "opening lsa pipe3"); torture 178 source4/torture/rpc/handles.c torture_comment(torture, "use the policy handle on p1,p2,p3\n"); torture 180 source4/torture/rpc/handles.c torture_assert_ntstatus_equal(torture, status, NT_STATUS_OK, torture 184 source4/torture/rpc/handles.c torture_assert_ntstatus_equal(torture, status, NT_STATUS_OK, torture 188 source4/torture/rpc/handles.c torture_assert_ntstatus_equal(torture, status, NT_STATUS_OK, torture 194 source4/torture/rpc/handles.c torture_comment(torture, "close the policy handle on p2 others get a fault\n"); torture 196 source4/torture/rpc/handles.c torture_assert_ntstatus_equal(torture, status, NT_STATUS_OK, torture 200 source4/torture/rpc/handles.c torture_assert_ntstatus_equal(torture, status, NT_STATUS_NET_WRITE_FAULT, torture 202 source4/torture/rpc/handles.c torture_assert_int_equal(torture, p1->last_fault_code, DCERPC_FAULT_CONTEXT_MISMATCH, torture 206 source4/torture/rpc/handles.c torture_assert_ntstatus_equal(torture, status, NT_STATUS_NET_WRITE_FAULT, torture 208 source4/torture/rpc/handles.c torture_assert_int_equal(torture, p1->last_fault_code, DCERPC_FAULT_CONTEXT_MISMATCH, torture 212 source4/torture/rpc/handles.c torture_assert_ntstatus_equal(torture, status, NT_STATUS_NET_WRITE_FAULT, torture 214 source4/torture/rpc/handles.c torture_assert_int_equal(torture, p1->last_fault_code, DCERPC_FAULT_CONTEXT_MISMATCH, torture 220 source4/torture/rpc/handles.c torture_comment(torture, "open a new policy handle on p3\n"); torture 222 source4/torture/rpc/handles.c torture_assert_ntstatus_equal(torture, status, NT_STATUS_OK, torture 228 source4/torture/rpc/handles.c torture_comment(torture, "use the policy handle on p1,p2,p3\n"); torture 230 source4/torture/rpc/handles.c torture_assert_ntstatus_equal(torture, status, NT_STATUS_OK, torture 234 source4/torture/rpc/handles.c torture_assert_ntstatus_equal(torture, status, NT_STATUS_OK, torture 238 source4/torture/rpc/handles.c torture_assert_ntstatus_equal(torture, status, NT_STATUS_OK, torture 244 source4/torture/rpc/handles.c torture_comment(torture, "close the policy handle on p2 others get a fault\n"); torture 246 source4/torture/rpc/handles.c torture_assert_ntstatus_equal(torture, status, NT_STATUS_OK, torture 250 source4/torture/rpc/handles.c torture_assert_ntstatus_equal(torture, status, NT_STATUS_NET_WRITE_FAULT, torture 252 source4/torture/rpc/handles.c torture_assert_int_equal(torture, p1->last_fault_code, DCERPC_FAULT_CONTEXT_MISMATCH, torture 256 source4/torture/rpc/handles.c torture_assert_ntstatus_equal(torture, status, NT_STATUS_NET_WRITE_FAULT, torture 258 source4/torture/rpc/handles.c torture_assert_int_equal(torture, p1->last_fault_code, DCERPC_FAULT_CONTEXT_MISMATCH, torture 262 source4/torture/rpc/handles.c torture_assert_ntstatus_equal(torture, status, NT_STATUS_NET_WRITE_FAULT, torture 264 source4/torture/rpc/handles.c torture_assert_int_equal(torture, p1->last_fault_code, DCERPC_FAULT_CONTEXT_MISMATCH, torture 270 source4/torture/rpc/handles.c torture_comment(torture, "open a new policy handle on p1 and use it\n"); torture 272 source4/torture/rpc/handles.c torture_assert_ntstatus_equal(torture, status, NT_STATUS_OK, torture 276 source4/torture/rpc/handles.c torture_assert_ntstatus_equal(torture, status, NT_STATUS_OK, torture 280 source4/torture/rpc/handles.c torture_comment(torture, "disconnect p1\n"); torture 287 source4/torture/rpc/handles.c torture_comment(torture, "use policy handle on p2,p3\n"); torture 289 source4/torture/rpc/handles.c torture_assert_ntstatus_equal(torture, status, NT_STATUS_OK, torture 293 source4/torture/rpc/handles.c torture_assert_ntstatus_equal(torture, status, NT_STATUS_OK, torture 300 source4/torture/rpc/handles.c torture_comment(torture, "connect lsa pipe4 and use policy handle\n"); torture 301 source4/torture/rpc/handles.c status = torture_rpc_connection_transport(torture, &p4, &ndr_table_lsarpc, torture 304 source4/torture/rpc/handles.c torture_assert_ntstatus_ok(torture, status, "opening lsa pipe4"); torture 307 source4/torture/rpc/handles.c torture_assert_ntstatus_equal(torture, status, NT_STATUS_OK, torture 314 source4/torture/rpc/handles.c torture_comment(torture, "disconnect p2,p3,p4\n"); torture 323 source4/torture/rpc/handles.c torture_comment(torture, "connect lsa pipe5 - should fail\n"); torture 324 source4/torture/rpc/handles.c status = torture_rpc_connection_transport(torture, &p5, &ndr_table_lsarpc, torture 327 source4/torture/rpc/handles.c torture_assert_ntstatus_equal(torture, status, NT_STATUS_UNSUCCESSFUL, torture 336 source4/torture/rpc/handles.c static bool test_handles_samr(struct torture_context *torture) torture 344 source4/torture/rpc/handles.c TALLOC_CTX *mem_ctx = talloc_new(torture); torture 346 source4/torture/rpc/handles.c torture_comment(torture, "RPC-HANDLE-SAMR\n"); torture 348 source4/torture/rpc/handles.c status = torture_rpc_connection(torture, &p1, &ndr_table_samr); torture 349 source4/torture/rpc/handles.c torture_assert_ntstatus_ok(torture, status, "opening samr pipe1"); torture 351 source4/torture/rpc/handles.c status = torture_rpc_connection(torture, &p2, &ndr_table_samr); torture 352 source4/torture/rpc/handles.c torture_assert_ntstatus_ok(torture, status, "opening samr pipe1"); torture 359 source4/torture/rpc/handles.c torture_assert_ntstatus_ok(torture, status, "opening policy handle on p1"); torture 365 source4/torture/rpc/handles.c torture_assert_ntstatus_equal(torture, status, NT_STATUS_NET_WRITE_FAULT, torture 367 source4/torture/rpc/handles.c torture_assert_int_equal(torture, p2->last_fault_code, DCERPC_FAULT_CONTEXT_MISMATCH, torture 371 source4/torture/rpc/handles.c torture_assert_ntstatus_ok(torture, status, "closing policy handle on p1"); torture 374 source4/torture/rpc/handles.c torture_assert_ntstatus_equal(torture, status, NT_STATUS_NET_WRITE_FAULT, torture 376 source4/torture/rpc/handles.c torture_assert_int_equal(torture, p1->last_fault_code, DCERPC_FAULT_CONTEXT_MISMATCH, torture 384 source4/torture/rpc/handles.c static bool test_handles_mixed_shared(struct torture_context *torture) torture 393 source4/torture/rpc/handles.c TALLOC_CTX *mem_ctx = talloc_new(torture); torture 397 source4/torture/rpc/handles.c torture_comment(torture, "RPC-HANDLE-MIXED-SHARED\n"); torture 399 source4/torture/rpc/handles.c torture_comment(torture, "connect samr pipe1\n"); torture 400 source4/torture/rpc/handles.c status = torture_rpc_connection(torture, &p1, &ndr_table_samr); torture 401 source4/torture/rpc/handles.c torture_assert_ntstatus_ok(torture, status, "opening samr pipe1"); torture 406 source4/torture/rpc/handles.c torture_comment(torture, "use assoc_group_id[0x%08X] for new connections\n", assoc_group_id); torture 408 source4/torture/rpc/handles.c torture_comment(torture, "connect lsa pipe2\n"); torture 409 source4/torture/rpc/handles.c status = torture_rpc_connection_transport(torture, &p2, &ndr_table_lsarpc, torture 412 source4/torture/rpc/handles.c torture_assert_ntstatus_ok(torture, status, "opening lsa pipe2"); torture 418 source4/torture/rpc/handles.c torture_comment(torture, "samr_Connect to open a policy handle on samr p1\n"); torture 420 source4/torture/rpc/handles.c torture_assert_ntstatus_ok(torture, status, "opening policy handle on p1"); torture 427 source4/torture/rpc/handles.c torture_comment(torture, "use policy handle on lsa p2 - should fail\n"); torture 429 source4/torture/rpc/handles.c torture_assert_ntstatus_equal(torture, status, NT_STATUS_NET_WRITE_FAULT, torture 431 source4/torture/rpc/handles.c torture_assert_int_equal(torture, p2->last_fault_code, DCERPC_FAULT_CONTEXT_MISMATCH, torture 434 source4/torture/rpc/handles.c torture_comment(torture, "closing policy handle on samr p1\n"); torture 436 source4/torture/rpc/handles.c torture_assert_ntstatus_ok(torture, status, "closing policy handle on p1"); torture 442 source4/torture/rpc/handles.c torture_comment(torture, "connect samr pipe3 - should fail\n"); torture 443 source4/torture/rpc/handles.c status = torture_rpc_connection_transport(torture, &p3, &ndr_table_samr, torture 446 source4/torture/rpc/handles.c torture_assert_ntstatus_equal(torture, status, NT_STATUS_UNSUCCESSFUL, torture 449 source4/torture/rpc/handles.c torture_comment(torture, "connect lsa pipe4 - should fail\n"); torture 450 source4/torture/rpc/handles.c status = torture_rpc_connection_transport(torture, &p4, &ndr_table_lsarpc, torture 453 source4/torture/rpc/handles.c torture_assert_ntstatus_equal(torture, status, NT_STATUS_UNSUCCESSFUL, torture 456 source4/torture/rpc/handles.c torture_comment(torture, "connect samr pipe5 with assoc_group_id[0x%08X]- should fail\n", ++assoc_group_id); torture 457 source4/torture/rpc/handles.c status = torture_rpc_connection_transport(torture, &p5, &ndr_table_samr, torture 460 source4/torture/rpc/handles.c torture_assert_ntstatus_equal(torture, status, NT_STATUS_UNSUCCESSFUL, torture 463 source4/torture/rpc/handles.c torture_comment(torture, "connect lsa pipe6 with assoc_group_id[0x%08X]- should fail\n", ++assoc_group_id); torture 464 source4/torture/rpc/handles.c status = torture_rpc_connection_transport(torture, &p6, &ndr_table_lsarpc, torture 467 source4/torture/rpc/handles.c torture_assert_ntstatus_equal(torture, status, NT_STATUS_UNSUCCESSFUL, torture 475 source4/torture/rpc/handles.c static bool test_handles_random_assoc(struct torture_context *torture) torture 479 source4/torture/rpc/handles.c TALLOC_CTX *mem_ctx = talloc_new(torture); torture 483 source4/torture/rpc/handles.c torture_comment(torture, "RPC-HANDLE-RANDOM-ASSOC\n"); torture 485 source4/torture/rpc/handles.c torture_comment(torture, "connect samr pipe1\n"); torture 486 source4/torture/rpc/handles.c status = torture_rpc_connection(torture, &p1, &ndr_table_samr); torture 487 source4/torture/rpc/handles.c torture_assert_ntstatus_ok(torture, status, "opening samr pipe1"); torture 492 source4/torture/rpc/handles.c torture_comment(torture, "pip1 use assoc_group_id[0x%08X]\n", assoc_group_id); torture 494 source4/torture/rpc/handles.c torture_comment(torture, "connect samr pipe2 with assoc_group_id[0x%08X]- should fail\n", ++assoc_group_id); torture 495 source4/torture/rpc/handles.c status = torture_rpc_connection_transport(torture, &p2, &ndr_table_samr, torture 498 source4/torture/rpc/handles.c torture_assert_ntstatus_equal(torture, status, NT_STATUS_UNSUCCESSFUL, torture 501 source4/torture/rpc/handles.c torture_comment(torture, "connect samr pipe3 with assoc_group_id[0x%08X]- should fail\n", ++assoc_group_id); torture 502 source4/torture/rpc/handles.c status = torture_rpc_connection_transport(torture, &p3, &ndr_table_samr, torture 505 source4/torture/rpc/handles.c torture_assert_ntstatus_equal(torture, status, NT_STATUS_UNSUCCESSFUL, torture 514 source4/torture/rpc/handles.c static bool test_handles_drsuapi(struct torture_context *torture) torture 523 source4/torture/rpc/handles.c TALLOC_CTX *mem_ctx = talloc_new(torture); torture 525 source4/torture/rpc/handles.c torture_comment(torture, "RPC-HANDLE-DRSUAPI\n"); torture 527 source4/torture/rpc/handles.c status = torture_rpc_connection(torture, &p1, &ndr_table_drsuapi); torture 528 source4/torture/rpc/handles.c torture_assert_ntstatus_ok(torture, status, "opening drsuapi pipe1"); torture 530 source4/torture/rpc/handles.c status = torture_rpc_connection(torture, &p2, &ndr_table_drsuapi); torture 531 source4/torture/rpc/handles.c torture_assert_ntstatus_ok(torture, status, "opening drsuapi pipe1"); torture 541 source4/torture/rpc/handles.c torture_comment(torture, "drsuapi_DsBind not supported - skipping\n"); torture 550 source4/torture/rpc/handles.c torture_assert_ntstatus_equal(torture, status, NT_STATUS_NET_WRITE_FAULT, torture 552 source4/torture/rpc/handles.c torture_assert_int_equal(torture, p2->last_fault_code, DCERPC_FAULT_CONTEXT_MISMATCH, torture 556 source4/torture/rpc/handles.c torture_assert_ntstatus_ok(torture, status, "closing policy handle on p1"); torture 559 source4/torture/rpc/handles.c torture_assert_ntstatus_equal(torture, status, NT_STATUS_NET_WRITE_FAULT, torture 561 source4/torture/rpc/handles.c torture_assert_int_equal(torture, p1->last_fault_code, DCERPC_FAULT_CONTEXT_MISMATCH, torture 14 source4/torture/rpc/join.c bool torture_rpc_join(struct torture_context *torture) torture 20 source4/torture/rpc/join.c const char *host = torture_setting_string(torture, "host", NULL); torture 25 source4/torture/rpc/join.c tj = torture_join_domain(torture, torture 36 source4/torture/rpc/join.c lp_smbcli_options(torture->lp_ctx, &options); torture 37 source4/torture/rpc/join.c lp_smbcli_session_options(torture->lp_ctx, &session_options); torture 40 source4/torture/rpc/join.c lp_smb_ports(torture->lp_ctx), torture 42 source4/torture/rpc/join.c lp_socket_options(torture->lp_ctx), torture 44 source4/torture/rpc/join.c lp_resolve_context(torture->lp_ctx), torture 45 source4/torture/rpc/join.c torture->ev, &options, &session_options, torture 46 source4/torture/rpc/join.c lp_iconv_convenience(torture->lp_ctx), torture 47 source4/torture/rpc/join.c lp_gensec_settings(torture, torture->lp_ctx)); torture 56 source4/torture/rpc/join.c torture_leave_domain(torture, tj); torture 59 source4/torture/rpc/join.c tj = torture_join_domain(torture, TORTURE_NETBIOS_NAME, torture 69 source4/torture/rpc/join.c lp_smb_ports(torture->lp_ctx), torture 71 source4/torture/rpc/join.c lp_socket_options(torture->lp_ctx), torture 73 source4/torture/rpc/join.c lp_resolve_context(torture->lp_ctx), torture 74 source4/torture/rpc/join.c torture->ev, &options, &session_options, torture 75 source4/torture/rpc/join.c lp_iconv_convenience(torture->lp_ctx), torture 76 source4/torture/rpc/join.c lp_gensec_settings(torture, torture->lp_ctx)); torture 86 source4/torture/rpc/join.c torture_leave_domain(torture, tj); torture 224 source4/torture/rpc/lsa_lookup.c bool torture_rpc_lsa_lookup(struct torture_context *torture) torture 234 source4/torture/rpc/lsa_lookup.c status = torture_rpc_connection(torture, &p, &ndr_table_lsarpc); torture 236 source4/torture/rpc/lsa_lookup.c torture_fail(torture, "unable to connect to table"); torture 239 source4/torture/rpc/lsa_lookup.c ret &= open_policy(torture, p, &handle); torture 242 source4/torture/rpc/lsa_lookup.c ret &= get_domainsid(torture, p, handle, &dom_sid); torture 245 source4/torture/rpc/lsa_lookup.c ret &= get_downleveltrust(torture, p, handle, &trusted_sid); torture 248 source4/torture/rpc/lsa_lookup.c torture_comment(torture, "domain sid: %s\n", torture 249 source4/torture/rpc/lsa_lookup.c dom_sid_string(torture, dom_sid)); torture 251 source4/torture/rpc/lsa_lookup.c sids[0] = dom_sid_parse_talloc(torture, "S-1-1-0"); torture 252 source4/torture/rpc/lsa_lookup.c sids[1] = dom_sid_parse_talloc(torture, "S-1-5-4"); torture 253 source4/torture/rpc/lsa_lookup.c sids[2] = dom_sid_parse_talloc(torture, "S-1-5-32"); torture 254 source4/torture/rpc/lsa_lookup.c sids[3] = dom_sid_parse_talloc(torture, "S-1-5-32-545"); torture 255 source4/torture/rpc/lsa_lookup.c sids[4] = dom_sid_dup(torture, dom_sid); torture 256 source4/torture/rpc/lsa_lookup.c sids[5] = dom_sid_add_rid(torture, dom_sid, 512); torture 257 source4/torture/rpc/lsa_lookup.c sids[6] = dom_sid_dup(torture, trusted_sid); torture 258 source4/torture/rpc/lsa_lookup.c sids[7] = dom_sid_add_rid(torture, trusted_sid, 512); torture 260 source4/torture/rpc/lsa_lookup.c ret &= test_lookupsids(torture, p, handle, sids, NUM_SIDS, 0, torture 269 source4/torture/rpc/lsa_lookup.c ret &= test_lookupsids(torture, p, handle, sids, NUM_SIDS, 1, torture 279 source4/torture/rpc/lsa_lookup.c ret &= test_lookupsids(torture, p, handle, sids, NUM_SIDS, 2, torture 289 source4/torture/rpc/lsa_lookup.c ret &= test_lookupsids(torture, p, handle, sids, NUM_SIDS, 3, torture 299 source4/torture/rpc/lsa_lookup.c ret &= test_lookupsids(torture, p, handle, sids, NUM_SIDS, 4, torture 303 source4/torture/rpc/lsa_lookup.c ret &= test_lookupsids(torture, p, handle, sids, NUM_SIDS, 5, torture 312 source4/torture/rpc/lsa_lookup.c ret &= test_lookupsids(torture, p, handle, sids, NUM_SIDS, 6, torture 316 source4/torture/rpc/lsa_lookup.c ret &= test_lookupsids(torture, p, handle, sids, NUM_SIDS, 7, torture 318 source4/torture/rpc/lsa_lookup.c ret &= test_lookupsids(torture, p, handle, sids, NUM_SIDS, 8, torture 320 source4/torture/rpc/lsa_lookup.c ret &= test_lookupsids(torture, p, handle, sids, NUM_SIDS, 9, torture 322 source4/torture/rpc/lsa_lookup.c ret &= test_lookupsids(torture, p, handle, sids, NUM_SIDS, 10, torture 195 source4/torture/rpc/mgmt.c bool torture_rpc_mgmt(struct torture_context *torture) torture 206 source4/torture/rpc/mgmt.c status = torture_rpc_binding(torture, &b); torture 224 source4/torture/rpc/mgmt.c status = dcerpc_epm_map_binding(loop_ctx, b, l->table, NULL, torture->lp_ctx); torture 232 source4/torture/rpc/mgmt.c lp_set_cmdline(torture->lp_ctx, "torture:binding", dcerpc_binding_string(loop_ctx, b)); torture 234 source4/torture/rpc/mgmt.c status = torture_rpc_connection(torture, &p, &ndr_table_mgmt); torture 263 source4/torture/rpc/mgmt.c if (!test_inq_if_ids(torture, p, loop_ctx, NULL, NULL)) { torture 34 source4/torture/rpc/object_uuid.c static bool test_random_uuid(struct torture_context *torture) torture 45 source4/torture/rpc/object_uuid.c torture_comment(torture, "RPC-OBJECTUUID-RANDOM\n"); torture 47 source4/torture/rpc/object_uuid.c status = torture_rpc_connection(torture, &p1, &ndr_table_dssetup); torture 48 source4/torture/rpc/object_uuid.c torture_assert_ntstatus_ok(torture, status, "opening dsetup pipe1"); torture 50 source4/torture/rpc/object_uuid.c status = torture_rpc_connection(torture, &p2, &ndr_table_lsarpc); torture 51 source4/torture/rpc/object_uuid.c torture_assert_ntstatus_ok(torture, status, "opening lsa pipe1"); torture 59 source4/torture/rpc/object_uuid.c torture, &r1); torture 61 source4/torture/rpc/object_uuid.c torture_assert_ntstatus_ok(torture, status, "DsRoleGetPrimaryDomainInformation failed"); torture 62 source4/torture/rpc/object_uuid.c torture_assert_werr_ok(torture, r1.out.result, "DsRoleGetPrimaryDomainInformation failed"); torture 75 source4/torture/rpc/object_uuid.c torture, &r2); torture 77 source4/torture/rpc/object_uuid.c torture_assert_ntstatus_ok(torture, status, "lsaClose failed"); torture 78 source4/torture/rpc/object_uuid.c torture_assert_ntstatus_ok(torture, r2.out.result, "lsaClose failed"); torture 61 source4/torture/rpc/samba3rpc.c bool torture_bind_authcontext(struct torture_context *torture) torture 86 source4/torture/rpc/samba3rpc.c lp_smbcli_options(torture->lp_ctx, &options); torture 87 source4/torture/rpc/samba3rpc.c lp_smbcli_session_options(torture->lp_ctx, &session_options); torture 90 source4/torture/rpc/samba3rpc.c torture_setting_string(torture, "host", NULL), torture 91 source4/torture/rpc/samba3rpc.c lp_smb_ports(torture->lp_ctx), torture 93 source4/torture/rpc/samba3rpc.c lp_socket_options(torture->lp_ctx), torture 95 source4/torture/rpc/samba3rpc.c lp_resolve_context(torture->lp_ctx), torture 96 source4/torture/rpc/samba3rpc.c torture->ev, &options, &session_options, torture 97 source4/torture/rpc/samba3rpc.c lp_iconv_convenience(torture->lp_ctx), torture 98 source4/torture/rpc/samba3rpc.c lp_gensec_settings(torture, torture->lp_ctx)); torture 106 source4/torture/rpc/samba3rpc.c lp_iconv_convenience(torture->lp_ctx)); torture 166 source4/torture/rpc/samba3rpc.c setup.in.gensec_settings = lp_gensec_settings(torture, torture->lp_ctx); torture 293 source4/torture/rpc/samba3rpc.c bool torture_bind_samba3(struct torture_context *torture) torture 309 source4/torture/rpc/samba3rpc.c lp_smbcli_options(torture->lp_ctx, &options); torture 310 source4/torture/rpc/samba3rpc.c lp_smbcli_session_options(torture->lp_ctx, &session_options); torture 313 source4/torture/rpc/samba3rpc.c torture_setting_string(torture, "host", NULL), torture 314 source4/torture/rpc/samba3rpc.c lp_smb_ports(torture->lp_ctx), torture 316 source4/torture/rpc/samba3rpc.c lp_socket_options(torture->lp_ctx), torture 318 source4/torture/rpc/samba3rpc.c lp_resolve_context(torture->lp_ctx), torture 319 source4/torture/rpc/samba3rpc.c torture->ev, &options, &session_options, torture 320 source4/torture/rpc/samba3rpc.c lp_iconv_convenience(torture->lp_ctx), torture 321 source4/torture/rpc/samba3rpc.c lp_gensec_settings(torture, torture->lp_ctx)); torture 330 source4/torture/rpc/samba3rpc.c ret &= bindtest(cli, cmdline_credentials, torture->lp_ctx, DCERPC_AUTH_TYPE_NTLMSSP, torture 332 source4/torture/rpc/samba3rpc.c ret &= bindtest(cli, cmdline_credentials, torture->lp_ctx, DCERPC_AUTH_TYPE_NTLMSSP, torture 334 source4/torture/rpc/samba3rpc.c ret &= bindtest(cli, cmdline_credentials, torture->lp_ctx, DCERPC_AUTH_TYPE_SPNEGO, torture 336 source4/torture/rpc/samba3rpc.c ret &= bindtest(cli, cmdline_credentials, torture->lp_ctx, DCERPC_AUTH_TYPE_SPNEGO, torture 1237 source4/torture/rpc/samba3rpc.c bool torture_netlogon_samba3(struct torture_context *torture) torture 1250 source4/torture/rpc/samba3rpc.c wks_name = torture_setting_string(torture, "wksname", NULL); torture 1252 source4/torture/rpc/samba3rpc.c wks_name = get_myname(torture); torture 1267 source4/torture/rpc/samba3rpc.c lp_smbcli_options(torture->lp_ctx, &options); torture 1268 source4/torture/rpc/samba3rpc.c lp_smbcli_session_options(torture->lp_ctx, &session_options); torture 1271 source4/torture/rpc/samba3rpc.c torture_setting_string(torture, "host", NULL), torture 1272 source4/torture/rpc/samba3rpc.c lp_smb_ports(torture->lp_ctx), torture 1274 source4/torture/rpc/samba3rpc.c lp_socket_options(torture->lp_ctx), torture 1276 source4/torture/rpc/samba3rpc.c lp_resolve_context(torture->lp_ctx), torture 1277 source4/torture/rpc/samba3rpc.c torture->ev, &options, &session_options, torture 1278 source4/torture/rpc/samba3rpc.c lp_iconv_convenience(torture->lp_ctx), torture 1279 source4/torture/rpc/samba3rpc.c lp_gensec_settings(torture, torture->lp_ctx)); torture 1292 source4/torture/rpc/samba3rpc.c cli_credentials_set_conf(wks_creds, torture->lp_ctx); torture 1300 source4/torture/rpc/samba3rpc.c if (!join3(cli, torture->lp_ctx, false, cmdline_credentials, wks_creds)) { torture 1317 source4/torture/rpc/samba3rpc.c if (!auth2(cli, torture->lp_ctx, wks_creds)) { torture 1323 source4/torture/rpc/samba3rpc.c if (!schan(cli, torture->lp_ctx, wks_creds, cmdline_credentials)) { torture 1330 source4/torture/rpc/samba3rpc.c if (!leave(cli, torture->lp_ctx, cmdline_credentials, wks_creds)) { torture 1423 source4/torture/rpc/samba3rpc.c bool torture_samba3_sessionkey(struct torture_context *torture) torture 1429 source4/torture/rpc/samba3rpc.c wks_name = torture_setting_string(torture, "wksname", get_myname(torture)); torture 1431 source4/torture/rpc/samba3rpc.c if (!(anon_creds = cli_credentials_init_anon(torture))) { torture 1440 source4/torture/rpc/samba3rpc.c if (!torture_setting_bool(torture, "samba3", false)) { torture 1445 source4/torture/rpc/samba3rpc.c if (test_join3(torture, false, anon_creds, NULL, wks_name)) { torture 1452 source4/torture/rpc/samba3rpc.c if (!test_join3(torture, false, anon_creds, cmdline_credentials, torture 1459 source4/torture/rpc/samba3rpc.c if (!test_join3(torture, false, cmdline_credentials, NULL, wks_name)) { torture 1465 source4/torture/rpc/samba3rpc.c if (!test_join3(torture, false, cmdline_credentials, torture 1477 source4/torture/rpc/samba3rpc.c if (!test_join3(torture, true, anon_creds, cmdline_credentials, torture 1484 source4/torture/rpc/samba3rpc.c if (!test_join3(torture, true, cmdline_credentials, NULL, wks_name)) { torture 1726 source4/torture/rpc/samba3rpc.c bool torture_samba3_rpc_getusername(struct torture_context *torture) torture 1740 source4/torture/rpc/samba3rpc.c if (!(mem_ctx = talloc_new(torture))) { torture 1744 source4/torture/rpc/samba3rpc.c lp_smbcli_options(torture->lp_ctx, &options); torture 1745 source4/torture/rpc/samba3rpc.c lp_smbcli_session_options(torture->lp_ctx, &session_options); torture 1748 source4/torture/rpc/samba3rpc.c mem_ctx, &cli, torture_setting_string(torture, "host", NULL), torture 1749 source4/torture/rpc/samba3rpc.c lp_smb_ports(torture->lp_ctx), torture 1750 source4/torture/rpc/samba3rpc.c "IPC$", NULL, lp_socket_options(torture->lp_ctx), cmdline_credentials, torture 1751 source4/torture/rpc/samba3rpc.c lp_resolve_context(torture->lp_ctx), torture 1752 source4/torture/rpc/samba3rpc.c torture->ev, &options, &session_options, torture 1753 source4/torture/rpc/samba3rpc.c lp_iconv_convenience(torture->lp_ctx), torture 1754 source4/torture/rpc/samba3rpc.c lp_gensec_settings(torture, torture->lp_ctx)); torture 1762 source4/torture/rpc/samba3rpc.c if (!(user_sid = whoami(mem_ctx, torture->lp_ctx, cli->tree))) { torture 1777 source4/torture/rpc/samba3rpc.c mem_ctx, &cli, torture_setting_string(torture, "host", NULL), torture 1778 source4/torture/rpc/samba3rpc.c lp_smb_ports(torture->lp_ctx), "IPC$", NULL, torture 1779 source4/torture/rpc/samba3rpc.c lp_socket_options(torture->lp_ctx), anon_creds, torture 1780 source4/torture/rpc/samba3rpc.c lp_resolve_context(torture->lp_ctx), torture 1781 source4/torture/rpc/samba3rpc.c torture->ev, &options, &session_options, torture 1782 source4/torture/rpc/samba3rpc.c lp_iconv_convenience(torture->lp_ctx), torture 1783 source4/torture/rpc/samba3rpc.c lp_gensec_settings(torture, torture->lp_ctx)); torture 1791 source4/torture/rpc/samba3rpc.c if (!(user_sid = whoami(mem_ctx, torture->lp_ctx, cli->tree))) { torture 1812 source4/torture/rpc/samba3rpc.c cli_credentials_set_conf(user_creds, torture->lp_ctx); torture 1819 source4/torture/rpc/samba3rpc.c if (!create_user(mem_ctx, cli, torture->lp_ctx, cmdline_credentials, torture 1847 source4/torture/rpc/samba3rpc.c setup.in.gensec_settings = lp_gensec_settings(torture, torture->lp_ctx); torture 1866 source4/torture/rpc/samba3rpc.c if (!(user_sid = whoami(mem_ctx, torture->lp_ctx, tree))) { torture 1885 source4/torture/rpc/samba3rpc.c if (!delete_user(cli, torture->lp_ctx, torture 2033 source4/torture/rpc/samba3rpc.c bool torture_samba3_rpc_srvsvc(struct torture_context *torture) torture 2042 source4/torture/rpc/samba3rpc.c if (!(mem_ctx = talloc_new(torture))) { torture 2047 source4/torture/rpc/samba3rpc.c mem_ctx, &cli, torture, torture_setting_string(torture, "host", NULL), torture 2048 source4/torture/rpc/samba3rpc.c "IPC$", torture->ev))) { torture 2053 source4/torture/rpc/samba3rpc.c status = pipe_bind_smb(mem_ctx, torture->lp_ctx, cli->tree, torture 2079 source4/torture/rpc/samba3rpc.c bool torture_samba3_rpc_randomauth2(struct torture_context *torture) torture 2096 source4/torture/rpc/samba3rpc.c if (!(mem_ctx = talloc_new(torture))) { torture 2109 source4/torture/rpc/samba3rpc.c torture, torture_setting_string(torture, "host", NULL), torture 2110 source4/torture/rpc/samba3rpc.c "IPC$", torture->ev))) { torture 2117 source4/torture/rpc/samba3rpc.c lp_iconv_convenience(torture->lp_ctx)))) { torture 2395 source4/torture/rpc/samba3rpc.c bool torture_samba3_rpc_sharesec(struct torture_context *torture) torture 2403 source4/torture/rpc/samba3rpc.c if (!(mem_ctx = talloc_new(torture))) { torture 2408 source4/torture/rpc/samba3rpc.c mem_ctx, &cli, torture, torture_setting_string(torture, "host", NULL), torture 2409 source4/torture/rpc/samba3rpc.c "IPC$", torture->ev))) { torture 2415 source4/torture/rpc/samba3rpc.c if (!(user_sid = whoami(mem_ctx, torture->lp_ctx, cli->tree))) { torture 2421 source4/torture/rpc/samba3rpc.c sd = get_sharesec(mem_ctx, torture->lp_ctx, cli->session, torture 2422 source4/torture/rpc/samba3rpc.c torture_setting_string(torture, "share", NULL)); torture 2424 source4/torture/rpc/samba3rpc.c ret &= try_tcon(mem_ctx, torture->lp_ctx, sd, cli->session, torture 2425 source4/torture/rpc/samba3rpc.c torture_setting_string(torture, "share", NULL), torture 2428 source4/torture/rpc/samba3rpc.c ret &= try_tcon(mem_ctx, torture->lp_ctx, sd, cli->session, torture 2429 source4/torture/rpc/samba3rpc.c torture_setting_string(torture, "share", NULL), torture 2433 source4/torture/rpc/samba3rpc.c ret &= try_tcon(mem_ctx, torture->lp_ctx, sd, cli->session, torture 2434 source4/torture/rpc/samba3rpc.c torture_setting_string(torture, "share", NULL), torture 2441 source4/torture/rpc/samba3rpc.c bool torture_samba3_rpc_lsa(struct torture_context *torture) torture 2451 source4/torture/rpc/samba3rpc.c if (!(mem_ctx = talloc_new(torture))) { torture 2456 source4/torture/rpc/samba3rpc.c mem_ctx, &cli, torture, torture_setting_string(torture, "host", NULL), torture 2457 source4/torture/rpc/samba3rpc.c "IPC$", torture->ev))) { torture 2463 source4/torture/rpc/samba3rpc.c status = pipe_bind_smb(mem_ctx, torture->lp_ctx, cli->tree, "\\lsarpc", torture 2735 source4/torture/rpc/samba3rpc.c bool torture_samba3_rpc_spoolss(struct torture_context *torture) torture 2748 source4/torture/rpc/samba3rpc.c if (!(mem_ctx = talloc_new(torture))) { torture 2753 source4/torture/rpc/samba3rpc.c mem_ctx, &cli, torture, torture_setting_string(torture, "host", NULL), torture 2754 source4/torture/rpc/samba3rpc.c "IPC$", torture->ev))) { torture 2760 source4/torture/rpc/samba3rpc.c status = get_servername(mem_ctx, cli->tree, lp_iconv_convenience(torture->lp_ctx), &servername); torture 2768 source4/torture/rpc/samba3rpc.c if (!NT_STATUS_IS_OK(find_printers(mem_ctx, torture->lp_ctx, cli->tree, torture 2780 source4/torture/rpc/samba3rpc.c status = pipe_bind_smb(mem_ctx, torture->lp_ctx, cli->tree, "\\spoolss", torture 2791 source4/torture/rpc/samba3rpc.c mem_ctx, "\\\\%s", lp_netbios_name(torture->lp_ctx)); torture 2926 source4/torture/rpc/samba3rpc.c bool torture_samba3_rpc_wkssvc(struct torture_context *torture) torture 2934 source4/torture/rpc/samba3rpc.c if (!(mem_ctx = talloc_new(torture))) { torture 2939 source4/torture/rpc/samba3rpc.c mem_ctx, &cli, torture, torture_setting_string(torture, "host", NULL), torture 2940 source4/torture/rpc/samba3rpc.c "IPC$", torture->ev))) { torture 2946 source4/torture/rpc/samba3rpc.c status = get_servername(mem_ctx, cli->tree, lp_iconv_convenience(torture->lp_ctx), &servername); torture 2954 source4/torture/rpc/samba3rpc.c status = pipe_bind_smb(mem_ctx, torture->lp_ctx, cli->tree, "\\wkssvc", torture 3160 source4/torture/rpc/samba3rpc.c bool torture_samba3_rpc_winreg(struct torture_context *torture) torture 3181 source4/torture/rpc/samba3rpc.c status = torture_rpc_connection(torture, &p, &ndr_table_winreg); torture 3389 source4/torture/rpc/samba3rpc.c static NTSTATUS torture_samba3_deleteshare(struct torture_context *torture, torture 3402 source4/torture/rpc/samba3rpc.c status = get_hklm_handle(cli, cli, lp_iconv_convenience(torture->lp_ctx), torture 3492 source4/torture/rpc/samba3rpc.c bool torture_samba3_regconfig(struct torture_context *torture) torture 3500 source4/torture/rpc/samba3rpc.c if (!(torture_open_connection(&cli, torture, 0))) { torture 3504 source4/torture/rpc/samba3rpc.c status = torture_samba3_createshare(cli, lp_iconv_convenience(torture->lp_ctx), "blubber"); torture 3506 source4/torture/rpc/samba3rpc.c torture_warning(torture, "torture_samba3_createshare failed: " torture 3511 source4/torture/rpc/samba3rpc.c status = torture_samba3_setconfig(cli, torture->lp_ctx, "blubber", "comment", comment); torture 3513 source4/torture/rpc/samba3rpc.c torture_warning(torture, "torture_samba3_setconfig failed: " torture 3518 source4/torture/rpc/samba3rpc.c status = get_shareinfo(torture, torture->lp_ctx, cli, "blubber", &i); torture 3520 source4/torture/rpc/samba3rpc.c torture_warning(torture, "get_shareinfo failed: " torture 3526 source4/torture/rpc/samba3rpc.c torture_warning(torture, "Expected comment [%s], got [%s]\n", torture 3531 source4/torture/rpc/samba3rpc.c status = torture_samba3_deleteshare(torture, cli, "blubber"); torture 3533 source4/torture/rpc/samba3rpc.c torture_warning(torture, "torture_samba3_deleteshare failed: " torture 1516 source4/torture/rpc/samlogon.c bool torture_rpc_samlogon(struct torture_context *torture) torture 1549 source4/torture/rpc/samlogon.c join_ctx = torture_join_domain(torture, TEST_MACHINE_NAME, ACB_WSTRUST, torture 1556 source4/torture/rpc/samlogon.c userdomain = torture_setting_string(torture, "userdomain", lp_workgroup(torture->lp_ctx)); torture 1558 source4/torture/rpc/samlogon.c user_ctx = torture_create_testuser(torture, torture 1570 source4/torture/rpc/samlogon.c test_ChangePasswordUser3(torture_join_samr_pipe(user_ctx), torture, torture 1574 source4/torture/rpc/samlogon.c user_ctx_wrong_wks = torture_create_testuser(torture, torture 1600 source4/torture/rpc/samlogon.c = torture_create_testuser(torture, TEST_USER_NAME_WRONG_TIME, torture 1626 source4/torture/rpc/samlogon.c status = torture_rpc_binding(torture, &b); torture 1640 source4/torture/rpc/samlogon.c machine_credentials, torture->ev, torture->lp_ctx); torture 1779 source4/torture/rpc/samlogon.c lp_realm(torture->lp_ctx)), torture 1834 source4/torture/rpc/samlogon.c if (!test_SamLogon(p, mem_ctx, torture, creds, torture 1867 source4/torture/rpc/samlogon.c if (!test_SamLogon(p, mem_ctx, torture, creds, torture 1885 source4/torture/rpc/samlogon.c torture_leave_domain(torture, join_ctx); torture 1886 source4/torture/rpc/samlogon.c torture_leave_domain(torture, user_ctx); torture 1887 source4/torture/rpc/samlogon.c torture_leave_domain(torture, user_ctx_wrong_wks); torture 1888 source4/torture/rpc/samlogon.c torture_leave_domain(torture, user_ctx_wrong_time); torture 6608 source4/torture/rpc/samr.c bool torture_rpc_samr(struct torture_context *torture) torture 6615 source4/torture/rpc/samr.c status = torture_rpc_connection(torture, &p, &ndr_table_samr); torture 6620 source4/torture/rpc/samr.c ret &= test_Connect(p, torture, &handle); torture 6622 source4/torture/rpc/samr.c if (!torture_setting_bool(torture, "samba3", false)) { torture 6623 source4/torture/rpc/samr.c ret &= test_QuerySecurity(p, torture, &handle); torture 6626 source4/torture/rpc/samr.c ret &= test_EnumDomains(p, torture, &handle, TORTURE_SAMR_OTHER, NULL); torture 6628 source4/torture/rpc/samr.c ret &= test_SetDsrmPassword(p, torture, &handle); torture 6630 source4/torture/rpc/samr.c ret &= test_Shutdown(p, torture, &handle); torture 6632 source4/torture/rpc/samr.c ret &= test_samr_handle_Close(p, torture, &handle); torture 6638 source4/torture/rpc/samr.c bool torture_rpc_samr_users(struct torture_context *torture) torture 6645 source4/torture/rpc/samr.c status = torture_rpc_connection(torture, &p, &ndr_table_samr); torture 6650 source4/torture/rpc/samr.c ret &= test_Connect(p, torture, &handle); torture 6652 source4/torture/rpc/samr.c if (!torture_setting_bool(torture, "samba3", false)) { torture 6653 source4/torture/rpc/samr.c ret &= test_QuerySecurity(p, torture, &handle); torture 6656 source4/torture/rpc/samr.c ret &= test_EnumDomains(p, torture, &handle, TORTURE_SAMR_USER_ATTRIBUTES, NULL); torture 6658 source4/torture/rpc/samr.c ret &= test_SetDsrmPassword(p, torture, &handle); torture 6660 source4/torture/rpc/samr.c ret &= test_Shutdown(p, torture, &handle); torture 6662 source4/torture/rpc/samr.c ret &= test_samr_handle_Close(p, torture, &handle); torture 6668 source4/torture/rpc/samr.c bool torture_rpc_samr_passwords(struct torture_context *torture) torture 6675 source4/torture/rpc/samr.c status = torture_rpc_connection(torture, &p, &ndr_table_samr); torture 6680 source4/torture/rpc/samr.c ret &= test_Connect(p, torture, &handle); torture 6682 source4/torture/rpc/samr.c ret &= test_EnumDomains(p, torture, &handle, TORTURE_SAMR_PASSWORDS, NULL); torture 6684 source4/torture/rpc/samr.c ret &= test_samr_handle_Close(p, torture, &handle); torture 6689 source4/torture/rpc/samr.c static bool torture_rpc_samr_pwdlastset(struct torture_context *torture, torture 6698 source4/torture/rpc/samr.c status = torture_rpc_connection(torture, &p, &ndr_table_samr); torture 6703 source4/torture/rpc/samr.c ret &= test_Connect(p, torture, &handle); torture 6705 source4/torture/rpc/samr.c ret &= test_EnumDomains(p, torture, &handle, torture 6709 source4/torture/rpc/samr.c ret &= test_samr_handle_Close(p, torture, &handle); torture 6729 source4/torture/rpc/samr.c static bool torture_rpc_samr_users_privileges_delete_user(struct torture_context *torture, torture 6738 source4/torture/rpc/samr.c status = torture_rpc_connection(torture, &p, &ndr_table_samr); torture 6743 source4/torture/rpc/samr.c ret &= test_Connect(p, torture, &handle); torture 6745 source4/torture/rpc/samr.c ret &= test_EnumDomains(p, torture, &handle, torture 6749 source4/torture/rpc/samr.c ret &= test_samr_handle_Close(p, torture, &handle); torture 6769 source4/torture/rpc/samr.c static bool torture_rpc_samr_many_accounts(struct torture_context *torture, torture 6778 source4/torture/rpc/samr.c status = torture_rpc_connection(torture, &p, &ndr_table_samr); torture 6783 source4/torture/rpc/samr.c ret &= test_Connect(p, torture, &handle); torture 6785 source4/torture/rpc/samr.c ret &= test_EnumDomains(p, torture, &handle, torture 6789 source4/torture/rpc/samr.c ret &= test_samr_handle_Close(p, torture, &handle); torture 6794 source4/torture/rpc/samr.c static bool torture_rpc_samr_many_groups(struct torture_context *torture, torture 6803 source4/torture/rpc/samr.c status = torture_rpc_connection(torture, &p, &ndr_table_samr); torture 6808 source4/torture/rpc/samr.c ret &= test_Connect(p, torture, &handle); torture 6810 source4/torture/rpc/samr.c ret &= test_EnumDomains(p, torture, &handle, torture 6814 source4/torture/rpc/samr.c ret &= test_samr_handle_Close(p, torture, &handle); torture 6819 source4/torture/rpc/samr.c static bool torture_rpc_samr_many_aliases(struct torture_context *torture, torture 6828 source4/torture/rpc/samr.c status = torture_rpc_connection(torture, &p, &ndr_table_samr); torture 6833 source4/torture/rpc/samr.c ret &= test_Connect(p, torture, &handle); torture 6835 source4/torture/rpc/samr.c ret &= test_EnumDomains(p, torture, &handle, torture 6839 source4/torture/rpc/samr.c ret &= test_samr_handle_Close(p, torture, &handle); torture 1482 source4/torture/rpc/samsync.c bool torture_rpc_samsync(struct torture_context *torture) torture 1513 source4/torture/rpc/samsync.c join_ctx = torture_create_testuser(torture, test_machine_account, torture 1514 source4/torture/rpc/samsync.c lp_workgroup(torture->lp_ctx), ACB_SVRTRUST, torture 1523 source4/torture/rpc/samsync.c join_ctx2 = torture_create_testuser(torture, test_wksta_machine_account, lp_workgroup(torture->lp_ctx), ACB_WSTRUST, &wksta_machine_password); torture 1530 source4/torture/rpc/samsync.c user_ctx = torture_create_testuser(torture, TEST_USER_NAME, torture 1531 source4/torture/rpc/samsync.c lp_workgroup(torture->lp_ctx), torture 1555 source4/torture/rpc/samsync.c domain_policy = samsync_open_domain(mem_ctx, samsync_state, lp_workgroup(torture->lp_ctx), NULL); torture 1585 source4/torture/rpc/samsync.c status = torture_rpc_connection(torture, torture 1618 source4/torture/rpc/samsync.c status = torture_rpc_binding(torture, &b); torture 1630 source4/torture/rpc/samsync.c cli_credentials_set_domain(credentials, lp_workgroup(torture->lp_ctx), CRED_SPECIFIED); torture 1639 source4/torture/rpc/samsync.c credentials, torture->ev, torture->lp_ctx); torture 1655 source4/torture/rpc/samsync.c status = torture_rpc_binding(torture, &b_netlogon_wksta); torture 1667 source4/torture/rpc/samsync.c cli_credentials_set_domain(credentials_wksta, lp_workgroup(torture->lp_ctx), CRED_SPECIFIED); torture 1677 source4/torture/rpc/samsync.c credentials_wksta, torture->ev, torture->lp_ctx); torture 1692 source4/torture/rpc/samsync.c if (!test_DatabaseSync(torture, samsync_state, mem_ctx)) { torture 1708 source4/torture/rpc/samsync.c torture_leave_domain(torture, join_ctx); torture 1709 source4/torture/rpc/samsync.c torture_leave_domain(torture, join_ctx2); torture 1710 source4/torture/rpc/samsync.c torture_leave_domain(torture, user_ctx); torture 98 source4/torture/rpc/scanner.c bool torture_rpc_scanner(struct torture_context *torture) torture 107 source4/torture/rpc/scanner.c status = torture_rpc_binding(torture, &b); torture 113 source4/torture/rpc/scanner.c loop_ctx = talloc_named(torture, 0, "torture_rpc_scanner loop context"); torture 124 source4/torture/rpc/scanner.c status = dcerpc_epm_map_binding(torture, b, l->table, NULL, torture->lp_ctx); torture 135 source4/torture/rpc/scanner.c lp_set_cmdline(torture->lp_ctx, "torture:binding", dcerpc_binding_string(torture, b)); torture 137 source4/torture/rpc/scanner.c status = torture_rpc_connection(torture, &p, &ndr_table_mgmt); torture 144 source4/torture/rpc/scanner.c if (!test_inq_if_ids(torture, p, torture, test_num_calls, l->table)) { torture 417 source4/torture/rpc/schannel.c bool torture_rpc_schannel(struct torture_context *torture) torture 436 source4/torture/rpc/schannel.c if (!test_schannel(torture, torture 439 source4/torture/rpc/schannel.c torture_comment(torture, "Failed with acct_flags=0x%x dcerpc_flags=0x%x \n", torture 451 source4/torture/rpc/schannel.c bool torture_rpc_schannel2(struct torture_context *torture) torture 455 source4/torture/rpc/schannel.c const char *binding = torture_setting_string(torture, "binding", NULL); torture 461 source4/torture/rpc/schannel.c join_ctx = torture_join_domain(torture, talloc_asprintf(torture, "%s2", TEST_MACHINE_NAME), torture 463 source4/torture/rpc/schannel.c torture_assert(torture, join_ctx != NULL, torture 466 source4/torture/rpc/schannel.c credentials2 = (struct cli_credentials *)talloc_memdup(torture, credentials1, sizeof(*credentials1)); torture 470 source4/torture/rpc/schannel.c status = dcerpc_parse_binding(torture, binding, &b); torture 471 source4/torture/rpc/schannel.c torture_assert_ntstatus_ok(torture, status, "Bad binding string"); torture 477 source4/torture/rpc/schannel.c status = dcerpc_pipe_connect_b(torture, &p1, b, &ndr_table_netlogon, torture 478 source4/torture/rpc/schannel.c credentials1, torture->ev, torture->lp_ctx); torture 479 source4/torture/rpc/schannel.c torture_assert_ntstatus_ok(torture, status, "Failed to connect with schannel"); torture 481 source4/torture/rpc/schannel.c torture_comment(torture, "Opening second connection\n"); torture 482 source4/torture/rpc/schannel.c status = dcerpc_pipe_connect_b(torture, &p2, b, &ndr_table_netlogon, torture 483 source4/torture/rpc/schannel.c credentials2, torture->ev, torture->lp_ctx); torture 484 source4/torture/rpc/schannel.c torture_assert_ntstatus_ok(torture, status, "Failed to connect with schannel"); torture 489 source4/torture/rpc/schannel.c torture_comment(torture, "Testing logon on pipe1\n"); torture 490 source4/torture/rpc/schannel.c if (!test_netlogon_ex_ops(p1, torture, credentials1, NULL)) torture 493 source4/torture/rpc/schannel.c torture_comment(torture, "Testing logon on pipe2\n"); torture 494 source4/torture/rpc/schannel.c if (!test_netlogon_ex_ops(p2, torture, credentials2, NULL)) torture 497 source4/torture/rpc/schannel.c torture_comment(torture, "Again on pipe1\n"); torture 498 source4/torture/rpc/schannel.c if (!test_netlogon_ex_ops(p1, torture, credentials1, NULL)) torture 501 source4/torture/rpc/schannel.c torture_comment(torture, "Again on pipe2\n"); torture 502 source4/torture/rpc/schannel.c if (!test_netlogon_ex_ops(p2, torture, credentials2, NULL)) torture 505 source4/torture/rpc/schannel.c torture_leave_domain(torture, join_ctx); torture 669 source4/torture/rpc/schannel.c bool torture_rpc_schannel_bench1(struct torture_context *torture) torture 673 source4/torture/rpc/schannel.c const char *binding = torture_setting_string(torture, "binding", NULL); torture 680 source4/torture/rpc/schannel.c s = talloc_zero(torture, struct torture_schannel_bench); torture 681 source4/torture/rpc/schannel.c s->tctx = torture; torture 682 source4/torture/rpc/schannel.c s->progress = torture_setting_bool(torture, "progress", true); torture 683 source4/torture/rpc/schannel.c s->timelimit = torture_setting_int(torture, "timelimit", 10); torture 684 source4/torture/rpc/schannel.c s->nprocs = torture_setting_int(torture, "nprocs", 4); torture 704 source4/torture/rpc/schannel.c torture_assert(torture, s->join_ctx1 != NULL, torture 708 source4/torture/rpc/schannel.c torture_assert(torture, s->join_ctx2 != NULL, torture 719 source4/torture/rpc/schannel.c if ((i % 2) && (torture_setting_bool(torture, "multijoin", false))) { torture 727 source4/torture/rpc/schannel.c torture_assert_ntstatus_ok(torture, status, "Bad binding string"); torture 731 source4/torture/rpc/schannel.c torture_comment(torture, "Opening %d connections in parallel\n", s->nprocs); torture 737 source4/torture/rpc/schannel.c torture->ev, torture->lp_ctx); torture 738 source4/torture/rpc/schannel.c torture_assert_ntstatus_ok(torture, s->error, "Failed to connect with schannel"); torture 751 source4/torture/rpc/schannel.c torture->ev, torture 752 source4/torture/rpc/schannel.c torture->lp_ctx); torture 753 source4/torture/rpc/schannel.c torture_assert(torture, c != NULL, "Failed to setup connect"); torture 759 source4/torture/rpc/schannel.c int ev_ret = event_loop_once(torture->ev); torture 760 source4/torture/rpc/schannel.c torture_assert(torture, ev_ret == 0, "event_loop_once failed"); torture 763 source4/torture/rpc/schannel.c torture_assert_ntstatus_ok(torture, s->error, "Failed establish a connect"); torture 782 source4/torture/rpc/schannel.c torture->ev, torture->lp_ctx); torture 784 source4/torture/rpc/schannel.c torture_assert_ntstatus_ok(torture, status, torture 805 source4/torture/rpc/schannel.c status = dcerpc_netr_ServerPasswordSet(net_pipe, torture, &pwset); torture 806 source4/torture/rpc/schannel.c torture_assert_ntstatus_ok(torture, status, torture 827 source4/torture/rpc/schannel.c torture->ev, torture->lp_ctx); torture 829 source4/torture/rpc/schannel.c torture_assert_ntstatus_ok(torture, status, torture 835 source4/torture/rpc/schannel.c torture_comment(torture, "Start looping LogonSamLogonEx on %d connections for %d secs\n", torture 839 source4/torture/rpc/schannel.c torture_assert(torture, ret, "Failed to setup LogonSamLogonEx"); torture 846 source4/torture/rpc/schannel.c int ev_ret = event_loop_once(torture->ev); torture 847 source4/torture/rpc/schannel.c torture_assert(torture, ev_ret == 0, "event_loop_once failed"); torture 849 source4/torture/rpc/schannel.c torture_assert_ntstatus_ok(torture, s->error, "Failed some request"); torture 857 source4/torture/rpc/schannel.c torture_comment(torture, torture 862 source4/torture/rpc/schannel.c torture_leave_domain(torture, s->join_ctx1); torture 863 source4/torture/rpc/schannel.c torture_leave_domain(torture, s->join_ctx2); torture 144 source4/torture/rpc/session_key.c static bool test_secrets(struct torture_context *torture, const void *_data) torture 152 source4/torture/rpc/session_key.c lp_set_cmdline(torture->lp_ctx, "ntlmssp client:keyexchange", settings->keyexchange?"True":"False"); torture 153 source4/torture/rpc/session_key.c lp_set_cmdline(torture->lp_ctx, "ntlmssp_client:ntlm2", settings->ntlm2?"True":"False"); torture 154 source4/torture/rpc/session_key.c lp_set_cmdline(torture->lp_ctx, "ntlmssp_client:lm_key", settings->lm_key?"True":"False"); torture 156 source4/torture/rpc/session_key.c torture_assert_ntstatus_ok(torture, torture_rpc_binding(torture, &binding), torture 161 source4/torture/rpc/session_key.c torture_assert_ntstatus_ok(torture, torture 162 source4/torture/rpc/session_key.c dcerpc_pipe_connect_b(torture, &p, binding, torture 165 source4/torture/rpc/session_key.c torture->ev, torture 166 source4/torture/rpc/session_key.c torture->lp_ctx), torture 169 source4/torture/rpc/session_key.c if (!test_lsa_OpenPolicy2(p, torture, &handle)) { torture 173 source4/torture/rpc/session_key.c torture_assert(torture, handle, "OpenPolicy2 failed. This test cannot run against this server"); torture 175 source4/torture/rpc/session_key.c if (!test_CreateSecret_basic(p, torture, handle)) { torture 2003 source4/torture/rpc/spoolss.c bool torture_rpc_spoolss(struct torture_context *torture) torture 2010 source4/torture/rpc/spoolss.c status = torture_rpc_connection(torture, &p, &ndr_table_spoolss); torture 2015 source4/torture/rpc/spoolss.c ctx = talloc_zero(torture, struct test_spoolss_context); torture 2017 source4/torture/rpc/spoolss.c ret &= test_OpenPrinter_server(torture, p, ctx); torture 2019 source4/torture/rpc/spoolss.c ret &= test_GetPrinterData(torture, p, &ctx->server_handle, "W3SvcInstalled"); torture 2020 source4/torture/rpc/spoolss.c ret &= test_GetPrinterData(torture, p, &ctx->server_handle, "BeepEnabled"); torture 2021 source4/torture/rpc/spoolss.c ret &= test_GetPrinterData(torture, p, &ctx->server_handle, "EventLog"); torture 2022 source4/torture/rpc/spoolss.c ret &= test_GetPrinterData(torture, p, &ctx->server_handle, "NetPopup"); torture 2023 source4/torture/rpc/spoolss.c ret &= test_GetPrinterData(torture, p, &ctx->server_handle, "NetPopupToComputer"); torture 2024 source4/torture/rpc/spoolss.c ret &= test_GetPrinterData(torture, p, &ctx->server_handle, "MajorVersion"); torture 2025 source4/torture/rpc/spoolss.c ret &= test_GetPrinterData(torture, p, &ctx->server_handle, "MinorVersion"); torture 2026 source4/torture/rpc/spoolss.c ret &= test_GetPrinterData(torture, p, &ctx->server_handle, "DefaultSpoolDirectory"); torture 2027 source4/torture/rpc/spoolss.c ret &= test_GetPrinterData(torture, p, &ctx->server_handle, "Architecture"); torture 2028 source4/torture/rpc/spoolss.c ret &= test_GetPrinterData(torture, p, &ctx->server_handle, "DsPresent"); torture 2029 source4/torture/rpc/spoolss.c ret &= test_GetPrinterData(torture, p, &ctx->server_handle, "OSVersion"); torture 2030 source4/torture/rpc/spoolss.c ret &= test_GetPrinterData(torture, p, &ctx->server_handle, "OSVersionEx"); torture 2031 source4/torture/rpc/spoolss.c ret &= test_GetPrinterData(torture, p, &ctx->server_handle, "DNSMachineName"); torture 2032 source4/torture/rpc/spoolss.c ret &= test_EnumForms(torture, p, &ctx->server_handle, true); torture 2033 source4/torture/rpc/spoolss.c ret &= test_AddForm(torture, p, &ctx->server_handle, true); torture 2034 source4/torture/rpc/spoolss.c ret &= test_EnumPorts(torture, p, ctx); torture 2035 source4/torture/rpc/spoolss.c ret &= test_GetPrinterDriverDirectory(torture, p, ctx); torture 2036 source4/torture/rpc/spoolss.c ret &= test_GetPrintProcessorDirectory(torture, p, ctx); torture 2037 source4/torture/rpc/spoolss.c ret &= test_EnumPrinterDrivers(torture, p, ctx); torture 2038 source4/torture/rpc/spoolss.c ret &= test_EnumMonitors(torture, p, ctx); torture 2039 source4/torture/rpc/spoolss.c ret &= test_EnumPrintProcessors(torture, p, ctx); torture 2040 source4/torture/rpc/spoolss.c ret &= test_EnumPrintProcDataTypes(torture, p, ctx); torture 2041 source4/torture/rpc/spoolss.c ret &= test_EnumPrinters(torture, p, ctx); torture 2042 source4/torture/rpc/spoolss.c ret &= test_OpenPrinter_badname(torture, p, "__INVALID_PRINTER__"); torture 2043 source4/torture/rpc/spoolss.c ret &= test_OpenPrinter_badname(torture, p, "\\\\__INVALID_HOST__"); torture 2044 source4/torture/rpc/spoolss.c ret &= test_OpenPrinter_badname(torture, p, ""); torture 2045 source4/torture/rpc/spoolss.c ret &= test_OpenPrinter_badname(torture, p, "\\\\\\"); torture 2046 source4/torture/rpc/spoolss.c ret &= test_OpenPrinter_badname(torture, p, "\\\\\\__INVALID_PRINTER__"); torture 2047 source4/torture/rpc/spoolss.c ret &= test_OpenPrinter_badname(torture, p, talloc_asprintf(torture, "\\\\%s\\", dcerpc_server_name(p))); torture 2048 source4/torture/rpc/spoolss.c ret &= test_OpenPrinter_badname(torture, p, torture 2049 source4/torture/rpc/spoolss.c talloc_asprintf(torture, "\\\\%s\\__INVALID_PRINTER__", dcerpc_server_name(p))); torture 2052 source4/torture/rpc/spoolss.c ret &= test_AddPort(torture, p); torture 2053 source4/torture/rpc/spoolss.c ret &= test_EnumPorts_old(torture, p); torture 2054 source4/torture/rpc/spoolss.c ret &= test_EnumPrinters_old(torture, p); torture 2055 source4/torture/rpc/spoolss.c ret &= test_EnumPrinterDrivers_old(torture, p); torture 108 source4/torture/rpc/testjoin.c struct test_join *torture_create_testuser(struct torture_context *torture, torture 134 source4/torture/rpc/testjoin.c const char *dc_binding = torture_setting_string(torture, "dc_binding", NULL); torture 150 source4/torture/rpc/testjoin.c cmdline_credentials, NULL, torture->lp_ctx); torture 153 source4/torture/rpc/testjoin.c status = torture_rpc_connection(torture, torture 256 source4/torture/rpc/testjoin.c torture_leave_domain(torture, join); torture 286 source4/torture/rpc/testjoin.c lp_netbios_name(torture->lp_ctx), torture 304 source4/torture/rpc/testjoin.c torture_leave_domain(torture, join); torture 436 source4/torture/rpc/testjoin.c static NTSTATUS torture_leave_ads_domain(struct torture_context *torture, torture 459 source4/torture/rpc/testjoin.c ldb_ctx = ldb_init(tmp_ctx, torture->ev); torture 508 source4/torture/rpc/testjoin.c _PUBLIC_ void torture_leave_domain(struct torture_context *torture, struct test_join *join) torture 530 source4/torture/rpc/testjoin.c status = torture_leave_ads_domain(torture, join, join->libnet_r); torture 191 source4/torture/smb2/connect.c bool torture_smb2_connect(struct torture_context *torture) torture 199 source4/torture/smb2/connect.c if (!torture_smb2_connection(torture, &tree)) { torture 205 source4/torture/smb2/connect.c status = torture_smb2_write(torture, tree, h1); torture 49 source4/torture/smb2/create.c static bool test_create_gentest(struct torture_context *torture, struct smb2_tree *tree) torture 277 source4/torture/smb2/create.c static bool test_create_blob(struct torture_context *torture, struct smb2_tree *tree) torture 374 source4/torture/smb2/create.c static bool test_create_acl(struct torture_context *torture, struct smb2_tree *tree) torture 78 source4/torture/smb2/dir.c bool torture_smb2_dir(struct torture_context *torture) torture 84 source4/torture/smb2/dir.c if (!torture_smb2_connection(torture, &tree)) { torture 198 source4/torture/smb2/find.c bool torture_smb2_find(struct torture_context *torture) torture 205 source4/torture/smb2/find.c if (!torture_smb2_connection(torture, &tree)) { torture 204 source4/torture/smb2/getinfo.c bool torture_smb2_getinfo(struct torture_context *torture) torture 211 source4/torture/smb2/getinfo.c if (!torture_smb2_connection(torture, &tree)) { torture 229 source4/torture/smb2/getinfo.c ret &= torture_smb2_fileinfo(torture, tree); torture 47 source4/torture/smb2/lock.c static bool test_valid_request(struct torture_context *torture, struct smb2_tree *tree) torture 109 source4/torture/smb2/lock.c if (torture_setting_bool(torture, "windows", false)) { torture 122 source4/torture/smb2/lock.c if (torture_setting_bool(torture, "windows", false)) { torture 144 source4/torture/smb2/lock.c if (torture_setting_bool(torture, "windows", false)) { torture 155 source4/torture/smb2/lock.c if (torture_setting_bool(torture, "windows", false)) { torture 316 source4/torture/smb2/lock.c static bool test_lock_read_write(struct torture_context *torture, torture 442 source4/torture/smb2/lock.c static bool test_lock_rw_none(struct torture_context *torture, struct smb2_tree *tree) torture 453 source4/torture/smb2/lock.c return test_lock_read_write(torture, tree, &s); torture 456 source4/torture/smb2/lock.c static bool test_lock_rw_shared(struct torture_context *torture, struct smb2_tree *tree) torture 467 source4/torture/smb2/lock.c return test_lock_read_write(torture, tree, &s); torture 470 source4/torture/smb2/lock.c static bool test_lock_rw_exclusiv(struct torture_context *torture, struct smb2_tree *tree) torture 481 source4/torture/smb2/lock.c return test_lock_read_write(torture, tree, &s); torture 485 source4/torture/smb2/lock.c static bool test_lock_auto_unlock(struct torture_context *torture, struct smb2_tree *tree) torture 516 source4/torture/smb2/lock.c if (torture_setting_bool(torture, "windows", false)) { torture 72 source4/torture/smb2/maxwrite.c if (!torture_smb2_connection(torture, &tree)) { torture 114 source4/torture/smb2/maxwrite.c bool torture_smb2_maxwrite(struct torture_context *torture) torture 120 source4/torture/smb2/maxwrite.c if (!torture_smb2_connection(torture, &tree)) { torture 125 source4/torture/smb2/maxwrite.c status = torture_smb2_write(torture, tree, h1); torture 191 source4/torture/smb2/notify.c bool torture_smb2_notify(struct torture_context *torture) torture 196 source4/torture/smb2/notify.c if (!torture_smb2_connection(torture, &tree)) { torture 200 source4/torture/smb2/notify.c ret &= test_valid_request(torture, tree); torture 50 source4/torture/smb2/read.c static bool test_read_eof(struct torture_context *torture, struct smb2_tree *tree) torture 133 source4/torture/smb2/read.c static bool test_read_position(struct torture_context *torture, struct smb2_tree *tree) torture 166 source4/torture/smb2/read.c if (torture_setting_bool(torture, "windows", false)) { torture 178 source4/torture/smb2/read.c static bool test_read_dir(struct torture_context *torture, struct smb2_tree *tree) torture 208 source4/torture/smb2/read.c if (torture_setting_bool(torture, "windows", false)) { torture 218 source4/torture/smb2/read.c if (torture_setting_bool(torture, "windows", false)) { torture 40 source4/torture/smb2/scan.c bool torture_smb2_getinfo_scan(struct torture_context *torture) torture 48 source4/torture/smb2/scan.c if (!torture_smb2_connection(torture, &tree)) { torture 79 source4/torture/smb2/scan.c status = smb2_getinfo(tree, torture, &io); torture 89 source4/torture/smb2/scan.c status = smb2_getinfo(tree, torture, &io); torture 106 source4/torture/smb2/scan.c bool torture_smb2_setinfo_scan(struct torture_context *torture) torture 114 source4/torture/smb2/scan.c if (!torture_smb2_connection(torture, &tree)) { torture 128 source4/torture/smb2/scan.c io.in.blob = data_blob_talloc_zero(torture, 1024); torture 149 source4/torture/smb2/scan.c bool torture_smb2_find_scan(struct torture_context *torture) torture 157 source4/torture/smb2/scan.c if (!torture_smb2_connection(torture, &tree)) { torture 177 source4/torture/smb2/scan.c status = smb2_find(tree, torture, &io); torture 193 source4/torture/smb2/scan.c bool torture_smb2_scan(struct torture_context *torture) torture 197 source4/torture/smb2/scan.c const char *host = torture_setting_string(torture, "host", NULL); torture 198 source4/torture/smb2/scan.c const char *share = torture_setting_string(torture, "share", NULL); torture 205 source4/torture/smb2/scan.c lp_smbcli_options(torture->lp_ctx, &options); torture 208 source4/torture/smb2/scan.c lp_smb_ports(torture->lp_ctx), torture 210 source4/torture/smb2/scan.c lp_resolve_context(torture->lp_ctx), torture 211 source4/torture/smb2/scan.c credentials, &tree, torture->ev, &options, torture 212 source4/torture/smb2/scan.c lp_socket_options(torture->lp_ctx), torture 213 source4/torture/smb2/scan.c lp_gensec_settings(torture, torture->lp_ctx)); torture 228 source4/torture/smb2/scan.c lp_smb_ports(torture->lp_ctx), torture 230 source4/torture/smb2/scan.c lp_resolve_context(torture->lp_ctx), torture 231 source4/torture/smb2/scan.c credentials, &tree, torture->ev, &options, torture 232 source4/torture/smb2/scan.c lp_socket_options(torture->lp_ctx), torture 233 source4/torture/smb2/scan.c lp_gensec_settings(mem_ctx, torture->lp_ctx)); torture 39 source4/torture/smb2/setinfo.c bool torture_smb2_setinfo(struct torture_context *torture) torture 58 source4/torture/smb2/setinfo.c fname = talloc_asprintf(torture, BASEDIR "fnum_test_%d.txt", n); torture 59 source4/torture/smb2/setinfo.c fname_new = talloc_asprintf(torture, BASEDIR "fnum_test_new_%d.txt", n); torture 61 source4/torture/smb2/setinfo.c if (!torture_smb2_connection(torture, &tree)) { torture 98 source4/torture/smb2/setinfo.c status2 = smb2_getinfo_file(tree, torture, &finfo2); \ torture 124 source4/torture/smb2/setinfo.c printf("\t%s", timestring(torture, value)); \ torture 125 source4/torture/smb2/setinfo.c printf("\t%s\n", nt_time_string(torture, finfo2.stype.out.field)); \ torture 246 source4/torture/smb2/setinfo.c test_sid = dom_sid_parse_talloc(torture, "S-1-5-32-1234-5432"); torture 41 source4/torture/smbtorture.c static bool run_matching(struct torture_context *torture, torture 55 source4/torture/smbtorture.c reload_charcnv(torture->lp_ctx); torture 56 source4/torture/smbtorture.c ret &= torture_run_suite(torture, o); torture 60 source4/torture/smbtorture.c ret &= run_matching(torture, o->name, expr, o, matched); torture 72 source4/torture/smbtorture.c reload_charcnv(torture->lp_ctx); torture 73 source4/torture/smbtorture.c torture->active_testname = talloc_strdup(torture, prefix); torture 74 source4/torture/smbtorture.c ret &= torture_run_suite(torture, c); torture 79 source4/torture/smbtorture.c ret &= run_matching(torture, name, expr, c, matched); torture 88 source4/torture/smbtorture.c reload_charcnv(torture->lp_ctx); torture 89 source4/torture/smbtorture.c torture->active_testname = talloc_strdup(torture, prefix); torture 90 source4/torture/smbtorture.c ret &= torture_run_tcase(torture, t); torture 91 source4/torture/smbtorture.c talloc_free(torture->active_testname); torture 105 source4/torture/smbtorture.c static bool run_test(struct torture_context *torture, const char *name) torture 113 source4/torture/smbtorture.c ret &= torture_run_suite(torture, o); torture 118 source4/torture/smbtorture.c ret = run_matching(torture, NULL, name, NULL, &matched); torture 459 source4/torture/smbtorture.c struct torture_context *torture; torture 636 source4/torture/smbtorture.c torture = torture_context_init(s4_event_context_init(NULL), results); torture 642 source4/torture/smbtorture.c torture->outputdir = basedir; torture 644 source4/torture/smbtorture.c char *pwd = talloc_size(torture, PATH_MAX); torture 649 source4/torture/smbtorture.c torture->outputdir = pwd; torture 652 source4/torture/smbtorture.c torture->lp_ctx = cmdline_lp_ctx; torture 659 source4/torture/smbtorture.c run_shell(torture); torture 662 source4/torture/smbtorture.c if (!run_test(torture, argv_new[i])) { torture 668 source4/torture/smbtorture.c if (torture->results->returncode && correct) { torture 82 source4/torture/unix/unix_info2.c static bool check_unix_info2(struct torture_context *torture, torture 97 source4/torture/unix/unix_info2.c torture_result(torture, TORTURE_FAIL, torture 138 source4/torture/unix/unix_info2.c struct torture_context *torture, torture 157 source4/torture/unix/unix_info2.c torture_assert_ntstatus_equal(torture, result, NT_STATUS_OK, torture 177 source4/torture/unix/unix_info2.c if (!check_unix_info2(torture, info2)) { torture 185 source4/torture/unix/unix_info2.c struct torture_context *torture, torture 190 source4/torture/unix/unix_info2.c return query_file_path_info2(mem_ctx, torture, cli, torture 195 source4/torture/unix/unix_info2.c struct torture_context *torture, torture 200 source4/torture/unix/unix_info2.c return query_file_path_info2(mem_ctx, torture, cli, torture 229 source4/torture/unix/unix_info2.c struct torture_context *torture, torture 247 source4/torture/unix/unix_info2.c torture_assert_ntstatus_equal(torture, status, NT_STATUS_OK, torture 250 source4/torture/unix/unix_info2.c torture_assert_int_equal(torture, search.t2ffirst.out.count, 1, torture 252 source4/torture/unix/unix_info2.c torture_assert_int_equal(torture, search.t2ffirst.out.end_of_search, 1, torture 255 source4/torture/unix/unix_info2.c return check_unix_info2(torture, info2); torture 260 source4/torture/unix/unix_info2.c torture_result(torture, TORTURE_FAIL, \ torture 283 source4/torture/unix/unix_info2.c struct torture_context *torture, torture 294 source4/torture/unix/unix_info2.c if (!query_path_info2(mem_ctx, torture, cli, fname, &info2)) { torture 311 source4/torture/unix/unix_info2.c torture_assert_ntstatus_equal(torture, torture 315 source4/torture/unix/unix_info2.c if (!query_path_info2(mem_ctx, torture, cli, torture 327 source4/torture/unix/unix_info2.c torture_assert_ntstatus_equal(torture, torture 338 source4/torture/unix/unix_info2.c torture_assert_ntstatus_equal(torture, status, NT_STATUS_OK, torture 354 source4/torture/unix/unix_info2.c static bool match_info2(struct torture_context *torture, torture 360 source4/torture/unix/unix_info2.c torture_assert_u64_equal(torture, finfo->end_of_file, 0, torture 362 source4/torture/unix/unix_info2.c torture_assert_u64_equal(torture, finfo->num_bytes, 0, torture 365 source4/torture/unix/unix_info2.c torture_assert_u64_equal(torture, finfo->end_of_file, torture 367 source4/torture/unix/unix_info2.c torture_assert_u64_equal(torture, finfo->num_bytes, pinfo->num_bytes, torture 372 source4/torture/unix/unix_info2.c torture_assert_u64_equal(torture, finfo->status_change_time, torture 375 source4/torture/unix/unix_info2.c torture_assert_u64_equal(torture, finfo->change_time, torture 378 source4/torture/unix/unix_info2.c torture_assert_u64_equal(torture, finfo->uid, pinfo->uid, torture 380 source4/torture/unix/unix_info2.c torture_assert_u64_equal(torture, finfo->gid, pinfo->gid, torture 382 source4/torture/unix/unix_info2.c torture_assert_int_equal(torture, finfo->file_type, pinfo->file_type, torture 384 source4/torture/unix/unix_info2.c torture_assert_u64_equal(torture, finfo->dev_major, pinfo->dev_major, torture 386 source4/torture/unix/unix_info2.c torture_assert_u64_equal(torture, finfo->dev_minor, pinfo->dev_minor, torture 388 source4/torture/unix/unix_info2.c torture_assert_u64_equal(torture, finfo->unique_id, pinfo->unique_id, torture 390 source4/torture/unix/unix_info2.c torture_assert_u64_equal(torture, finfo->permissions, torture 392 source4/torture/unix/unix_info2.c torture_assert_u64_equal(torture, finfo->nlink, pinfo->nlink, torture 394 source4/torture/unix/unix_info2.c torture_assert_u64_equal(torture, finfo->create_time, pinfo->create_time, torture 403 source4/torture/unix/unix_info2.c bool unix_torture_unix_info2(struct torture_context *torture) torture 412 source4/torture/unix/unix_info2.c torture_assert(torture, mem_ctx != NULL, "out of memory"); torture 414 source4/torture/unix/unix_info2.c if (!(cli = connect_to_server(torture))) { torture 422 source4/torture/unix/unix_info2.c torture_assert(torture, fnum != -1, smbcli_errstr(cli->tree)); torture 425 source4/torture/unix/unix_info2.c if (!query_file_info2(mem_ctx, torture, cli, fnum, &finfo)) { torture 430 source4/torture/unix/unix_info2.c if (!query_path_info2(mem_ctx, torture, cli, FILENAME, &pinfo)) { torture 434 source4/torture/unix/unix_info2.c if (!match_info2(torture, &pinfo, &finfo)) { torture 439 source4/torture/unix/unix_info2.c if (!find_single_info2(mem_ctx, torture, cli, FILENAME, &pinfo)) { torture 443 source4/torture/unix/unix_info2.c if (!match_info2(torture, &pinfo, &finfo)) { torture 449 source4/torture/unix/unix_info2.c if (!verify_setinfo_flags(mem_ctx, torture, cli, FILENAME)) { torture 103 source4/torture/unix/whoami.c struct torture_context *torture, torture 111 source4/torture/unix/whoami.c torture_assert(torture, *psid != NULL, "out of memory"); torture 113 source4/torture/unix/whoami.c torture_assert(torture, remain >= 8, torture 123 source4/torture/unix/whoami.c torture_assert(torture, remain >= ((*psid)->num_auths * 4), torture 125 source4/torture/unix/whoami.c torture_assert(torture, (*psid)->num_auths >= 0, torture 127 source4/torture/unix/whoami.c torture_assert(torture, (*psid)->num_auths <= 15, torture 139 source4/torture/unix/whoami.c struct torture_context *torture, torture 167 source4/torture/unix/whoami.c torture_assert_ntstatus_equal(torture, status, NT_STATUS_OK, torture 171 source4/torture/unix/whoami.c torture_assert(torture, tp.out.params.length == 0, torture 173 source4/torture/unix/whoami.c torture_assert(torture, tp.out.data.length >= WHOAMI_REQUIRED_SIZE, torture 189 source4/torture/unix/whoami.c torture_assert(torture, whoami->num_sid_bytes != 0, torture 203 source4/torture/unix/whoami.c torture_assert_int_equal(torture, whoami->reserved, 0, torture 208 source4/torture/unix/whoami.c torture_assert_int_equal(torture, whoami->num_gids, 0, torture 210 source4/torture/unix/whoami.c torture_assert_int_equal(torture, whoami->num_sids, 0, torture 212 source4/torture/unix/whoami.c torture_assert_int_equal(torture, whoami->num_sid_bytes, 0, torture 222 source4/torture/unix/whoami.c torture_assert_int_equal(torture, remain, gid_bytes, torture 225 source4/torture/unix/whoami.c torture_assert(torture, remain > gid_bytes, torture 230 source4/torture/unix/whoami.c torture_assert(torture, whoami->gid_list != NULL, "out of memory"); torture 240 source4/torture/unix/whoami.c torture_assert_int_equal(torture, whoami->num_sids, 0, torture 246 source4/torture/unix/whoami.c torture_assert_int_equal(torture, torture 254 source4/torture/unix/whoami.c torture_assert(torture, whoami->sid_list != NULL, torture 258 source4/torture/unix/whoami.c if (!sid_parse(mem_ctx, torture, torture 268 source4/torture/unix/whoami.c torture_assert_int_equal(torture, tp.out.data.length, offset, torture 274 source4/torture/unix/whoami.c bool torture_unix_whoami(struct torture_context *torture) torture 280 source4/torture/unix/whoami.c if (!(cli = connect_to_server(torture, cmdline_credentials))) { torture 286 source4/torture/unix/whoami.c if (!smb_raw_query_posix_whoami(torture, torture, torture 294 source4/torture/unix/whoami.c if (!smb_raw_query_posix_whoami(torture, torture, torture 300 source4/torture/unix/whoami.c torture_assert_int_equal(torture, whoami.num_gids, 0, torture 302 source4/torture/unix/whoami.c torture_assert_int_equal(torture, whoami.num_sids, 0, torture 304 source4/torture/unix/whoami.c torture_assert_int_equal(torture, whoami.num_sid_bytes, 0, torture 310 source4/torture/unix/whoami.c anon_credentials = cli_credentials_init_anon(torture); torture 312 source4/torture/unix/whoami.c if (!(cli = connect_to_server(torture, anon_credentials))) { torture 316 source4/torture/unix/whoami.c if (!smb_raw_query_posix_whoami(torture, torture, torture 330 source4/torture/unix/whoami.c torture_assert(torture, whoami.mapping_flags & SMB_WHOAMI_GUEST, torture 738 source4/torture/util_smb.c static bool wrap_smb_multi_test(struct torture_context *torture, torture 745 source4/torture/util_smb.c torture_create_procs(torture, fn, &result); torture 36 source4/torture/winbind/struct_based.c torture_result(torture, TORTURE_FAIL, \ torture 44 source4/torture/winbind/struct_based.c torture_warning(torture, \ torture 60 source4/torture/winbind/struct_based.c static bool torture_winbind_struct_interface_version(struct torture_context *torture) torture 68 source4/torture/winbind/struct_based.c torture_comment(torture, "Running WINBINDD_INTERFACE_VERSION (struct based)\n"); torture 72 source4/torture/winbind/struct_based.c torture_assert_int_equal(torture, torture 80 source4/torture/winbind/struct_based.c static bool torture_winbind_struct_ping(struct torture_context *torture) torture 83 source4/torture/winbind/struct_based.c int timelimit = torture_setting_int(torture, "timelimit", 5); torture 86 source4/torture/winbind/struct_based.c torture_comment(torture, torture 95 source4/torture/winbind/struct_based.c torture_comment(torture, torture 103 source4/torture/winbind/struct_based.c static char winbind_separator(struct torture_context *torture) torture 114 source4/torture/winbind/struct_based.c static bool torture_winbind_struct_info(struct torture_context *torture) torture 121 source4/torture/winbind/struct_based.c torture_comment(torture, "Running WINBINDD_INFO (struct based)\n"); torture 125 source4/torture/winbind/struct_based.c separator = torture_setting_string(torture, torture 127 source4/torture/winbind/struct_based.c lp_winbind_separator(torture->lp_ctx)); torture 128 source4/torture/winbind/struct_based.c torture_assert_int_equal(torture, torture 133 source4/torture/winbind/struct_based.c torture_comment(torture, "Samba Version '%s'\n", torture 139 source4/torture/winbind/struct_based.c static bool torture_winbind_struct_priv_pipe_dir(struct torture_context *torture) torture 146 source4/torture/winbind/struct_based.c torture_comment(torture, "Running WINBINDD_PRIV_PIPE_DIR (struct based)\n"); torture 152 source4/torture/winbind/struct_based.c torture_assert(torture, got_dir, "NULL WINBINDD_PRIV_PIPE_DIR\n"); torture 158 source4/torture/winbind/struct_based.c static bool torture_winbind_struct_netbios_name(struct torture_context *torture) torture 165 source4/torture/winbind/struct_based.c torture_comment(torture, "Running WINBINDD_NETBIOS_NAME (struct based)\n"); torture 169 source4/torture/winbind/struct_based.c expected = torture_setting_string(torture, torture 171 source4/torture/winbind/struct_based.c lp_netbios_name(torture->lp_ctx)); torture 172 source4/torture/winbind/struct_based.c expected = strupper_talloc(torture, expected); torture 174 source4/torture/winbind/struct_based.c torture_assert_str_equal(torture, torture 181 source4/torture/winbind/struct_based.c static bool get_winbind_domain(struct torture_context *torture, char **domain) torture 189 source4/torture/winbind/struct_based.c *domain = talloc_strdup(torture, rep.data.domain_name); torture 190 source4/torture/winbind/struct_based.c torture_assert(torture, domain, "talloc error"); torture 195 source4/torture/winbind/struct_based.c static bool torture_winbind_struct_domain_name(struct torture_context *torture) torture 200 source4/torture/winbind/struct_based.c torture_comment(torture, "Running WINBINDD_DOMAIN_NAME (struct based)\n"); torture 202 source4/torture/winbind/struct_based.c expected = torture_setting_string(torture, torture 204 source4/torture/winbind/struct_based.c lp_workgroup(torture->lp_ctx)); torture 206 source4/torture/winbind/struct_based.c get_winbind_domain(torture, &domain); torture 208 source4/torture/winbind/struct_based.c torture_assert_str_equal(torture, domain, expected, torture 214 source4/torture/winbind/struct_based.c static bool torture_winbind_struct_check_machacc(struct torture_context *torture) torture 217 source4/torture/winbind/struct_based.c bool strict = torture_setting_bool(torture, "strict mode", false); torture 222 source4/torture/winbind/struct_based.c torture_comment(torture, "Running WINBINDD_CHECK_MACHACC (struct based)\n"); torture 230 source4/torture/winbind/struct_based.c torture_assert(torture, torture 234 source4/torture/winbind/struct_based.c torture_warning(torture,"%s:%s:%s:%d\n", torture 242 source4/torture/winbind/struct_based.c torture_assert_ntstatus_ok(torture, torture 246 source4/torture/winbind/struct_based.c torture_assert_str_equal(torture, torture 251 source4/torture/winbind/struct_based.c torture_assert_str_equal(torture, torture 256 source4/torture/winbind/struct_based.c torture_assert_int_equal(torture, torture 270 source4/torture/winbind/struct_based.c static bool get_trusted_domains(struct torture_context *torture, torture 290 source4/torture/winbind/struct_based.c torture_assert(torture, extra_data, "NULL trust list"); torture 295 source4/torture/winbind/struct_based.c d = talloc_realloc(torture, d, torture 302 source4/torture/winbind/struct_based.c torture_assert(torture, p, "missing 1st '\\' in line"); torture 305 source4/torture/winbind/struct_based.c torture_assert(torture, strlen(d[dcount].netbios_name) > 0, torture 310 source4/torture/winbind/struct_based.c torture_assert(torture, p, "missing 2nd '\\' in line"); torture 317 source4/torture/winbind/struct_based.c torture_assert(torture, d[dcount].sid, torture 324 source4/torture/winbind/struct_based.c torture_assert(torture, dcount >= 2, torture 331 source4/torture/winbind/struct_based.c static bool torture_winbind_struct_list_trustdom(struct torture_context *torture) torture 341 source4/torture/winbind/struct_based.c torture_comment(torture, "Running WINBINDD_LIST_TRUSTDOM (struct based)\n"); torture 352 source4/torture/winbind/struct_based.c torture_comment(torture, "%s\n", list1); torture 366 source4/torture/winbind/struct_based.c torture_assert_str_equal(torture, list2, list1, "list_all_domains not ignored"); torture 371 source4/torture/winbind/struct_based.c ok = get_trusted_domains(torture, &listd); torture 372 source4/torture/winbind/struct_based.c torture_assert(torture, ok, "failed to get trust list"); torture 378 source4/torture/winbind/struct_based.c builtin_sid = dom_sid_parse_talloc(torture, SID_BUILTIN); torture 380 source4/torture/winbind/struct_based.c torture_assert_str_equal(torture, torture 385 source4/torture/winbind/struct_based.c torture_assert_str_equal(torture, torture 392 source4/torture/winbind/struct_based.c torture_assert(torture, ok, "BUILTIN domain should have S-1-5-32"); torture 406 source4/torture/winbind/struct_based.c static bool torture_winbind_struct_domain_info(struct torture_context *torture) torture 412 source4/torture/winbind/struct_based.c torture_comment(torture, "Running WINBINDD_DOMAIN_INFO (struct based)\n"); torture 414 source4/torture/winbind/struct_based.c ok = get_trusted_domains(torture, &listd); torture 415 source4/torture/winbind/struct_based.c torture_assert(torture, ok, "failed to get trust list"); torture 421 source4/torture/winbind/struct_based.c char *flagstr = talloc_strdup(torture," "); torture 430 source4/torture/winbind/struct_based.c torture_assert_str_equal(torture, torture 435 source4/torture/winbind/struct_based.c torture_assert_str_equal(torture, torture 440 source4/torture/winbind/struct_based.c sid = dom_sid_parse_talloc(torture, rep.data.domain_info.sid); torture 441 source4/torture/winbind/struct_based.c torture_assert(torture, sid, "Failed to parse SID"); torture 444 source4/torture/winbind/struct_based.c torture_assert(torture, ok, "SID's doesn't match"); torture 451 source4/torture/winbind/struct_based.c torture_assert(torture, torture 458 source4/torture/winbind/struct_based.c torture_assert(torture, torture 464 source4/torture/winbind/struct_based.c torture_comment(torture, "DOMAIN '%s' => '%s' [%s]\n", torture 473 source4/torture/winbind/struct_based.c static bool torture_winbind_struct_getdcname(struct torture_context *torture) torture 476 source4/torture/winbind/struct_based.c bool strict = torture_setting_bool(torture, "strict mode", false); torture 480 source4/torture/winbind/struct_based.c torture_comment(torture, "Running WINBINDD_GETDCNAME (struct based)\n"); torture 482 source4/torture/winbind/struct_based.c ok = get_trusted_domains(torture, &listd); torture 483 source4/torture/winbind/struct_based.c torture_assert(torture, ok, "failed to get trust list"); torture 498 source4/torture/winbind/struct_based.c talloc_asprintf(torture, "DOMAIN '%s'", torture 503 source4/torture/winbind/struct_based.c torture_comment(torture, "DOMAIN '%s' => DCNAME '%s'\n", torture 509 source4/torture/winbind/struct_based.c torture_assert(torture, count > 0, torture 515 source4/torture/winbind/struct_based.c static bool torture_winbind_struct_dsgetdcname(struct torture_context *torture) torture 518 source4/torture/winbind/struct_based.c bool strict = torture_setting_bool(torture, "strict mode", false); torture 523 source4/torture/winbind/struct_based.c torture_comment(torture, "Running WINBINDD_DSGETDCNAME (struct based)\n"); torture 525 source4/torture/winbind/struct_based.c ok = get_trusted_domains(torture, &listd); torture 526 source4/torture/winbind/struct_based.c torture_assert(torture, ok, "failed to get trust list"); torture 554 source4/torture/winbind/struct_based.c talloc_asprintf(torture, "DOMAIN '%s'", torture 559 source4/torture/winbind/struct_based.c torture_comment(torture, "DOMAIN '%s' => DCNAME '%s'\n", torture 566 source4/torture/winbind/struct_based.c torture_warning(torture, "WINBINDD_DSGETDCNAME" torture 572 source4/torture/winbind/struct_based.c torture_assert(torture, count > 0, torture 579 source4/torture/winbind/struct_based.c static bool get_user_list(struct torture_context *torture, char ***users) torture 594 source4/torture/winbind/struct_based.c torture_assert(torture, extra_data, "NULL extra data"); torture 600 source4/torture/winbind/struct_based.c u = talloc_realloc(torture, u, char *, count + 2); torture 611 source4/torture/winbind/struct_based.c static bool torture_winbind_struct_list_users(struct torture_context *torture) torture 617 source4/torture/winbind/struct_based.c torture_comment(torture, "Running WINBINDD_LIST_USERS (struct based)\n"); torture 619 source4/torture/winbind/struct_based.c ok = get_user_list(torture, &users); torture 620 source4/torture/winbind/struct_based.c torture_assert(torture, ok, "failed to get group list"); torture 624 source4/torture/winbind/struct_based.c torture_comment(torture, "got %d users\n", count); torture 629 source4/torture/winbind/struct_based.c static bool get_group_list(struct torture_context *torture, char ***groups) torture 644 source4/torture/winbind/struct_based.c torture_assert(torture, extra_data, "NULL extra data"); torture 650 source4/torture/winbind/struct_based.c g = talloc_realloc(torture, g, char *, count + 2); torture 661 source4/torture/winbind/struct_based.c static bool torture_winbind_struct_list_groups(struct torture_context *torture) torture 667 source4/torture/winbind/struct_based.c torture_comment(torture, "Running WINBINDD_LIST_GROUPS (struct based)\n"); torture 669 source4/torture/winbind/struct_based.c ok = get_group_list(torture, &groups); torture 670 source4/torture/winbind/struct_based.c torture_assert(torture, ok, "failed to get group list"); torture 674 source4/torture/winbind/struct_based.c torture_comment(torture, "got %d groups\n", count); torture 684 source4/torture/winbind/struct_based.c static bool get_sequence_numbers(struct torture_context *torture, torture 700 source4/torture/winbind/struct_based.c torture_assert(torture, extra_data, "NULL sequence list"); torture 706 source4/torture/winbind/struct_based.c s = talloc_realloc(torture, s, struct torture_domain_sequence, torture 712 source4/torture/winbind/struct_based.c torture_assert(torture, p, "invalid line format"); torture 717 source4/torture/winbind/struct_based.c torture_assert(torture, strncmp(lp, ": ", 2) == 0, torture 724 source4/torture/winbind/struct_based.c torture_assert(torture, (*p == '\0'), torture 726 source4/torture/winbind/struct_based.c torture_assert(torture, (seq != (uint32_t)-1), torture 735 source4/torture/winbind/struct_based.c torture_assert(torture, count >= 2, "The list of domain sequence " torture 742 source4/torture/winbind/struct_based.c static bool torture_winbind_struct_show_sequence(struct torture_context *torture) torture 749 source4/torture/winbind/struct_based.c torture_comment(torture, "Running WINBINDD_SHOW_SEQUENCE (struct based)\n"); torture 751 source4/torture/winbind/struct_based.c ok = get_sequence_numbers(torture, &s); torture 752 source4/torture/winbind/struct_based.c torture_assert(torture, ok, "failed to get list of sequence numbers"); torture 754 source4/torture/winbind/struct_based.c ok = get_trusted_domains(torture, &domlist); torture 755 source4/torture/winbind/struct_based.c torture_assert(torture, ok, "failed to get trust list"); torture 762 source4/torture/winbind/struct_based.c torture_assert(torture, s[i].netbios_name, torture 764 source4/torture/winbind/struct_based.c torture_assert_str_equal(torture, domlist[i].netbios_name, torture 777 source4/torture/winbind/struct_based.c torture_assert(torture, (seq != (uint32_t)-1), torture 780 source4/torture/winbind/struct_based.c torture_assert(torture, (seq != (uint32_t)-1), torture 786 source4/torture/winbind/struct_based.c torture_comment(torture, " * %s : DISCONNECTED\n", torture 789 source4/torture/winbind/struct_based.c torture_comment(torture, " * %s : %d\n", torture 792 source4/torture/winbind/struct_based.c torture_assert(torture, (seq >= s[i].seq), torture 799 source4/torture/winbind/struct_based.c static bool torture_winbind_struct_setpwent(struct torture_context *torture) torture 804 source4/torture/winbind/struct_based.c torture_comment(torture, "Running WINBINDD_SETPWENT (struct based)\n"); torture 814 source4/torture/winbind/struct_based.c static bool torture_winbind_struct_getpwent(struct torture_context *torture) torture 820 source4/torture/winbind/struct_based.c torture_comment(torture, "Running WINBINDD_GETPWENT (struct based)\n"); torture 822 source4/torture/winbind/struct_based.c torture_comment(torture, " - Running WINBINDD_SETPWENT first\n"); torture 827 source4/torture/winbind/struct_based.c torture_comment(torture, " - Running WINBINDD_GETPWENT now\n"); torture 833 source4/torture/winbind/struct_based.c torture_assert(torture, (pwent != NULL), "NULL pwent"); torture 834 source4/torture/winbind/struct_based.c torture_comment(torture, "name: %s, uid: %d, gid: %d, shell: %s\n", torture 841 source4/torture/winbind/struct_based.c static bool torture_winbind_struct_endpwent(struct torture_context *torture) torture 846 source4/torture/winbind/struct_based.c torture_comment(torture, "Running WINBINDD_ENDPWENT (struct based)\n"); torture 859 source4/torture/winbind/struct_based.c static bool parse_domain_user(struct torture_context *torture, torture 863 source4/torture/winbind/struct_based.c char *p = strchr(domuser, winbind_separator(torture)); torture 875 source4/torture/winbind/struct_based.c get_winbind_domain(torture, &dom); torture 888 source4/torture/winbind/struct_based.c static bool lookup_name_sid_list(struct torture_context *torture, char **list) torture 901 source4/torture/winbind/struct_based.c parse_domain_user(torture, list[count], req.data.name.dom_name, torture 906 source4/torture/winbind/struct_based.c sid = talloc_strdup(torture, rep.data.sid.sid); torture 915 source4/torture/winbind/struct_based.c name = talloc_asprintf(torture, "%s%c%s", torture 917 source4/torture/winbind/struct_based.c winbind_separator(torture), torture 920 source4/torture/winbind/struct_based.c torture_assert_casestr_equal(torture, list[count], name, torture 924 source4/torture/winbind/struct_based.c torture_comment(torture, " %s -> %s -> %s\n", list[count], torture 947 source4/torture/winbind/struct_based.c static bool torture_winbind_struct_lookup_name_sid(struct torture_context *torture) torture 955 source4/torture/winbind/struct_based.c bool strict = torture_setting_bool(torture, "strict mode", false); torture 961 source4/torture/winbind/struct_based.c torture_comment(torture, "Running WINBINDD_LOOKUP_NAME_SID (struct based)\n"); torture 963 source4/torture/winbind/struct_based.c ok = get_user_list(torture, &users); torture 964 source4/torture/winbind/struct_based.c torture_assert(torture, ok, "failed to retrieve list of users"); torture 965 source4/torture/winbind/struct_based.c lookup_name_sid_list(torture, users); torture 967 source4/torture/winbind/struct_based.c ok = get_group_list(torture, &groups); torture 968 source4/torture/winbind/struct_based.c torture_assert(torture, ok, "failed to retrieve list of groups"); torture 969 source4/torture/winbind/struct_based.c lookup_name_sid_list(torture, groups); torture 981 source4/torture/winbind/struct_based.c talloc_asprintf(torture, torture 991 source4/torture/winbind/struct_based.c get_winbind_domain(torture, &domain); torture 994 source4/torture/winbind/struct_based.c invalid_name = talloc_asprintf(torture, "%s\\%s%u", torture 1002 source4/torture/winbind/struct_based.c talloc_asprintf(torture, "%s%u", invalid_user, torture 1010 source4/torture/winbind/struct_based.c talloc_asprintf(torture,