1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-09 08:58:35 +03:00

1382 Commits

Author SHA1 Message Date
Andrew Tridgell
707c94babb r1637: - w2k3 can't handle more than 1000 names in a LookupNames request
- use a SID that w2k3 likes in CreateTrustedDomain
(This used to be commit b5f25fdb7440ba21f073f4ca7fa9a8771a6ebaf4)
2007-10-10 12:57:46 -05:00
Andrew Tridgell
d4ceaff6a5 r1636: improved the negnowait test so it is standalone (taking advantage of the async APIs)
(This used to be commit 19c22760c699aa2b000f023ff6083055a27a83cb)
2007-10-10 12:57:46 -05:00
Andrew Tridgell
bff2c7a578 r1635: when a transport dies, setup errors for all pending sends and recvs, plus disalllow any more sends
(This used to be commit 326fdc8c9d2848c6c08a49e34c72430fe0116d23)
2007-10-10 12:57:45 -05:00
Andrew Tridgell
682a02d7d4 r1634: to get signing right for async requests we must send requests in
order. Fixed the linked list add to always add to the end for outgoing
requests.
(This used to be commit 81c450b434bb28b0fa8620c309f39203e8950497)
2007-10-10 12:57:45 -05:00
Andrew Tridgell
53781e9d37 r1633: fixed a couple of async oplock handling errors
(This used to be commit d7e2f39b90122088e94d4a8e8c7ffa7c91d7d664)
2007-10-10 12:57:45 -05:00
Andrew Tridgell
44194cc663 r1632: in case of error don't send uninitialised fnums on the wire
(This used to be commit 13cd58efce8fc077c7c3ced99a82344766e20c5c)
2007-10-10 12:57:45 -05:00
Andrew Tridgell
cfdd3e68be r1631: don't use req->transport after req has been destroyed
(This used to be commit 35f4ad4700de25085a2d0e5d0f9674ca2e606cd1)
2007-10-10 12:57:45 -05:00
Andrew Tridgell
94fb514376 r1630: - fixed the replacement timegm() function to work correctly for DST changes
- got rid of global_myname(), using lp_netbios_name() instead
(This used to be commit e8d4b390884e487163d81f66a5a7ac1de1305d9a)
2007-10-10 12:57:45 -05:00
Andrew Tridgell
2d9adf1ea5 r1629: server_zone needs to be "int" not "int16_t" as it can hold values
larger than 35536 (the max value is actually 12*3600 == 43200)
(This used to be commit 78dcaddbb78574b7f489989df0b1f979677bb7d5)
2007-10-10 12:57:45 -05:00
Andrew Tridgell
16e452ddf8 r1628: - fixed the comment on run_deferopen. (I also think that the
deferopen test should probably be ripped out and redone, as it
   tests the wrong thing.)

 - removed some unused code

 - add progress printing to the pipe_number test

 - fixed the dir1 test to use deltree rather than trying to re-invent it itself (in a broken manner)

 - renamed all of the tests into catagories, so you can now run
   BASE-* for the base tests, and BENCH-* for the benchmarks.
(This used to be commit 2e297be5c34086a42396acc3abf965f8dbd665cd)
2007-10-10 12:57:44 -05:00
Andrew Tridgell
f0ff2eccad r1627: make sure we initialise write_time in the deprecated function cli_ctemp()
(This used to be commit 48b5b740f1d0c252f248aa944d8487a83c016fa1)
2007-10-10 12:57:44 -05:00
Andrew Tridgell
ae81794cf8 r1619: - add support for older systems to cli_list*()
- make cli_list_new() use the last_name continue method rather than
   the trans2 findnext continue flag, as the continue flag is broken on
   win2003 (win2003 sometimes misses up to 1/3 of all files in a directory)
(This used to be commit daa9648b3f6919b1615a5737b96310c3a41a0192)
2007-10-10 12:57:44 -05:00
Andrew Tridgell
27ce337277 r1618: fixed the receipt of multi-part replies to SMBtrans2
(This used to be commit bd4106a8e57fc98d1feddc01b58f87f68164247a)
2007-10-10 12:57:44 -05:00
Jelmer Vernooij
0c55b8d8c2 r1617: Start working on the svcctl pipe
(This used to be commit 518ff5f505446fee623365fd5bdfc75c0cb93d2a)
2007-10-10 12:57:44 -05:00
Tim Potter
2768216e62 r1611: Put a brace on a new line.
(This used to be commit d9b4e45f46cd738b196f8d167cea264b3ce0d364)
2007-10-10 12:57:44 -05:00
Andrew Tridgell
578a99db4d r1606: make the low level socket read/write routines cope properly with non-blocking sockets
(This used to be commit bb6cbf29ccf8f2b556bf3e7b3ff487faa0f36773)
2007-10-10 12:57:44 -05:00
Andrew Bartlett
188a8014ea r1605: GENSEC krb5 updates - fix a valgrind found uninitialised variable, and
allow tests for 'unwrapped' krb5, allowed by Win2k3.

SPENGO changes, trying to get the logic right (when and what
sub-mechanisms to wrap).

Andrew Bartlett
(This used to be commit 8a0f7bf5e282d021afe93994a91fd76fa9c05f42)
2007-10-10 12:57:44 -05:00
Andrew Bartlett
f1a215f5cb r1604: Samba4 avoids memcpy() as much as possible - we don't need to make a copy here.
Andrew Bartlett
(This used to be commit 9efc94eeafbf0eb4488c53a1456cc7026c937f9f)
2007-10-10 12:57:43 -05:00
Andrew Tridgell
2de2ead42d r1603: fixed in.size to not overstate the packet size by 4 bytes
my apologies to abartlett for thinking this was his bug!
(This used to be commit 6edbc55ddd2fc0d4686ec3075ba9bfc72ac24315)
2007-10-10 12:57:43 -05:00
Andrew Tridgell
b5061894dc r1602: make sure we honor the use_spnego flag
(This used to be commit de764d9004a0d90479158e78e30b1266eb529e3e)
2007-10-10 12:57:43 -05:00
Jim McDonough
112c2c831b r1596: Fix up copyrights.
(This used to be commit d2553aac0a75591026b9b1fcf46065e5b03ed19c)
2007-10-10 12:57:43 -05:00
Tim Potter
cf507bf2ae r1595: Always use a loop variable named $e when iterating over lists of
elements.
(This used to be commit daf2aea67cbfa2cda1fb3da8862b152c66d9573f)
2007-10-10 12:57:43 -05:00
Tim Potter
c5cc59b1b3 r1594: Remove some array checks that we can't do because we don't store state
between scalar and buffer passes.

Fix array handling - most of the samr queryuserinfo calls now parse
properly!
(This used to be commit 10e3ba03df500ecbb24a70fb9a59c80ac64608da)
2007-10-10 12:57:43 -05:00
Tim Potter
ccbad22865 r1593: Fix bug in get_subtree() where we were always looking at the head of
the list of subtrees.
(This used to be commit 7fab5c4ecb429057c627396bdee5dc36245fb441)
2007-10-10 12:57:43 -05:00
Tim Potter
42304f6a8f r1592: Fix up subtrees for non-scalar types instead of hardcoding module subtree.
Arrays currently broken though.  )-:
(This used to be commit 8fad205c51d270cdf7f84a8cec6ebea7ccf4cead)
2007-10-10 12:57:43 -05:00
Tim Potter
8ded5420e3 r1586: Finally, a technique for putting buffers in scalars in the same
protocol tree that actually works.  Instead of trying really hard
to do this in code, just remember a list of strings and subtrees
for every tree.  (This does require the addition of a void *user_data
field to ethereal's proto_node structure).
(This used to be commit 5bc61162602f84c8a3a0b22c74c69318b92e087a)
2007-10-10 12:57:42 -05:00
Stefan Metzmacher
144bb17b06 r1585: add dcpromo.pl start, this should be configure a
samba4 ads domain controller's ldb database

metze
(This used to be commit 932e22badda84c3c1d0ee71a4dec32a21ca37e60)
2007-10-10 12:57:42 -05:00
Andrew Tridgell
5ddf678e01 r1578: the first stage of the async client rewrite.
Up to now the client code has had an async API, and operated
asynchronously at the packet level, but was not truly async in that it
assumed that it could always write to the socket and when a partial
packet came in that it could block waiting for the rest of the packet.

This change makes the SMB client library full async, by adding a
separate outgoing packet queue, using non-blocking socket IO and
having a input buffer that can fill asynchonously until the full
packet has arrived.

The main complexity was in dealing with the events structure when
using the CIFS proxy backend. In that case the same events structure
needs to be used in both the client library and the main smbd server,
so that when the client library is waiting for a reply that the main
server keeps processing packets. This required some changes in the
events library code.

Next step is to make the generated rpc client code use these new
capabilities.
(This used to be commit 96bf4da3edc4d64b0f58ef520269f3b385b8da02)
2007-10-10 12:57:42 -05:00
Stefan Metzmacher
1ce4a2d5fe r1558: the unknown_time is the same as the logon_time in the PAC_LOGON_INFO
the account_name is a 'nstring'

metze
(This used to be commit bb906e5e9e566e7ed931436956ba8323503875f9)
2007-10-10 12:57:41 -05:00
Stefan Metzmacher
dafcc76e2e r1552: commit the first version of the pidl generated krb5 PAC parser
NOTE: there a lot of work todo, maybe we need to extent pidl

metze
(This used to be commit b94a09d461291d9dd47c5859537d6025f02a80ff)
2007-10-10 12:57:41 -05:00
Stefan Metzmacher
d093b7e777 r1547: rename 'enum <bla>_level' -> 'enum smb_<bla>_level'
e.g. we now have 'union smb_mkdir' and 'enum smb_mkdir_level' in sync

we may should also rename 'RAW_MKDIR_*' -> 'SMB_MKDIR_*'

metze
(This used to be commit 0bb50dcf1ccb9797000fcbea4d8a73f2d2a3db77)
2007-10-10 12:57:41 -05:00
Stefan Metzmacher
6ec9c7bd30 r1546: fix the build the function name has changed to srvsvc_NetRemoteTOD
because I implemented the idl for it

metze
(This used to be commit 76cb9966bf961383b36846627c13b562be5edf4e)
2007-10-10 12:57:41 -05:00
Stefan Metzmacher
ae0018ad2a r1545: add some comments and move a transport function to the transport section
metze
(This used to be commit 7d5ca8cc7cdeef0fc9307f8f98366958aa4ce3c2)
2007-10-10 12:57:41 -05:00
Stefan Metzmacher
937e2a57ac r1544: add some comments and fix 'return True' -> 'return ret'
metze
(This used to be commit a9a22d1e0db32c7715809efc4bb08ea5a5a9a69b)
2007-10-10 12:57:41 -05:00
Stefan Metzmacher
b56fbe6d14 r1543: add srvsvc_NetRemoteTOD idl and torture tests
metze
(This used to be commit 3f2b77d7ec024f54dc478522d85278ced8fce617)
2007-10-10 12:57:41 -05:00
Tim Potter
ce0f008a69 r1540: - Remove return statements when a parse error is detected as ethereal
will do this for us.

- Fix a format string error

- Use subtrees for scalar and buffer elements

- Add subtree support for function request/responses

- Formatting fixups
(This used to be commit 0f7b473b4aa5845c12b387d9be8bc6501cc10136)
2007-10-10 12:57:40 -05:00
Tim Potter
013b689f91 r1535: Create a subtree for each array element.
(This used to be commit 4099e10d435436c092ca0e512fd4ddafdf4ae6a5)
2007-10-10 12:57:40 -05:00
Tim Potter
63771f7378 r1534: Alternate method of grouping togethers buffers and scalars which actually
seems to work.  We create a subtree one level higher instead of in the
parse function.
(This used to be commit 3f5c087c40c2df8c54feab1b416bc479fb739561)
2007-10-10 12:57:40 -05:00
Stefan Metzmacher
fd806c76ba r1530: we don't need to call srvsvc_NetShareGetInfo twice
in NetShareEnum and NetShareEnumAll

metze
(This used to be commit e5bf65b840cd7fbc97166c6313f5eb29de9d129f)
2007-10-10 12:57:40 -05:00
Stefan Metzmacher
fda5ab2f21 r1529: add NetSrvGetInfo torture test
metze
(This used to be commit 0018aeb2fe8c42e49fdcdd1ecc646b277625967d)
2007-10-10 12:57:40 -05:00
Stefan Metzmacher
4dbc8abcc0 r1528: add NetCharDevQ torture tests
metze
(This used to be commit d44c85176a79461bfb465a5643b855aa0d8da726)
2007-10-10 12:57:40 -05:00
Stefan Metzmacher
dbb6b8f1ec r1527: add NetCharDev torture tests
metze
(This used to be commit dde75d3b346be33213e9f38db01945ee45eff9df)
2007-10-10 12:57:40 -05:00
Stefan Metzmacher
18b511f0ce r1526: some cleanups and fixes for the srvsvc torture tests
metze
(This used to be commit 3a2a8973bee1d7e4b21cf807ef549ad3498b4e9d)
2007-10-10 12:57:39 -05:00
Stefan Metzmacher
84735e42d4 r1525: share info level 1004 is invalid,
but is not the same as the default case

metze
(This used to be commit 5fe88379ad2de0a346bb7155e74eb00cfa3ef44c)
2007-10-10 12:57:39 -05:00
Stefan Metzmacher
c0f6a5186b r1524: add some comments
metze
(This used to be commit f5240737629ccd57693f8fb162ba7baca53a4672)
2007-10-10 12:57:39 -05:00
Andrew Tridgell
bacee255dd r1523: declaring variables "in" and "out" in every C module is a bad idea!
I actually don't like this idea of sharing the request buffer
structure between client and server, and I'll see if I can convince
abartlet to revert it. It ties the two pieces of code far more
intimately than is justified, and will certainly lead to ugliness as
the client and server take different paths of development. I would far
prefer we just pass 2 arguments (pointer and length) to the signing
calls instead of 1 (the request).
(This used to be commit 70838a921185c091d0e774dd5fb0546693999e8f)
2007-10-10 12:57:39 -05:00
Andrew Bartlett
afb48b55ae r1522: Oops - I forgot this file in the prvevious commit.
This breaks the request structure out into a common part between the
client and server, which the signing code now uses.

Andrew Bartlett
(This used to be commit 33de58455a3674e8fc803fb043d26af4e2794c30)
2007-10-10 12:57:39 -05:00
Andrew Bartlett
b3c46674a6 r1521: Updates to our SMB signing code.
- This causes our client and server code to use the same core code,
  with the same debugs etc.
- In turn, this will allow the 'mandetory/fallback' signing algorithms
  to be shared, and only written once.

Updates to the SPNEGO code
- Don't wrap an empty token to the server, if we are actually already finished.

Andrew Bartlett
(This used to be commit 35b83eb329482ac1b3bc67285854cc47844ff353)
2007-10-10 12:57:39 -05:00
Andrew Tridgell
526d687cbb r1520: only call write handler or read handler, not both. This copes with the
connection being removed between calls.
(This used to be commit 446306f054b27e903c50e1d96d23041e3a8e5705)
2007-10-10 12:57:39 -05:00
Andrew Tridgell
e3e5fb0889 r1519: show the ldb_errstring() value in the log for failed ldb calls
(This used to be commit 0c5a5632a8584e55a1013da634a279c6b3a9e085)
2007-10-10 12:57:38 -05:00