1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-29 21:47:30 +03:00

3017 Commits

Author SHA1 Message Date
Andrew Tridgell
9551d4027d Merge commit 'origin/v4-0-test' into vfs_smb2
(This used to be commit ffbd222d651dcddb19cacdc50cdbfeaefa816940)
2008-05-20 11:37:23 +10:00
Andrew Bartlett
343fea32cc Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local
Fix config.mk due to changing syntax.

Conflicts:

	source/libcli/config.mk
	source/nbt_server/config.mk
(This used to be commit 6a1c76f29f78183f44dfac6f468c5e728d2cb2cf)
2008-05-20 08:03:35 +10:00
Andrew Tridgell
03eb236f20 Merge commit 'origin/v4-0-test' into vfs_smb2
(This used to be commit 733937e87a1adcc19492ea2bd138e705701901b6)
2008-05-19 11:40:25 +10:00
Andrew Tridgell
66cbf7eb59 added mkdir to SMB2 proxy
(This used to be commit 1323aab11fbf346e19c4cef227d727ddfcaa7d60)
2008-05-19 11:39:16 +10:00
Jelmer Vernooij
32dfdae009 Move IDL build script to rpc directory, make various bits and pieces easier to use externally.
(This used to be commit 8328ff76416df5a6e05461d3a19f510b76f2e902)
2008-05-19 02:03:00 +02:00
Jelmer Vernooij
60ae8f0657 Fix a bunch of dependencies.
(This used to be commit a63f458462d207d215a6e4ef8e480b0c8daedf6a)
2008-05-18 23:40:23 +02:00
Jelmer Vernooij
4c70cda986 Fix a couple (well, little more than that..) of typos.
(This used to be commit a6b52119940a900fb0de3864b8bca94e2965cc24)
2008-05-18 23:02:47 +02:00
Jelmer Vernooij
4c8756f147 Create prototype headers from Makefile directory, without smb_build in the middle.
(This used to be commit f4a77b96f9c17d853348b70794026e5b9e384942)
2008-05-18 22:30:08 +02:00
Jelmer Vernooij
03643aec88 Use variables for source directory in a couple more places.
(This used to be commit c41bd3005f5f0b9cfd3709fc9217b4a401d265b4)
2008-05-18 19:54:27 +02:00
Andrew Bartlett
d975cd9d8c Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local
(This used to be commit 60579269d1e0bebce5b595ef95d68fd4bf781cfd)
2008-05-17 21:16:22 +10:00
Andrew Bartlett
24264e9acb Modify the LDAP-CLDAP test for better coverage.
This fixes up some compiled in constants and checks a couple more NT
versions.

Andrew Bartlett
(This used to be commit ca1b3fe3add06dc22361d5a5fe7e63a6abb1697c)
2008-05-17 20:52:23 +10:00
Andrew Bartlett
4f557d7954 Show that the NTLOGON and NETLOGON mailslots are *very* similar.
Rework the mailslot infrustructure to cope, passing down the mailslot
name so that we can implement both in the same callback function.

Andrew Bartlett
(This used to be commit 89fdd77891529aa74bb920994b8b5959aae8ac2d)
2008-05-17 13:24:29 +10:00
Andrew Bartlett
ceb2e20f7d Test the use of the domain SID on the NETLOGON mailslot
Interestingly, despite these packets being very similar, this fails on
NTLOGON - no reply is received.

Andrew Bartlett
(This used to be commit 25ab0ad0a0216ef18e0aaeec27c7833d8c68ca30)
2008-05-17 12:39:38 +10:00
Volker Lendecke
54e4fa66d4 Make rpc-bench-schannel1 use two wks accounts if --option=torture:multijoin=true
(This used to be commit fc3bc3c4a85b0e0ba853f3208a4e934a733cfdc4)
2008-05-16 15:54:10 +02:00
Volker Lendecke
12df140671 Fix two C++ warnings
(This used to be commit f75f95931c15d57b3111db4dff589be06710aea7)
2008-05-16 15:54:04 +02:00
Stefan Metzmacher
7350ddeabf torture: add RPC-BENCH-SCHANNEL1 test
This tests SamLogonEx() calls on multiple (smb) connections
in parallel. Sadly the smb connect needs to be serialized
because of the reset on zero VC style behavior of windows.

Call it like this:
bin/smbtorture -U administrator%test ncacn_np:w2k3-101 -W W2K3 RPC-BENCH-SCHANNEL
or
bin/smbtorture -U administrator%test ncacn_np:w2k3-101 -W W2K3 -k no RPC-BENCH-SCHANNEL \
	--option="torture:nprocs=4" --option="torture:timelimit=1" \
	--extra-user SUB1\\sub1user%testsecret --extra-user SUB1\\sub1user%testsecret
or ...

Later we should add more tests, maybe using only one smb connection
and different netlogon pipes.

We should also test using the DCERPC_PFC_FLAG_CONC_MPX flag and just one
rpc connection.

DCERPC_PFC_FLAG_CONC_MPX /* supports concurrent multiplexing of a single connection.*/

metze
(This used to be commit 901426c24c74390f7b1c78bb7a07c020b6ef73eb)
2008-05-16 15:53:49 +02:00
Volker Lendecke
ef6fd2d46d In torture_leave_domain, say what account was deleted
(This used to be commit a9a0f24f7299c1480d8047d97c703aca8e94c79f)
2008-05-16 15:40:29 +02:00
Andrew Tridgell
c7d7577fb9 private -> private_data for struct smb2_request
(This used to be commit 67290e0ad69df2f2fe651249c6550b8e32dd641b)
2008-05-16 15:03:58 +10:00
Andrew Bartlett
58e7f253ea Rework the CLDAP and NBT netlogon requests and responses.
This now matches section 7.3.3 of the MS-ATDS specification, and all
our current tests pass against windows.  There is still more testing
to do, and the server implementation to complete.

Andrew Bartlett
(This used to be commit 431d0c03965cbee85691cd0dc1e2a509c1a2b717)
2008-05-16 13:03:01 +10:00
Jelmer Vernooij
670122d724 Fix torture module initializion.
(This used to be commit d5bf4e9065303b54421a6f35b213a22f062d27d4)
2008-05-10 23:46:51 +02:00
Jelmer Vernooij
08ad86ad3d Revert "Remove copy of torture file."
This reverts commit 89bfca2da2b614e979a20c9a293b798ed7ae15ae.
(This used to be commit c6c4349c44cb6479fa7aa129931ff9ac88068ba6)
2008-05-10 23:38:56 +02:00
Jelmer Vernooij
d1183291d3 Remove copy of torture file.
(This used to be commit 89bfca2da2b614e979a20c9a293b798ed7ae15ae)
2008-05-10 22:26:14 +02:00
Jelmer Vernooij
7b45a4d7fa Merge branch 'v4-0-test' into v4-0-gmake3
Conflicts:

	source/auth/config.mk
	source/auth/gensec/config.mk
	source/torture/smbtorture.c
(This used to be commit edfd02e59bba86b977bd60848f57a614691fff7a)
2008-05-10 18:08:00 +02:00
Jelmer Vernooij
d0096e90ba Fix installation of pidl perl files, torture pc file.
(This used to be commit 32da606e3759026c2744f853cd8948333ed0579c)
2008-05-10 00:46:25 +02:00
Michael Adam
42059c7e76 torture: use dom_idx after determining it in samba3rpc.c:get_usr_handle()
Michael
(This used to be commit 334d76c3559870bd9dc9ef55c9b1a7ce21ee9d4c)
2008-05-06 15:27:33 +02:00
Tiago Batista
674d089bea Tiago Batista posted a patch to fix the build:
Trying to compile the latest git tree, I got some errors
"auth/pam_error.h not found" errors, it looks like it moved to
auth/ntlm/pam_errors.h.

Andrew Bartlett
(This used to be commit 95831a015ae076b52256961f771f50dd9b278e33)
2008-05-06 08:12:03 +10:00
Jelmer Vernooij
aedaba990f Split up lcov target.
(This used to be commit 38f455e0054acc1fdaea267e03f8aad337309cf2)
2008-04-27 23:29:50 +01:00
Jelmer Vernooij
1e973565b6 Move subunit infrastructure code into lib/torture.
(This used to be commit 5b44d8121de7735d69e6238a1442aff034a8ebd3)
2008-04-27 14:02:46 +01:00
Jelmer Vernooij
cc9c4aaa8d Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-gmake3
Conflicts:

	source/Makefile
	source/auth/config.mk
	source/auth/gensec/config.mk
	source/build/m4/public.m4
	source/build/make/python.mk
	source/build/make/rules.mk
	source/build/smb_build/header.pm
	source/build/smb_build/main.pl
	source/build/smb_build/makefile.pm
	source/dsdb/config.mk
	source/dsdb/samdb/ldb_modules/config.mk
	source/kdc/config.mk
	source/lib/events/config.mk
	source/lib/events/events.c
	source/lib/ldb/config.mk
	source/lib/nss_wrapper/config.mk
	source/lib/policy/config.mk
	source/lib/util/config.mk
	source/libcli/smb2/config.mk
	source/libnet/config.mk
	source/librpc/config.mk
	source/nbt_server/config.mk
	source/ntptr/ntptr_base.c
	source/ntvfs/posix/config.mk
	source/ntvfs/sysdep/config.mk
	source/param/config.mk
	source/rpc_server/config.mk
	source/rpc_server/service_rpc.c
	source/scripting/ejs/config.mk
	source/scripting/python/config.mk
	source/smb_server/config.mk
	source/smbd/server.c
	source/torture/config.mk
	source/torture/smb2/config.mk
	source/wrepl_server/config.mk
(This used to be commit 13bbd420681519894a4036729c43273912c9b402)
2008-04-25 10:04:20 +01:00
Kai Blin
240d959005 libnet: Make UserInfo accept a SID as input as well, fix wb_cmd_getpwuid
(This used to be commit 5f3a70f285ad8a412105c0e498e486f93fc279bc)
2008-04-24 11:17:23 +02:00
Simo Sorce
7f464f0628 Fix more failing tests to pass the event context.
(This used to be commit d6c5d8baf0c48a6078a47bba33993a841ff526d9)
2008-04-22 16:40:44 -04:00
Simo Sorce
c8eb82816f Fix build
(This used to be commit c16d1d430a0f1e3643c1e769b10e9d88b4719d17)
2008-04-21 19:53:15 -04:00
Simo Sorce
4e83011f72 Remove more event_context_init() uses from function calls within deep down the code.
Make sure we pass around the event_context where we need it instead.
All test but a few python ones fail. Jelmer promised to fix them.
(This used to be commit 3045d391626fba169aa26be52174883e18d323e9)
2008-04-21 18:12:33 -04:00
James Peach
8a3e3391fb smbtorture: Add RAW-BENCH-LOOKUP micro-benchmark.
This test samples the lookup rate for a non-existant filename in a
directory, while varying the number of files in the directory. The
lookup rate should continue to approximate the lookup rate for the
empty directory case.
(This used to be commit ca7e4d9166a7cb10495cf3ecd9c4e72103fbec30)
2008-04-21 15:09:43 -07:00
Stefan Metzmacher
f0eb488d22 SMB2-PERSISTENT-HANDLES1: close the handle before deleting it
This means we no longer have a oplock break timing out
for the "delete".

metze
(This used to be commit 50f6a72b674f58a24c1a6c42e4dd56dc4e9f5a1e)
2008-04-19 02:06:44 +02:00
Stefan Metzmacher
95d111b7e4 torture/smb2: add a simple SMB2-OPLOCK-BATCH1 test
metze
(This used to be commit 914f0ac83bc396be0ca34c43e2ea01ecc1c3b826)
2008-04-19 01:54:45 +02:00
Andrew Bartlett
0b4c401f06 Fix build not to always use code coverage.
Somehow, the way this was structured before always did a gcov build.

Andrew Bartlett
(This used to be commit 052edb786418f161272a41025f8b6eee93bb433d)
2008-04-17 14:20:46 +02:00
Jelmer Vernooij
dd0da89e84 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test
(This used to be commit ece878c1f9251b83598508e23ce0015b4db72f0a)
2008-04-17 13:05:25 +02:00
Jelmer Vernooij
0197b8e0ff Fix the build.
(This used to be commit 5632fe8c61cfd7d69ebdc263dcb5740e72f25b95)
2008-04-17 13:04:04 +02:00
Jelmer Vernooij
21fc767378 Specify event_context to ldb_wrap_connect explicitly.
(This used to be commit b4e1ae07a284c044704322446c94351c2decff91)
2008-04-17 12:23:44 +02:00
Andrew Tridgell
30b9c37420 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test
Conflicts:

	source/ntvfs/ntvfs_generic.c
(This used to be commit a626a9c69cb2c07c8de69dcfe45361f86d6de58d)
2008-04-17 09:36:09 +02:00
Stefan Metzmacher
8d6af0a8ad SMB2-PERSISTENT-HANDLES1: verify some more fields
metze
(This used to be commit ae0a7d0918cc15309a6d1166885f23531365007c)
2008-04-17 03:52:45 +02:00
Stefan Metzmacher
4dc59022e8 torture/smb2: add SMB2-PERSISTENT-HANDLES1 test
This demonstrates that the file seek position
is still available on reconnected persistent handles.

metze
(This used to be commit 30e04ae3a02596de03d06874ff5dfc0ddc3bf902)
2008-04-17 02:39:32 +02:00
Stefan Metzmacher
17e41720d9 torture/smb2: add torture_suite_add_2smb2_test() helper function
metze
(This used to be commit d70afbb0673184ed067e5f1c7608536025a3cca7)
2008-04-17 02:39:30 +02:00
Stefan Metzmacher
1fe057f2e8 torture/smb2: fix whitespaces
metze
(This used to be commit 66c0f331a231ea8897bd8f83658c86b1d2c85d62)
2008-04-17 02:39:30 +02:00
Jelmer Vernooij
ab07a60d6e Avoid recursive make for code coverage.
(This used to be commit 2d1ca8cb7a1c39894e5f232f7e84936e6e1830ee)
2008-04-17 02:06:07 +02:00
Jelmer Vernooij
a145d21de6 Avoid using event_context_find where possible.
(This used to be commit 04420b4689bc223202d5bba871e3eea16301e8e9)
2008-04-17 01:37:02 +02:00
Jelmer Vernooij
9de0594175 Fix the build.
(This used to be commit 40b7b0e503cff31ea4e3d4822f2263fbeb76c57a)
2008-04-17 01:30:21 +02:00
Jelmer Vernooij
06d06c6c94 Use provided event context rather than looking for it.
(This used to be commit fd0bb96acea3d7949cf0574bb6f3568a90f67f4e)
2008-04-17 01:19:20 +02:00
Jelmer Vernooij
1efbd5fbf6 Remove event context tracking from the credentials struct.
(This used to be commit 4d7fc946b2ec50e774689c9036423b6feef99b8e)
2008-04-17 01:03:18 +02:00