Changeset 920 for trunk/server/source4/torture/raw
- Timestamp:
- Jun 9, 2016, 2:23:12 PM (9 years ago)
- Location:
- trunk/server
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server
- Property svn:mergeinfo changed
/vendor/current merged: 919
- Property svn:mergeinfo changed
-
trunk/server/source4/torture/raw/samba3misc.c
r918 r920 341 341 TALLOC_CTX *mem_ctx; 342 342 bool nt_status_support; 343 bool client_ntlmv2_auth; 343 344 344 345 if (!(mem_ctx = talloc_init("torture_samba3_badpath"))) { … … 348 349 349 350 nt_status_support = lpcfg_nt_status_support(torture->lp_ctx); 350 351 if (!lpcfg_set_cmdline(torture->lp_ctx, "nt status support", "yes")) { 352 printf("Could not set 'nt status support = yes'\n"); 353 goto fail; 354 } 351 client_ntlmv2_auth = lpcfg_client_ntlmv2_auth(torture->lp_ctx); 352 353 torture_assert_goto(torture, lpcfg_set_cmdline(torture->lp_ctx, "nt status support", "yes"), ret, fail, "Could not set 'nt status support = yes'\n"); 354 torture_assert_goto(torture, lpcfg_set_cmdline(torture->lp_ctx, "client ntlmv2 auth", "yes"), ret, fail, "Could not set 'client ntlmv2 auth = yes'\n"); 355 355 356 356 if (!torture_open_connection(&cli_nt, torture, 0)) { … … 358 358 } 359 359 360 if (!lpcfg_set_cmdline(torture->lp_ctx, "nt status support", "no")) { 361 printf("Could not set 'nt status support = yes'\n"); 362 goto fail; 363 } 360 torture_assert_goto(torture, lpcfg_set_cmdline(torture->lp_ctx, "nt status support", "no"), ret, fail, "Could not set 'nt status support = no'\n"); 361 torture_assert_goto(torture, lpcfg_set_cmdline(torture->lp_ctx, "client ntlmv2 auth", "no"), ret, fail, "Could not set 'client ntlmv2 auth = no'\n"); 364 362 365 363 if (!torture_open_connection(&cli_dos, torture, 1)) { … … 374 372 375 373 smbcli_deltree(cli_nt->tree, dirname); 374 torture_assert_goto(torture, lpcfg_set_cmdline(torture->lp_ctx, "nt status support", 375 nt_status_support ? "yes":"no"), 376 ret, fail, "Could not set 'nt status support' back to where it was\n"); 377 torture_assert_goto(torture, lpcfg_set_cmdline(torture->lp_ctx, "client ntlmv2 auth", 378 client_ntlmv2_auth ? "yes":"no"), 379 ret, fail, "Could not set 'client ntlmv2 auth' back to where it was\n"); 376 380 377 381 status = smbcli_mkdir(cli_nt->tree, dirname);
Note:
See TracChangeset
for help on using the changeset viewer.