1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-25 06:04:04 +03:00

576 Commits

Author SHA1 Message Date
Andrew Tridgell
b95493d3d1 r3386: - fixed --seed option in smbtorture
- added new tests BASE-NTDENY1 and BASE-NTDENY2. These are the
  ntcreatex equivalents of the BASE-DENY1 and BASE-DENY2
  tests. Unfortunately, with ntcreatex there are 4 million combination
  and trying each one takes 1 second, so randomised testing is the
  only choice. The BASE-DENY1 test can operate in parallel with
  hundreds of connections, speeding things up a bit (as most time is
  spent waiting 1 second for a sharing violation to come back)
2007-10-10 13:05:03 -05:00
Andrew Tridgell
e23edf762c r3383: avoid multi-part SMBtrans and SMBtrans2 replies until our client library can handle
them properly (they are difficult to do in an async fashion).

By choosing trans.in.max_data to fix in the negotiated buffer size a
server won't send us multi-part replies.

I notice that windows seems to avoid them too :)
2007-10-10 13:05:03 -05:00
Jelmer Vernooij
a71d51dd3b r3348: More registry fixes and additions. The following functions work right now against samba 4, at least with a ldb backend:
winreg_Open*
winreg_OpenKey
winreg_EnumKey
winreg_DeleteKey
winreg_CreateKey
2007-10-10 13:04:58 -05:00
Jelmer Vernooij
da65a248c2 r3340: Various fixes in the registry code. Implement the EnumKey call
in the server.
2007-10-10 13:04:57 -05:00
Jelmer Vernooij
87833cc758 r3332: Check result codes in some more places... 2007-10-10 13:04:56 -05:00
Andrew Tridgell
1629b593c6 r3325: missed one of the torture changes ... 2007-10-10 13:04:55 -05:00
Andrew Tridgell
7067bb9b52 r3324: made the smbtorture code completely warning free 2007-10-10 13:04:55 -05:00
Andrew Tridgell
5921587ec2 r3323: more warning reductions 2007-10-10 13:04:55 -05:00
Volker Lendecke
5e8fd27d6e r3317: Fix the build 2007-10-10 13:04:53 -05:00
Andrew Tridgell
32dccf91cf r3288: - updated the path processing in pvfs to pass the RAW-CHKPATH test. This
rather extensive test reveals some really bizarre error code
  handling in w2k3.

- extended and simplified the RAW-CHKPATH test, making it easier to
  read (note that Samba3 fails the new tests - jra may wish to look)

- marked RAW-CHKPATH as pass for pvfs
2007-10-10 13:04:50 -05:00
Andrew Tridgell
7f2c771b0e r3278: - rewrote the client side rpc connection code to use lib/socket/
rather than doing everything itself. This greatly simplifies the
  code, although I really don't like the socket_recv() interface (it
  always allocates memory for you, which means an extra memcpy in this
  code)

- fixed several bugs in the socket_ipv4.c code, in particular client
  side code used a non-blocking connect but didn't handle EINPROGRESS,
  so it had no chance of working. Also fixed the error codes, using
  map_nt_error_from_unix()

- cleaned up and expanded map_nt_error_from_unix()

- changed interpret_addr2() to not take a mem_ctx. It makes absolutely
  no sense to allocate a fixed size 4 byte structure like this. Dozens
  of places in the code were also using interpret_addr2() incorrectly
  (precisely because the allocation made no sense)
2007-10-10 13:04:49 -05:00
Andrew Tridgell
bc83d823b2 r3276: - allow for more than 256 open old style searches (limit currently set at an arbitrary 5000)
- auto-cleanup old searches that the client forgot to close (common with old searches)

- expanded the RAW-SEARCH test to test more than 256 old searches, and
  old search rewind (w2k3 fails this - it appears to not support rewind
  on old style searches)
2007-10-10 13:04:48 -05:00
Andrew Tridgell
cc93813e4a r3271: use "struct messaging_context *" instead of "void *" in messaging API 2007-10-10 13:04:48 -05:00
Andrew Tridgell
8ba10229c3 r3270: - added another unlink test
- removed BASE-TRANS2 from the list of tests to be worked on (its
  already in the "passes" list)
2007-10-10 13:04:48 -05:00
Andrew Tridgell
05530bfb99 r3261: added seek to RAW-SEARCH test 2007-10-10 13:04:47 -05:00
Andrew Tridgell
cc58d249f9 r3259: expanded the RAW-SEARCH test some more 2007-10-10 13:04:47 -05:00
Andrew Tridgell
097823bbde r3257: make the RAW-SEARCH test less sensitive to the servers directory ordering 2007-10-10 13:04:47 -05:00
Andrew Tridgell
98f6dbdba4 r3254: - expanded the RAW-IOCTL test
- fixed the old ioctl interface to not check handle before failing

- pvs now passes RAW-IOCTL
2007-10-10 13:04:46 -05:00
Andrew Tridgell
d4042c4364 r3251: - move the openattr test code into basic/attr.c
- cleaned up the RAW-WRITE test so it passes against w2k3, and gives
  more useful error messages
2007-10-10 13:04:46 -05:00
Andrew Tridgell
3d5f7f4ac4 r3245: use __location__ in RAW-SEARCH 2007-10-10 13:04:45 -05:00
Andrew Tridgell
ecd4e315b9 r3242: make the RAW-READ test not exercise the 0-0 lock, which is not deterministic 2007-10-10 13:04:45 -05:00
Andrew Tridgell
5b239ad57b r3236: test a few more combinations in RAW-UNLINK 2007-10-10 13:04:43 -05:00
Andrew Tridgell
e07c557eca r3235: try readx beyond 64k in RAW-READ 2007-10-10 13:04:43 -05:00
Volker Lendecke
478ba62915 r3218: Fix the build 2007-10-10 13:04:42 -05:00
Andrew Tridgell
efaa0eaec4 r3207: - reformat error msgs in BASE-DIR* tests
- added support for mandatory attributes in old style directory search

- we now pass BASE-DIR1 and BASE-DIR2
2007-10-10 13:04:41 -05:00
Andrew Tridgell
3f247ec21c r3206: - added the reverse map for ERRbaduid to NT_STATUS_INVALID_HANDLE
- force disable spnego in the RAW-CONTEXT test (it breaks the test)
2007-10-10 13:04:41 -05:00
Andrew Tridgell
eca85d26ed r3203: moved more test functions into torture/basic/*.c
the idea is that torture/torture.c should eventually be just the
harness code, which will make it easier to read
2007-10-10 13:04:40 -05:00
Andrew Tridgell
17f10a39c8 r3199: added a couple more test paths to RAW-CHKPATH 2007-10-10 13:04:40 -05:00
Andrew Tridgell
41adb385f1 r3198: check for too many .. components in filenames
pvfs now passes RAW-MKDIR
2007-10-10 13:04:40 -05:00
Andrew Tridgell
fb1929743a r3191: use __location__ in RAW-UNLINK test 2007-10-10 13:04:38 -05:00
Andrew Tridgell
3f60775916 r3188: tidy up the rename test a bit more 2007-10-10 13:04:38 -05:00
Andrew Tridgell
c5e72b05d7 r3182: separate out the BASE-RENAME test into torture/basic/rename.c 2007-10-10 13:04:37 -05:00
Andrew Tridgell
0dae9fef09 r3180: - basic support for SEC_RIGHT_MAXIMUM_ALLOWED in pvfs
- RAW-CONTEXT test now passes
2007-10-10 13:04:37 -05:00
Andrew Tridgell
a10fca41de r3173: make the RAW-QFILEINFO test cope better with null strings from the server 2007-10-10 13:04:36 -05:00
Jelmer Vernooij
45a3e2a981 r3168: Use generic function for looking up endpoints 2007-10-10 13:02:29 -05:00
Jelmer Vernooij
18582083af r3167: Add a member 'endpoint' to the dcerpc_binding struct to use instead of
options[0].
2007-10-10 13:02:28 -05:00
Jelmer Vernooij
b15cfbe251 r3162: Add client-side support for the ncalrpc: and ncacn_unix_stream: transports.
ncalrpc uses the new config option "ncalrpc dir" for creating unix sockets.
2007-10-10 13:02:27 -05:00
Jelmer Vernooij
a0c4138edf r3157: Add ncacn_http 2007-10-10 13:02:27 -05:00
Jelmer Vernooij
f41dfc6c5a r3156: Couple of fixes in the conversion functions between binding structs and
protocol towers
2007-10-10 13:02:26 -05:00
Andrew Tridgell
739c9e401c r3155: reformat a delete test 2007-10-10 13:02:26 -05:00
Andrew Tridgell
d7b0dece6f r3152: reformatted some of the delete test code 2007-10-10 13:02:26 -05:00
Andrew Tridgell
022b21460a r3150: printing __location__ is more useful than a operation number 2007-10-10 13:02:26 -05:00
Andrew Tridgell
50379a0a58 r3149: separate the delete on close test into torture/basic/delete.c 2007-10-10 13:02:26 -05:00
Andrew Tridgell
6e87feb89c r3148: make --failures work for the BASE-DENY1 and BASE-DENY2 tests 2007-10-10 13:02:25 -05:00
Jelmer Vernooij
d560dcbdb8 r3136: - Allow specifying socket type when adding smbd service
- Make sure a epm_tower struct is completely initialized
- Some more minor fixes
2007-10-10 13:02:25 -05:00
Andrew Tridgell
f8d12d4b4a r3130: - added a LOCAL-IDTREE test suite
- made idtree return a "struct idr_context *" instead of a void*

- more efficient idr_remove for ids that are not present (patch from Jim Houston)
2007-10-10 13:02:24 -05:00
Jelmer Vernooij
0609f410ef r3125: Store object UUID directly instead of using a pointer (struct dcerpc_binding)
Let test fail if messaging_init() fails instead of generating segfault in the LOCAL-MESSAGING test
2007-10-10 13:02:23 -05:00
Jelmer Vernooij
88c6d34bba r3124: Add dcerpc_binding_from_tower()
Add tests for dcerpc_binding_from_tower()
2007-10-10 13:02:23 -05:00
Jelmer Vernooij
7a07c2c769 r3123: Add dcerpc_binding_build_tower()
Add local test for testing the functions dcerpc_parse_binding(),
	dcerpc_binding_string() and dcerpc_binding_build_tower()
2007-10-10 13:02:23 -05:00
Jelmer Vernooij
7baf493966 r3112: Fix two more instances of epm_towers (sorry, metze!) 2007-10-10 13:02:22 -05:00