Volker Lendecke
45e61fcf61
s3: Add a "lock_order" argument to db_open
...
This will be used to enforce a lock hierarchy between the databases. We have
seen deadlocks between locking.tdb, brlock.tdb, serverid.tdb and notify*.tdb.
These should be fixed by refusing a dbwrap_fetch_locked that does not follow a
defined lock hierarchy.
2012-01-18 14:48:04 +01:00
Günther Deschner
4c03f08c0d
s3-pdbtest: only test trusted domains when pdb backends offers trusted domain support.
...
Guenther
2012-01-09 10:34:05 +01:00
Volker Lendecke
76ca46ecfe
s3: Avoid a potential alignment requirement issue
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Fri Jan 6 18:58:11 CET 2012 on sn-devel-104
2012-01-06 18:58:11 +01:00
Volker Lendecke
6529e520ee
s3: Use DELETE_ON_CLOSE instead of unlink
2012-01-06 17:23:43 +01:00
Andrew Bartlett
662c557b36
s3-torture convert smb2 test to use auth_generic/gensec for NTLMSSP
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Jan 6 12:09:12 CET 2012 on sn-devel-104
2012-01-06 12:09:12 +01:00
Stefan Metzmacher
893d7921a1
s3:SMB2-SESSION-RECONNECT: also expect NETWORK_NAME_DELETED is signing isn't used
...
metze
2012-01-06 08:31:16 +01:00
Volker Lendecke
f994f0a342
Fix the local-memcache test for 64-bit
...
The memcache test walks the purge functionality. The maximum memcache size also
takes all memcache internal headers into account. Those headers contain
pointers, so on 64-bit they take more space...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Thu Jan 5 22:01:00 CET 2012 on sn-devel-104
2012-01-05 22:01:00 +01:00
Volker Lendecke
f97216eb4a
s3: Add a test for proper brlock cleanup
...
We need to improve the server here.
Maybe we should validate the brlock entry whenever we detect a read/write being
blocked from locking? This is not our hot code path anyway, and it would gain
us significant robustness. The code might become quite a bit simpler as well.
2012-01-05 20:29:59 +01:00
Volker Lendecke
515dfe6c7f
s3: Clarify what CLEANUP1 does
2012-01-05 20:29:59 +01:00
Volker Lendecke
0d0141893e
s3: Add a test excercising the share mode cleanup routine
2012-01-05 13:09:36 +01:00
Volker Lendecke
cd3a935d0e
s3: Fix a cut&paste error
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Tue Jan 3 16:57:44 CET 2012 on sn-devel-104
2012-01-03 16:57:44 +01:00
Volker Lendecke
0923e7fa39
s3: Fix a typo
2012-01-03 15:22:03 +01:00
Stefan Metzmacher
32317b0529
s3:torture/test_smb2: also try PROTOCOL_SMB2_24
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Dec 22 17:47:17 CET 2011 on sn-devel-104
2011-12-22 17:47:17 +01:00
Stefan Metzmacher
03455519e7
s3:smbd: pass smbd_server_connection and a snumused function pointer to reload_services()
...
metze
2011-12-15 11:11:24 +01:00
Stefan Metzmacher
daa685c008
s3:vfstest: reload_services() doesn't need a messaging_context
...
It's only used to get the global smbd_server_connection,
which is used in conn_snum_used() via lp_killunused().
But there we don't need it, as we don't have any tree connects
at startup time.
metze
2011-12-13 20:31:09 +01:00
Volker Lendecke
0f9d14820e
s3: Remove a bunch of calls to procid_self()
...
All callers to messaging_[re]init only used procid_self()
2011-12-12 21:50:25 +01:00
Andrew Bartlett
c9d929af8b
s4-lsarpc handle more info levels in SetInfoTrustedDomain calls
...
This uses the very helpful conversion functions written for the s3 lsa server
and places these in common.
Andrew Bartlett
2011-12-12 12:57:07 +01:00
Jeremy Allison
4e709dc42f
Rename cli_open -> cli_openx. Prelude to replacing generic cli_open()
...
with a call that uses NTCreateX in preference to OpenAndX.
2011-12-03 21:13:08 -08:00
Stefan Metzmacher
bfbfcd1a51
s3:torture: test smb2cli_logoff and smb2cli_tdis
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Nov 24 20:36:31 CET 2011 on sn-devel-104
2011-11-24 20:36:31 +01:00
Stefan Metzmacher
a5322366d8
s3:torture: add SMB2-SESSION-REAUTH
...
metze
2011-11-24 19:02:33 +01:00
Stefan Metzmacher
2a04959ba1
s3:torture: add SMB2-MULTI-CHANNEL test
...
metze
2011-11-24 19:02:33 +01:00
Michael Adam
4c29389c04
s3:torture: add a new test SMB2-TCON-DEPENDENCE
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-11-24 19:02:33 +01:00
Michael Adam
1fef161d2a
s3:torture:smb2: add SMB2-SESSION-RECONNECT test
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-11-24 19:02:33 +01:00
Stefan Metzmacher
a312a8c788
s3:torture: use cli_tree_connect() instead of smb2cli_tcon()
...
metze
2011-11-24 19:02:33 +01:00
Stefan Metzmacher
2d9a8898f2
s3:torture: make use of cli_tree_connect()
...
metze
2011-11-24 19:02:32 +01:00
Stefan Metzmacher
5c97bbf3ef
s3:torture: replace smb2cli_sesssetup_ntlmssp() with the more generic cli_session_setup()
...
metze
2011-11-24 19:02:32 +01:00
Stefan Metzmacher
773d0a6add
s3:torture: add SMB2-NEGPROT test
...
metze
2011-11-24 19:02:32 +01:00
Stefan Metzmacher
628dd727cf
s3:SMB2-BASIC: use smbXcli_negprot() directly
...
metze
2011-11-24 19:02:32 +01:00
Björn Baumbach
773abaa2ef
s3-torture: remove all cli_nt_error() calls in torture
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-11-16 19:02:12 +01:00
Björn Baumbach
9430fbf922
s3-torture: replace cli_errstr() with nt_errstr()
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-11-16 19:02:12 +01:00
Stefan Metzmacher
59dcdfd175
s3:torture: s/Undefined/SMB_SIGNING_DEFAULT/ s/Required/SMB_SIGNING_REQUIRED/
...
metze
2011-11-03 16:55:13 +01:00
Stefan Metzmacher
881feda353
s3:torture: let SMB2-BASICS work against w2k8r2 and win8pre0
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Nov 3 09:44:59 CET 2011 on sn-devel-104
2011-11-03 09:44:59 +01:00
Andrew Bartlett
f28fda7638
s3-torture Remove t_stringoverflow as fstrcpy now uses strlcpy
...
Because we no longer use safe_strcpy() internally, we no longer have a
mode where we write to the end of the buffer in developer mode, and so
there isn't anything for this test to test.
Andrew Bartlett
2011-10-28 13:10:28 +02:00
Andrew Bartlett
f31fd31b71
s3-torture run t_strappend tests as LOCAL-sprintf_append
2011-10-28 13:10:28 +02:00
Andrew Bartlett
4cc0552f6e
s3-torture Run t_strappend test for less time
2011-10-28 13:10:28 +02:00
Andrew Bartlett
de148f748a
s3-torture Fix t_strappend test
2011-10-28 13:10:27 +02:00
Andrew Bartlett
f54dcc86b8
s3-torture remove unused t_push_ucs2.c t_strcmp.c t_strstr.c
...
These tests were incorportated into
source4/scripting/python/samba/tests/strings.py with
fa3e2fc8bb
.
Andrew Bartlett
2011-10-28 13:10:27 +02:00
Andrew Bartlett
961952ee64
s3-torture remove unused t_asn1.c
...
This test was incorportated into lib/util/test/asn1_test.c with
ede98c0e51
Andrew Bartlett
2011-10-28 13:10:27 +02:00
Andrew Bartlett
50e7a8767f
torture: Remove unused smbiconv
...
smbiconv is not used in any test script, and has only had changes
since being introduced by Jelmer to keep it building.
It is also not installed on the system. I have also checked with
Jelmer, who approved the removal.
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-10-25 17:58:33 +02:00
Stefan Metzmacher
7ebd4337ac
libcli/smb: move source3/libsmb/read_smb.* to the toplevel
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Oct 24 10:18:06 CEST 2011 on sn-devel-104
2011-10-24 10:18:06 +02:00
Stefan Metzmacher
99666e4a8d
s3:torture: avoid using read_smb()
...
metze
2011-10-24 08:25:31 +02:00
David Disseldorp
d5ea379428
s3: Remove duplicate fsctl function definitions
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-10-19 15:44:29 +02:00
Michael Adam
658f72128f
s3:dbwrap: change dbwrap_fetch_uint32() to NTSTATUS return type (instead of bool)
...
for consistency and better error propagation
2011-10-11 14:17:58 +02:00
Michael Adam
6fb5c47f21
s3:torture: convert torture.c to only use dbwrap wrapper functions
...
Avoid direct use of the db_record and db_context structs.
2011-10-11 14:17:58 +02:00
Michael Adam
7a72c84ee7
s3:dbwrap: move the db_open_rbt() prototype to a new header dbwrap_rbt.h
2011-10-11 14:17:55 +02:00
Richard Sharpe
e8f143a45c
Add a torture test to test existing FSCTL responses
2011-10-01 07:02:19 -07:00
Stefan Metzmacher
e3e7869f61
s3:smb2cli: s/smb2cli_sesssetup/smb2cli_sesssetup_ntlmssp/
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sun Sep 18 21:43:26 CEST 2011 on sn-devel-104
2011-09-18 21:43:26 +02:00
Stefan Metzmacher
79043f84d1
s3:SMB2-BASIC: test smb2cli_flush()
...
metze
2011-09-18 05:33:10 +02:00
Stefan Metzmacher
3f00cce9b3
s3:libsmb: pass max_protocol to cli_negprot()
...
metze
2011-09-15 10:25:17 +02:00
Stefan Metzmacher
ff52be06e5
s3:libsmb: remove unused cli->is_samba
...
s3:libsmb: remove unused cli->is_samba
metze
Signed-off-by: Jeremy Allison <jra@samba.org>
2011-09-14 13:12:52 -07:00