1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
Commit Graph

3132 Commits

Author SHA1 Message Date
Stefan Metzmacher
fb4c9dd5eb BASE-DELAYWRITE: add missing time checks to make sure the server has updated the write time
metze
(This used to be commit 9c004df891)
2008-06-03 11:17:17 +02:00
Andrew Tridgell
405e64c437 more updates for new info levels
(This used to be commit 85d1873ee9)
2008-06-02 11:05:06 +10:00
Andrew Tridgell
fa327874bb remove a pstring
(This used to be commit 12ecd7f4b8)
2008-06-02 11:04:46 +10:00
Andrew Tridgell
e7b30f023b remove unused macros
(This used to be commit 7a1877db15)
2008-06-02 11:04:36 +10:00
Andrew Tridgell
eb8634b2f0 check for requested buffer size in getinfo call
(This used to be commit ed8f16379d)
2008-05-31 13:39:51 +10:00
Andrew Tridgell
57b7b0fcf6 more useful output in scan
(This used to be commit 70569a78cf)
2008-05-31 13:39:34 +10:00
Andrew Bartlett
be14efbdf9 Revert Jelmer's CFLAGS commit e2b71a0ecb
This commit broke the build, because not all files (libreplace, popt)
were updated.

Andrew Bartlett
(This used to be commit 3faacf4351)
2008-05-31 08:35:55 +10:00
Jelmer Vernooij
5107f093c2 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-defs
Conflicts:

	source/samba4-skip
(This used to be commit 7b0e0eb346)
2008-05-30 12:18:07 +02:00
Andrew Tridgell
beaa01e403 implemented client side SMB2 signing
This doessn't work against Windows yet, and I've submitted a WSPP
request for clarification of the docs to try and find out
why. Meanwhile this is no worse than what we had, as it only gets used
when the server demands signing, and we didn't work then anyway.
(This used to be commit b788096add)
2008-05-30 17:03:54 +10:00
Jelmer Vernooij
39f50afc57 Move CFLAGS handling out of smb_build.
(This used to be commit e2b71a0ecb)
2008-05-30 02:07:28 +02:00
Andrew Tridgell
b33dba845e don't emulate broken SMB2 locking behaviour from windows
(This used to be commit c50e7a15f9)
2008-05-30 07:28:29 +10:00
Andrew Tridgell
8eef2e3412 merged gentest.c and gentest_smb2.c
The one gentest tool now covers both SMB and SMB2, using the command
line switch --smb2 for SMB2
(This used to be commit d1125a303a)
2008-05-29 21:32:08 +10:00
Andrew Tridgell
523a0fccf3 check maximal_access here too
(This used to be commit 8159b1598e)
2008-05-29 19:30:11 +10:00
Andrew Tridgell
215fd9764f test the maximal access return
(This used to be commit 23ffec5d14)
2008-05-29 19:16:44 +10:00
Andrew Tridgell
c793faf998 check the set of file attributes which are ignored
(This used to be commit c818f56d8e)
2008-05-28 22:44:54 +10:00
Andrew Tridgell
70eb8d54ae fixed current_op.mismatch for more cases
(This used to be commit 8a2a31d050)
2008-05-28 22:44:35 +10:00
Andrew Tridgell
dfdfe06dc1 added --noacls options and checking for same mismatch in backtracking
(This used to be commit c7d2e1bf65)
2008-05-28 21:49:04 +10:00
Andrew Tridgell
1eabf81554 check that we can't change a file to a directory
(This used to be commit e013ada415)
2008-05-28 20:06:48 +10:00
Andrew Tridgell
f7bf79043e added testing of some strange read semantics on windows
(This used to be commit 46a0b65742)
2008-05-28 20:06:38 +10:00
Andrew Tridgell
e814586bdd generate security descriptors in gentest_smb2
(This used to be commit 5ca7e9590e)
2008-05-28 20:06:22 +10:00
Andrew Tridgell
91069754f8 add testing of creating a file with an initial ACL on SMB2
(This used to be commit e957e86a03)
2008-05-28 18:48:23 +10:00
Andrew Tridgell
0eb4ecc81a test unknown tags and bad tag lengths
(This used to be commit 72902c1d0f)
2008-05-28 16:59:12 +10:00
Andrew Tridgell
669c528611 added some of the new SMB2 create tags to gentest_smb2
(This used to be commit b3f6385816)
2008-05-28 16:58:57 +10:00
Andrew Tridgell
082272e49d added testing of SMB2 create blobs
(This used to be commit a48cbec6b9)
2008-05-28 16:28:50 +10:00
Andrew Tridgell
275e057bea Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test
(This used to be commit ecb0e5477a)
2008-05-28 12:07:20 +10:00
Andrew Tridgell
0dbef08a9a expanded the SMB2-READ test, including the windows position bug
(This used to be commit 43e7b13027)
2008-05-28 12:06:29 +10:00
Andrew Tridgell
17704a8df6 add exceptions for some of the strange windows SMB2 locking behaviour
(This used to be commit 429bbecebe)
2008-05-28 12:05:23 +10:00
Andrew Tridgell
bbcbada5e4 added --valid option to gentest_smb2
(This used to be commit 91765946b0)
2008-05-28 11:48:54 +10:00
Andrew Tridgell
d5fe193b15 added --skip-cleanup to gentest
(This used to be commit 0bc3de0cc4)
2008-05-28 11:48:39 +10:00
Jelmer Vernooij
936b973acb Use new dynconfig.h location.
(This used to be commit c3f556915f)
2008-05-27 14:36:28 +02:00
Andrew Tridgell
6cdfbd8380 fixed uninitialised variable
(This used to be commit 8d2e20fcb9)
2008-05-27 20:16:00 +10:00
Andrew Tridgell
ed3a095a5a fixed file_attributes test
(This used to be commit 791ce0fe39)
2008-05-27 19:10:35 +10:00
Andrew Tridgell
4f0d968d1d added a basic SMB2 read test suite
(This used to be commit 4aeda5c114)
2008-05-27 18:20:04 +10:00
Andrew Tridgell
a75d5075ea re-enable some tests
(This used to be commit c15b24a2f4)
2008-05-27 18:19:22 +10:00
Andrew Tridgell
beac55a88f enforce lock ordering in SMB2
(This used to be commit 3bec932a89)
2008-05-27 17:22:02 +10:00
Andrew Tridgell
c400933c02 added some SMB2 locking tests from gentest
(This used to be commit 2932fcb046)
2008-05-27 16:02:43 +10:00
Andrew Tridgell
7ae464b548 another gentest derived test
(This used to be commit bb546ab377)
2008-05-27 15:00:05 +10:00
Andrew Tridgell
6e265867ff SEC_STD_SYNCHRONIZE is only invalid on SMB2
(This used to be commit 067f1271ad)
2008-05-27 14:30:42 +10:00
Andrew Tridgell
95afe46a0e expanded the SMB2 create testing
(This used to be commit 7191512849)
2008-05-27 14:07:27 +10:00
Andrew Tridgell
892712e4e7 cleanup some warnings and add --skip-cleanup
(This used to be commit c73dd078ea)
2008-05-27 12:43:10 +10:00
Andrew Tridgell
0d8d6dbfd7 the start of a SMB2 create test suite
(This used to be commit 16787e99f3)
2008-05-27 12:41:50 +10:00
Andrew Tridgell
98e72f574a remove temporary test code
(This used to be commit 8995c2f121)
2008-05-26 15:03:51 +10:00
Andrew Tridgell
cf4899cf4c check use of mincnt past EOF in SMB
(This used to be commit 763c9d344f)
2008-05-26 15:00:56 +10:00
Jelmer Vernooij
72251a1b7a Include test case name when reporting with subunit. This should make it possible to having a test fail against some test cases and success against other ones.
(This used to be commit 0af138a85b)
2008-05-23 16:19:00 +02:00
Stefan Metzmacher
2f653e814a RAW-STREAMS: better test the bahavior of streams on directories
Note: this has a samba3 specific code path, which we should fixed.

metze
(This used to be commit 5c5c866838)
2008-05-23 09:55:16 +02:00
Andrew Tridgell
1ea0466289 added a --noeas option to gentest_smb2
(This used to be commit 9d523debb7)
2008-05-22 22:46:43 +10:00
Andrew Tridgell
af82204f43 added testing of SMB2 setfileinfo in gentest_smb2
(This used to be commit c38658c6c0)
2008-05-22 15:44:13 +10:00
Andrew Tridgell
80527a0c68 added EAs in the generated SMB2 create operation
(This used to be commit 607bf6a946)
2008-05-22 15:35:52 +10:00
Andrew Tridgell
ae629621da added --maskindexing and qfileinfo testing
- added --maskindexing to mask the 0x2000 noindex bit in file
   attributes
 - added testing of qfileinfo in gentest_smb2
(This used to be commit 3883a7286f)
2008-05-22 14:51:32 +10:00
Andrew Tridgell
61e78a2c61 minor cleanup in SMB2 getinfo test
(This used to be commit b139b47107)
2008-05-22 14:50:36 +10:00
Andrew Tridgell
8f599b3781 added SMB2 gentest generation of SMB2 echo packets
(This used to be commit 8f7cfa5d2e)
2008-05-22 13:43:04 +10:00
Andrew Tridgell
7ba8dca590 fixes to the SMB2 lock test after recent SMB2 locking changes
(This used to be commit de7626e1c2)
2008-05-22 13:14:36 +10:00
Andrew Tridgell
aed93a238e fixed SMB2 flush call, and added flush to gentest_smb2
(This used to be commit c52fe1fe1c)
2008-05-21 22:51:21 +10:00
Andrew Tridgell
4d39976ddd fixed SMB2 locking
- SMB2 locking is different in several ways from SMB locking. To fix
  it properly we will need a new generic mapping structure for
  locking, but for now do a best effort mapping

- added locking to gentest_smb2
(This used to be commit ea6d9cf602)
2008-05-21 22:12:20 +10:00
Andrew Bartlett
59105620dc Correct an assertion in the testsuite.
Andrew Bartlett
(This used to be commit c3eeae2ea6)
2008-05-21 14:49:47 +10:00
Andrew Bartlett
52a3c96a89 Extend the NBT-DGRAM torture test again.
Andrew Bartlett
(This used to be commit f415484640)
2008-05-21 14:28:17 +10:00
Andrew Bartlett
f67156fc92 Extend the 'netlogon' CLDAP and NBT implementation.
This now handles checking if the user exists, including validating the
ACB mask on the user.

This would be a nasty security hole, if Kerberos did not already
expose this information anonymously...

Andrew Bartlett
(This used to be commit 441b286c00)
2008-05-21 12:37:36 +10:00
James Peach
9a975a868e smbtorture: Add RAW-BENCH-TCON benchmark.
Add a simple test to benchmark the rate at which a server can accept
new tree connections. You can tune the length of time to run the
benchmark for and the number of parallel connections to make.
(This used to be commit ea3f4b9305)
2008-05-20 11:35:32 -07:00
Volker Lendecke
276fa76fa9 Change wks password in rpc-bench-schannel1
Prove that a workstation password change does not affect existing schannel
connections
(This used to be commit f72dc52ccc)
2008-05-20 13:06:05 +02:00
Andrew Tridgell
cd167fd44b Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test
(This used to be commit e360be0b99)
2008-05-20 15:35:49 +10:00
Andrew Tridgell
5ca6f42510 added read and write handlers. Fixed --analyse
(This used to be commit c05ed7bb9a)
2008-05-20 15:16:53 +10:00
Andrew Tridgell
430f4ef666 specify which server failed to deltree
(This used to be commit aa9108374f)
2008-05-20 13:37:40 +10:00
Andrew Tridgell
fc267b0510 first version of gentest_smb2. Only generates create and close so far.
(This used to be commit 634a4bbd98)
2008-05-20 11:59:43 +10:00
Andrew Tridgell
f8f0cc985b moved these util functions into libcli
(This used to be commit b2f1154bc3)
2008-05-20 11:59:18 +10:00
Andrew Bartlett
aa90730e0c Revert addition of 'mailslot' parameter.
It turns out that the mailslot name (and a useful private prointer) is
provided in the struct dgram_mailslot_handler.

Andrew Bartlett
(This used to be commit e17804b885)
2008-05-20 11:54:50 +10:00
Andrew Tridgell
9551d4027d Merge commit 'origin/v4-0-test' into vfs_smb2
(This used to be commit ffbd222d65)
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 6a1c76f29f)
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 733937e87a)
2008-05-19 11:40:25 +10:00
Andrew Tridgell
66cbf7eb59 added mkdir to SMB2 proxy
(This used to be commit 1323aab11f)
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 8328ff7641)
2008-05-19 02:03:00 +02:00
Jelmer Vernooij
60ae8f0657 Fix a bunch of dependencies.
(This used to be commit a63f458462)
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 a6b5211994)
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 f4a77b96f9)
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 c41bd3005f)
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 60579269d1)
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 ca1b3fe3ad)
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 89fdd77891)
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 25ab0ad0a0)
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 fc3bc3c4a8)
2008-05-16 15:54:10 +02:00
Volker Lendecke
12df140671 Fix two C++ warnings
(This used to be commit f75f95931c)
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 901426c24c)
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 a9a0f24f72)
2008-05-16 15:40:29 +02:00
Andrew Tridgell
c7d7577fb9 private -> private_data for struct smb2_request
(This used to be commit 67290e0ad6)
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 431d0c0396)
2008-05-16 13:03:01 +10:00
Jelmer Vernooij
670122d724 Fix torture module initializion.
(This used to be commit d5bf4e9065)
2008-05-10 23:46:51 +02:00
Jelmer Vernooij
08ad86ad3d Revert "Remove copy of torture file."
This reverts commit 89bfca2da2.
(This used to be commit c6c4349c44)
2008-05-10 23:38:56 +02:00
Jelmer Vernooij
d1183291d3 Remove copy of torture file.
(This used to be commit 89bfca2da2)
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 edfd02e59b)
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 32da606e37)
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 334d76c355)
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 95831a015a)
2008-05-06 08:12:03 +10:00
Jelmer Vernooij
aedaba990f Split up lcov target.
(This used to be commit 38f455e005)
2008-04-27 23:29:50 +01:00
Jelmer Vernooij
1e973565b6 Move subunit infrastructure code into lib/torture.
(This used to be commit 5b44d8121d)
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 13bbd42068)
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 5f3a70f285)
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 d6c5d8baf0)
2008-04-22 16:40:44 -04:00
Simo Sorce
c8eb82816f Fix build
(This used to be commit c16d1d430a)
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 3045d39162)
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 ca7e4d9166)
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 50f6a72b67)
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 914f0ac83b)
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 052edb7864)
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 ece878c1f9)
2008-04-17 13:05:25 +02:00
Jelmer Vernooij
0197b8e0ff Fix the build.
(This used to be commit 5632fe8c61)
2008-04-17 13:04:04 +02:00
Jelmer Vernooij
21fc767378 Specify event_context to ldb_wrap_connect explicitly.
(This used to be commit b4e1ae07a2)
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 a626a9c69c)
2008-04-17 09:36:09 +02:00
Stefan Metzmacher
8d6af0a8ad SMB2-PERSISTENT-HANDLES1: verify some more fields
metze
(This used to be commit ae0a7d0918)
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 30e04ae3a0)
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 d70afbb067)
2008-04-17 02:39:30 +02:00
Stefan Metzmacher
1fe057f2e8 torture/smb2: fix whitespaces
metze
(This used to be commit 66c0f331a2)
2008-04-17 02:39:30 +02:00
Jelmer Vernooij
ab07a60d6e Avoid recursive make for code coverage.
(This used to be commit 2d1ca8cb7a)
2008-04-17 02:06:07 +02:00
Jelmer Vernooij
a145d21de6 Avoid using event_context_find where possible.
(This used to be commit 04420b4689)
2008-04-17 01:37:02 +02:00
Jelmer Vernooij
9de0594175 Fix the build.
(This used to be commit 40b7b0e503)
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 fd0bb96ace)
2008-04-17 01:19:20 +02:00
Jelmer Vernooij
1efbd5fbf6 Remove event context tracking from the credentials struct.
(This used to be commit 4d7fc946b2)
2008-04-17 01:03:18 +02:00
Jelmer Vernooij
4b9c7df9b7 Avoid event_find_context when a event context is already available.
(This used to be commit 4ca264679e)
2008-04-16 23:06:27 +02:00
Andrew Bartlett
80ad7025cf Adjust the expectations of the struct based winbind test.
These expectations (such as what happens when we have no trusted
domains) were incorrect, compared with Samba3 (which is the reference
for this protocol).

Andrew Bartlett
(This used to be commit 29d5de9e8f)
2008-04-16 17:33:58 +02:00
Andrew Tridgell
4bbaf36f6f fixed popt handling on 64bit boxes in gentest
(This used to be commit 40c93ffbe9)
2008-04-16 17:11:21 +02:00
Andrew Bartlett
9586462b8f Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-abartlet
(This used to be commit 18dd8120cc)
2008-04-16 16:12:58 +02:00
Andrew Bartlett
a58df2f54c Fix struct_based winbind test for 'check machine account'.
The problem here was that we did not fill in the error strings in the
success case, and the testsuite checked against the incorrect
'freindly' error string.

Andrew Bartlett
(This used to be commit df05f11883)
2008-04-16 16:11:17 +02:00
Jelmer Vernooij
68b2d9372f Remove policy library - it's now in a separate git repository.
(This used to be commit 9b364bf390)
2008-04-16 14:41:42 +02:00
Andrew Bartlett
cb5873f36d Fix some of the winbind tests.
Some of the test expectations were incorrect.

Andrew Bartlett
(This used to be commit bc0e94360e)
2008-04-15 16:31:08 +02:00
Jelmer Vernooij
1a8bfba545 Fix warnings.
(This used to be commit 88013ca977)
2008-04-15 12:15:43 +02:00
Jelmer Vernooij
08baea013b Move SOVERSION, VERSION and PC_FILE out of smb_build but use make variables directly instead.
(This used to be commit 9d0ae012b0)
2008-04-15 02:25:16 +02:00
Jelmer Vernooij
18f8f5d656 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-gmake4
(This used to be commit 1ef3830bb0)
2008-04-14 20:00:32 +02:00
Jelmer Vernooij
a15b6f1606 Fix unresolved symbols.
(This used to be commit 8573e828d1)
2008-04-14 20:00:04 +02:00
Simo Sorce
4f51b0246d Fix problems with event context not being the parent.
(This used to be commit 957c4d893a)
2008-04-14 12:45:51 -04:00
Jelmer Vernooij
e9017ba418 Use _OBJ_FILES variables in a couple more places.
(This used to be commit 92856d5054)
2008-04-14 17:22:58 +02:00
Jelmer Vernooij
f78bc8c489 Remove prototypes from build.h in preparation of removing build.h
altogether.
(This used to be commit dbeab2a9cd)
2008-04-14 11:54:50 +02:00
Jelmer Vernooij
60a6682c85 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into cprovision
(This used to be commit 9b8448c1e4)
2008-04-13 22:49:08 +02:00
Jelmer Vernooij
148d3b170a Use torture_assert_mem_equal() in a couple more places.
(This used to be commit e2c3fab9d1)
2008-04-13 22:00:36 +02:00
Jelmer Vernooij
225a65da2d Attempt to fix get_value() test on sparc machines.
(This used to be commit 10102d80d0)
2008-04-13 21:31:06 +02:00
Andrew Bartlett
6a7acf3952 Reuse the lp_ctx and samdb returned by the python provision.
Apply the same fix as in libnet_vampire in the old DRS test code.

Andrew Bartlett
(This used to be commit 34adb0e0bb)
2008-04-11 19:37:23 +10:00
Andrew Bartlett
c82e9c9f6d Don't specify the ntds_guid to the C -> python provision interface
This paramter was not used anyway.

Andrew Bartlett
(This used to be commit 6875e6823f)
2008-04-11 19:35:15 +10:00
Andrew Bartlett
ae977ef247 Fix merge errors on C provision interface after jelmer's good work.
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-abartlet

Conflicts:

	source/torture/local/torture.c
(This used to be commit 5bf1c89cf8)
2008-04-11 11:11:42 +10:00
Andrew Bartlett
9198a519be Set a netbios name into provision, and zero the rest.
Remove dns_name initialisation.

Andrew Bartlett
(This used to be commit e77ab2fbd1)
2008-04-11 11:09:34 +10:00
Jelmer Vernooij
574bf79f3b Fix extra argument to provision_bare().
(This used to be commit 623f64a1a7)
2008-04-10 06:07:46 +02:00
Jelmer Vernooij
ad8e3e4192 Add infrastructure for returning ProvisionResult in C provision code.
(This used to be commit 98c3d34eb2)
2008-04-10 05:23:17 +02:00
Andrew Bartlett
3f990fdf7c Remove dns_name element
This is only used in the DEBUG() message, so let's remove it.

Andrew Bartlett
(This used to be commit 5ebb64bdad)
2008-04-09 14:55:01 +10:00
Jelmer Vernooij
82c7872639 Move provision C bindings to param/.
(This used to be commit 7d45ed0c3e)
2008-04-09 03:23:13 +02:00
Stefan Metzmacher
4677ac6e70 BASE-DELAYWRITE: be more friendly to filesystems without high resolution timestamps
metze
(This used to be commit 9c18cf6708)
2008-04-08 19:42:06 +02:00
Stefan Metzmacher
edb3a83a06 BASE-DELAYWRITE: use timeval_* and make it possible to spefic the writetime update delay
metze
(This used to be commit 751ab2992a)
2008-04-08 16:55:16 +02:00
Andrew Bartlett
3f2e403a86 Rework talloc hirarchy for C provision setup.
This seems to fix (or sweep under the covers) a crash in this code.

Andrew Bartlett
(This used to be commit 2fcddfe583)
2008-04-08 17:26:55 +10:00
Jelmer Vernooij
b5d84a74d1 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-gmake3
Conflicts:

	source/auth/credentials/config.mk
	source/auth/gensec/config.mk
	source/build/smb_build/makefile.pm
	source/heimdal_build/config.mk
	source/lib/events/config.mk
	source/lib/nss_wrapper/config.mk
	source/lib/policy/config.mk
	source/lib/registry/config.mk
	source/lib/socket_wrapper/config.mk
	source/lib/tdb/config.mk
	source/lib/tls/config.mk
	source/lib/util/config.mk
	source/libcli/config.mk
	source/libcli/ldap/config.mk
	source/libnet/config.mk
	source/librpc/config.mk
	source/param/config.mk
	source/rpc_server/config.mk
	source/scripting/ejs/config.mk
	source/smbd/process_model.mk
(This used to be commit 760378e029)
2008-04-08 03:45:06 +02:00
Andrew Bartlett
9f96f39ca0 Pass discovered server DN down to provision.
This uses the new 'serverdn' argument added to provision in the
previous commit.

Andrew Bartlett
(This used to be commit 74480c7de7)
2008-04-04 12:55:45 +11:00
Jelmer Vernooij
4924446969 Trim down installed headers some more.
(This used to be commit 71aa38842c)
2008-04-02 14:10:16 +02:00
Jelmer Vernooij
afe3e8172d Install public header files again and include required prototypes.
(This used to be commit 47ffbbf674)
2008-04-02 04:53:27 +02:00
Jelmer Vernooij
f41b9a9dde Rename libsamba-config to libsamba-hostconfig.
(This used to be commit c46b7e90e3)
2008-04-01 15:08:30 +02:00
Andrew Bartlett
5c4e340ee3 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local
(This used to be commit 764b7879d2)
2008-03-28 22:04:52 +11:00
Stefan Metzmacher
52013b846a torture: fix compiler warnings
metze
(This used to be commit 326ae6ce9c)
2008-03-28 09:40:08 +01:00
Andrew Kroeger
8f8c56bfbc Convert some more files to GPLv3.
(This used to be commit ebe5e83994)
2008-03-28 01:08:49 -05:00
Jelmer Vernooij
18d80bdf1f Merge v4.0-test
(This used to be commit 977dbdeaf3)
2008-03-28 00:44:14 +01:00
Volker Lendecke
ce98599c14 Prove that a setuserinfo level 25 does set the pwdlastset field
Very likely this is not the full story, but as it happens so often this proof
is needed to fix a direct s3 bug.
(This used to be commit 16b4a3685b)
2008-03-20 23:17:44 +01:00
Volker Lendecke
21c7afd9b0 Add the workstation to the anon sessetup credentials
Without this patch the RPC-SAMBA3SESSIONKEY against W2k3 gives
INVALID_PARAMETER for the anonymous session setup
(This used to be commit eb459be878)
2008-03-20 23:17:37 +01:00
Volker Lendecke
1c9fe1157c Fix a warning
Without this patch I get
./libcli/security/proto.h:45: warning: 'struct auth_session_info' declared inside parameter list
(This used to be commit 078a6fdb3f)
2008-03-20 23:15:46 +01:00
Michael Adam
195853464a smbtorture: fix typos in RAW-OPLOCK output.
Michael
(This used to be commit 9fa4b53b61)
2008-03-18 16:10:46 +01:00
Stefan Metzmacher
3530099cf2 RAW-BENCH-OPEN: avoid sync calls before the main loop
On multi cpu machines the server may reply to the
first requests while the test is still in setup mode.

Now we setup the first opens, but send them all together
when entering the main loop.

metze
(This used to be commit 3f2d12c61e)
2008-03-17 16:06:07 +01:00
Stefan Metzmacher
b65ad8966a RAW-BENCH-OPEN: fix the output and calculate the total operations
metze
(This used to be commit c84e3abae9)
2008-03-17 15:50:54 +01:00
Andrew Bartlett
9a6422b695 Rework our SAMR test and SAMR server.
Now that we don't create users/domain groups/aliases in the builtin
domain, we hit some bugs in the server-side implementation of the
enumeration functions.

In essence, it turns out to be: don't treat 0 as a special case.

Also, fix up the PDC name to always be returned.  I'm sure nothing
actually uses it, particularly for BUILTIN...

Andrew Bartlett
(This used to be commit 353bb79f56)
2008-03-14 12:26:03 +11:00
Andrew Bartlett
39f03829a6 Check for Administrator as a Alias (copy&paste bug)
Andrew Bartlett
(This used to be commit e7afb31df1)
2008-03-14 10:11:03 +11:00
Stefan Metzmacher
23ab56cd80 RAW-RENAME: w2k3 just ignores a NTTRANS-RENAME!
metze
(This used to be commit cd1b8efc5d)
2008-03-12 15:13:28 +01:00
Stefan Metzmacher
2801b6a522 RAW-STREAMS: do a exit on the session after each sub tests
metze
(This used to be commit 3f7fef8b8c)
2008-03-12 14:23:30 +01:00
Stefan Metzmacher
6e9d25157d RAW-STREAMS: do what the comments say
metze
(This used to be commit eb68a8ed4f)
2008-03-12 14:23:30 +01:00
Jeremy Allison
799cfe0d76 Added test_nttransrename() to test Metze's new code.
Jeremy.
(This used to be commit 4556fafede)
2008-03-11 15:27:08 -07:00
Stefan Metzmacher
fdd7f68660 RAW-SEARCH: skip RESUME_KEY tests against samba3
metze
(This used to be commit ca5b377471)
2008-03-11 21:59:16 +01:00
Jeremy Allison
333870d5a0 Samba3.2 now passes a lot more tests - remove the S3 specific
exemptions.
Jeremy.
(This used to be commit a70719d579)
2008-03-11 13:39:04 -07:00
Jeremy Allison
fe3316431e Samba3 now passes the test_raw_oplock_exclusive3 test.
Jeremy.
(This used to be commit b2007956aa)
2008-03-11 12:37:20 -07:00
Jeremy Allison
de4a495438 Test trans2 renames with oplocks. It looks like trans2 renames
ignore share modes and oplock breaks :-(.
Jeremy.
(This used to be commit a8a5339cf2)
2008-03-11 10:21:09 -07:00
Jelmer Vernooij
e3f6a9a0d4 Move PC_FILE out of the perl code.
(This used to be commit ca8d4260ad)
2008-03-09 02:53:54 +01:00
Jelmer Vernooij
b44dcae6bb Fix the build, symlinks.
(This used to be commit c165b34805)
2008-03-09 01:22:32 +01:00
Jelmer Vernooij
6f1b023548 Fix dependencies.
(This used to be commit 5d6ce4767b)
2008-03-08 17:42:27 +01:00
Jelmer Vernooij
fb6fdfce37 Fix the build.
(This used to be commit f2e4974471)
2008-03-08 17:02:40 +01:00
Jelmer Vernooij
2bf39edc9d Push SOVERSION and VERSION out of perl code.
(This used to be commit 0ba8ac6a14)
2008-03-08 15:28:12 +01:00
Jelmer Vernooij
fc2cd5ed63 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-gmake3
(This used to be commit e4da851bd7)
2008-03-07 18:03:54 +01:00
Michael Adam
97a272a4bf torture: fix escape sequence in test_chkpath().
Michael
(This used to be commit d92597d29c)
2008-03-07 15:00:37 +01:00
Andrew Bartlett
45149fbf9d Fixup the NET-API-USERMOD test.
This test needed to be updated to handle the fact that you cannot
clear the ACB_PW_EXPIRED bit, and to always use the torture comment
functions (not printf directly).

Andrew Bartlett
(This used to be commit 2211476bbb)
2008-03-07 09:05:24 +11:00
Stefan Metzmacher
e24d47ec2e RAW-OPLOCK: rename _ack_to_levelII() -> ack_to_given()
Also improve the output.

metze
(This used to be commit d0b641a9ee)
2008-03-06 17:19:43 +01:00
Stefan Metzmacher
4bfc32b160 RAW-OPLOCK: add BATCH24 test another case with a connection with no CAP_LEVEL_II_OPLOCKS
metze
(This used to be commit 4fb2c9fb1f)
2008-03-06 17:19:43 +01:00
Stefan Metzmacher
80104efb58 RAW-OPLOCK: add BATCH23 and test with a connection with no CAP_LEVEL_II_OPLOCKS
metze
(This used to be commit 2192d6d2bd)
2008-03-06 17:19:36 +01:00
Stefan Metzmacher
bc9bb918a1 RAW-OPLOCK: remove unused vars
metze
(This used to be commit 0905f3ebd1)
2008-03-06 17:19:34 +01:00
Stefan Metzmacher
3cbe47b2ae libcli/raw: make it possible to not send CAP_LEVEL_II_OPLOCKS
But the keep the default to always send it
when the server supports it too.

metze
(This used to be commit 33caaef2e4)
2008-03-06 16:31:25 +01:00
Andrew Bartlett
c24329dc07 Fix typo
(This used to be commit e66be2f519)
2008-03-06 22:04:46 +11:00
Andrew Bartlett
85bf2abee0 Ensure we get this option from the command line, not the internal
smb.conf we generate.

Andrew Bartlett
(This used to be commit 25887c8728)
2008-03-06 22:03:10 +11:00
Andrew Bartlett
eacf38cdb6 Merge branch 'v4-0-test' of git://git.samba.org/samba into 4-0-abartlet
(This used to be commit 2232255ce3)
2008-03-06 22:02:25 +11:00
Andrew Bartlett
7e0ef3fd0e Make Samba4 pass the NET-API-BECOMEDC test against Win2k3 (again).
To make Samba4, using the python provision system, pass this test
required some major rework.  Untested code is broken code, and some of
the refactoring for a seperate provision test (which also now passes)
broke things.

Similarly, the iconv work has compiled, but these codepaths have never
been run (NULL pointer de-reference).

In working to use a local, rather than global, loadparm context, and
to support using a target directory, a few things needed to be
reworked, particularly around path handling.

Andrew Bartlett
(This used to be commit 1169e8d7be)
2008-03-06 21:55:26 +11:00
Stefan Metzmacher
8ff6647d29 RAW-OPLOCK: add BATCH22 and test the behavior of oplock break timeouts
metze
(This used to be commit c459885898)
2008-03-04 14:40:56 +01:00
Stefan Metzmacher
13764eb02d RAW-OPLOCK: add BATCH21: a self write with an oplock doesn't break it
metze
(This used to be commit a5476ee41c)
2008-03-04 14:40:51 +01:00
Jelmer Vernooij
b29d47edcf Move object file lists to the Makefile.
(This used to be commit a7e6d2a183)
2008-03-03 18:25:28 +01:00
Jelmer Vernooij
c7dc53b851 Merge branch 'v4-0-test' into id10ts-registry
(This used to be commit f98b59021a)
2008-03-03 00:23:09 +01:00
Stefan Metzmacher
e0081626ec RAW-SFILEINFO-RENAME: test renaming of directories by path and handle
metze
(This used to be commit ce2b7cec10)
2008-02-29 15:17:53 +01:00
Stefan Metzmacher
863e65e955 RAW-SFILEINFO-RENAME: test renaming by path while a handle is open on a file
metze
(This used to be commit 6c0395d4d9)
2008-02-29 15:17:53 +01:00
Stefan Metzmacher
09173244d2 RAW-CHKPATH: also use qpathinfo NAME_INFO and check the returned name
Also add some more test combinations.

metze
(This used to be commit 09985b061a)
2008-02-29 15:17:52 +01:00
Jelmer Vernooij
1ada710840 Move public header accumulation out of the perl code.
Never install generated prototype files. It's easier to break the
API when using them and they're not easily readable for 3rd party users.

Conflicts:

	source/auth/config.mk
	source/auth/credentials/config.mk
	source/auth/gensec/config.mk
	source/build/smb_build/config_mk.pm
	source/build/smb_build/main.pl
	source/build/smb_build/makefile.pm
	source/dsdb/config.mk
	source/lib/charset/config.mk
	source/lib/tdr/config.mk
	source/lib/util/config.mk
	source/libcli/config.mk
	source/libcli/ldap/config.mk
	source/librpc/config.mk
	source/param/config.mk
	source/rpc_server/config.mk
	source/torture/config.mk
(This used to be commit 6c659689ed)
2008-02-29 14:23:38 +01:00
Jelmer Vernooij
6b3ecd52d5 Fix manpage paths.
(This used to be commit 36da52abf5)
2008-02-29 14:12:36 +01:00
Jelmer Vernooij
d8d9a6ef04 Move manpage management out of the perl build system.
(This used to be commit 1dd6bea507)
2008-02-29 14:12:23 +01:00
Jelmer Vernooij
73138c1198 raw-qfsinfo: Convert to new torture API.
(This used to be commit 6ded77b777)
2008-02-29 00:58:47 +01:00
Jelmer Vernooij
d115497478 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test
(This used to be commit 80ce9a3bbc)
2008-02-29 00:47:14 +01:00
Jelmer Vernooij
9370dbfc49 Convert to new torture API.
(This used to be commit 40dffc177b)
2008-02-29 00:46:44 +01:00
Michael Adam
dfc84928d7 libreplace: add extended getifaddrs test that prints out the interfaces.
Michael
(This used to be commit 9d2bab09aa)
2008-02-28 23:01:15 +01:00
Jelmer Vernooij
2946a11dc7 Remove use of global_loadparm.
(This used to be commit 4472d7e1e4)
2008-02-28 20:30:03 +01:00