summaryrefslogtreecommitdiffstats
path: root/source3/torture
Commit message (Collapse)AuthorAgeFilesLines
* s3-torture: run_locktest5(): replace cli_lock() with cli_lock32()Björn Baumbach2011-07-181-11/+15
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-torture: run_locktest4(): replace cli_lock() with cli_lock32()Björn Baumbach2011-07-181-37/+44
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-torture: run_oplock2(): replace cli_lock() with cli_lock32()Björn Baumbach2011-07-181-5/+6
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-torture: run_locktest9(): replace cli_lock() with cli_lock32()Björn Baumbach2011-07-181-3/+5
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-torture: run_locktest8(): replace cli_lock() with cli_lock32()Björn Baumbach2011-07-181-2/+3
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-torture: run_locktest7(): replace cli_lock() with cli_lock32()Björn Baumbach2011-07-181-4/+6
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-torture: run_locktest3(): replace cli_lock() with cli_lock32()Björn Baumbach2011-07-181-8/+15
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-torture: run_locktest2(): replace check_error() with check_both_error()Björn Baumbach2011-07-111-10/+14
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-torture: run_locktest2(): replace cli_lock() with cli_lock32()Björn Baumbach2011-07-111-20/+35
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-torture: run_locktest1(): replace cli_lock() with cli_lock32()Björn Baumbach2011-07-111-17/+25
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-torture: locktest2: replace cli_lock() with cli_lock32()Björn Baumbach2011-07-111-1/+2
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-torture: let wait_lock() use cli_lock32() instead of cli_lock()Björn Baumbach2011-07-111-3/+13
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-libsmb: let cli_lock64 return NTSTATUS instead of boolBjörn Baumbach2011-07-111-9/+7
| | | | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Jul 11 12:48:38 CEST 2011 on sn-devel-104
* s3:torture: use cli_is_nt/dos_error() in run_error_map_extract()Stefan Metzmacher2011-07-081-12/+10
| | | | | | Callers should avoid using cli->inbuf directly! metze
* s3:torture: add SMB2-BASICStefan Metzmacher2011-07-083-1/+150
| | | | | | Based on the initial patch from Volker Lendecke <vl@samba.org>. metze
* s3-torture: run_shortname_test: Remove uses of cli_errstr()Björn Baumbach2011-07-071-3/+3
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-torture: run_simple_posix_open_test: Remove uses of cli_errstr()Björn Baumbach2011-07-071-21/+31
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-torture: use nt_errstr() for cli_unlink() error handlingStefan Metzmacher2011-07-071-1/+3
| | | | | | | Use nt_errstr() instead of cli_errstr() for error handling on cli_unlink() calls. Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-torture: introduce check_both_error()Björn Baumbach2011-07-071-0/+34
| | | | | | | Check if the server produced the expected dos or nt error code like check_error(), but without a cli_state struct. Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:torture/scanner: use trans2_bytes_push_str() in scan_nttrans()Stefan Metzmacher2011-07-071-14/+52
| | | | metze
* s3:torture/scanner: use trans2_bytes_push_str() in scan_trans2()Stefan Metzmacher2011-07-071-14/+52
| | | | metze
* s3:libsmb: use clistr_pull_talloc() for short_name in interpret_long_filename()Stefan Metzmacher2011-07-072-3/+4
| | | | metze
* s3: Remove a use of cli_errstrVolker Lendecke2011-07-071-2/+6
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Thu Jul 7 18:04:26 CEST 2011 on sn-devel-104
* s3:libsmb: use clistr_pull_talloc() in cli_qfilename()Stefan Metzmacher2011-07-061-2/+2
| | | | metze
* s3:libsmb: let cli_qfileinfo[_recv]() return recv_flags2Stefan Metzmacher2011-07-061-1/+1
| | | | metze
* Use tevent_req_oomVolker Lendecke2011-06-201-1/+1
| | | | This fixes a few Coverity errors
* tdb_compat: Higher level API fixes.Rusty Russell2011-06-201-4/+4
| | | | | | | | | | | | My previous patches fixed up all direct TDB callers, but there are a few utility functions and the db_context functions which are still using the old -1 / 0 return codes. It's clearer to fix up all the callers of these too, so everywhere is consistent: non-zero means an error. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb_compat: use tdb_open_compat.Rusty Russell2011-06-201-1/+1
| | | | | | | | | This is a helper for the common case of opening a tdb with a logging function, but it doesn't do all the work, since TDB1 and TDB2's log functions are different types. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* s3: Test nttrans_createVolker Lendecke2011-06-193-0/+110
| | | | This is a test for the share security descriptor exception for nttrans_create
* s3-passdb: Implement new pdb trust calls for the default backendSumit Bose2011-06-121-0/+83
| | | | | | | Signed-off-by: Simo Sorce <idra@samba.org> Autobuild-User: Simo Sorce <idra@samba.org> Autobuild-Date: Sun Jun 12 06:45:25 CEST 2011 on sn-devel-104
* s3-param Remove special case for global_myname(), rename to lp_netbios_name()Andrew Bartlett2011-06-091-1/+1
| | | | | | | | There is no reason this can't be a normal constant string in the loadparm system, now that we have lp_set_cmdline() to handle overrides correctly. Andrew Bartlett
* s3-talloc Change TALLOC_ZERO_P() to talloc_zero()Andrew Bartlett2011-06-091-1/+1
| | | | | Using the standard macro makes it easier to move code into common, as TALLOC_ZERO_P isn't standard talloc.
* s3-talloc Change TALLOC_P() to talloc()Andrew Bartlett2011-06-092-2/+2
| | | | | Using the standard macro makes it easier to move code into common, as TALLOC_P isn't standard talloc.
* s3-talloc Change TALLOC_ARRAY() to talloc_array()Andrew Bartlett2011-06-093-5/+5
| | | | | Using the standard macro makes it easier to move code into common, as TALLOC_ARRAY isn't standard talloc.
* Remove the char * argument from the SMB_VFS_GETWD() call. Now alwaysJeremy Allison2011-06-011-2/+3
| | | | | | | returns malloc'ed memory. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Jun 1 04:06:12 CEST 2011 on sn-devel-104
* s3-globals Remove smbd_event_context() (use server_event_context())Andrew Bartlett2011-05-311-10/+0
| | | | | | | | This has been a wrapper around server_event_context() for some time now, and removing this from dummmysmbd.c assists with library dependencies. Andrew Bartlett
* s3: Fix cli_bad_session_requestVolker Lendecke2011-05-291-2/+19
| | | | | We expect a negative session response with a 0x82 error (called name not present), not a 0x82 message
* s3: Simplify run_bad_nbt_sessionVolker Lendecke2011-05-291-40/+26
|
* s3: Simplify cli_bad_session_requestVolker Lendecke2011-05-291-12/+4
| | | | For this purpose we don't need the full cli_state
* s3: Use cli_connect_nb in smbtorture open_nbt_connectionVolker Lendecke2011-05-281-36/+2
|
* s3: Add called name_type param to cli_connect_nbVolker Lendecke2011-05-282-2/+4
|
* s3: Use cli_connect_nb in masktestVolker Lendecke2011-05-281-30/+3
|
* s3: Fix some nonemtpy blank linesVolker Lendecke2011-05-281-3/+3
|
* s3: Use cli_connect_nb in locktestVolker Lendecke2011-05-281-28/+3
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sat May 28 18:06:49 CEST 2011 on sn-devel-104
* s3: Remove the smbtorture3 OPLOCK3 testVolker Lendecke2011-05-221-58/+0
| | | | | This is the last user of cli_receive_smb. Oplocks are nowadays tested in smbtorture4, this mainly has historic value
* s3: Convert the OPEN4 test to async oplock handlingVolker Lendecke2011-05-221-32/+96
| | | | This removes a caller of cli_receive_smb
* s3: Remove a use of cli_send_smbVolker Lendecke2011-05-191-46/+53
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Thu May 19 20:11:33 CEST 2011 on sn-devel-104
* s3-lib Replace StrCaseCmp() with strcasecmp_m()Andrew Bartlett2011-05-182-4/+4
| | | | | | | strcasecmp_m() never needs to call to talloc, and via next_codepoint() still has an ASCII fast-path bypassing iconv() calls. Andrew Bartlett
* s3-smbtorture: fix build warning (shadowed NTSTATUS variable).Günther Deschner2011-05-181-1/+0
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Wed May 18 14:17:13 CEST 2011 on sn-devel-104
* s3-torture/nbio.c: Fix cli_errstr() usage (part of bug #7864)Björn Baumbach2011-05-181-7/+16
| | | | | | Convert cli_errstr() to nt_errstr() Signed-off-by: Stefan Metzmacher <metze@samba.org>