Andrew Bartlett [Wed, 11 Aug 2004 19:29:22 +0000 (19:29 +0000)]
r1735: Clean up SMB signing - we don't have more than one 'real' way to sign
a packet, so don't pretend we do...
Andrew Bartlett
Andrew Bartlett [Wed, 11 Aug 2004 18:09:40 +0000 (18:09 +0000)]
r1731: Add server-side SPNEGO support to Samba (disabled, until SMB signing
is reworked).
Andrew Bartlett
Andrew Bartlett [Wed, 11 Aug 2004 18:08:46 +0000 (18:08 +0000)]
r1730: We cannot dereference c->tree here, as there is not a tree yet.
Andrew Bartlett
Andrew Bartlett [Wed, 11 Aug 2004 18:05:30 +0000 (18:05 +0000)]
r1729: Make the SMB signing code more generic (to share more between client and servers).
Andrew Bartlett
Andrew Bartlett [Wed, 11 Aug 2004 16:17:43 +0000 (16:17 +0000)]
r1727: SPNEGO session setup replies need to include the blob, even on error
cases, so don't shorten them back to 0 byte data length.
Andrew Bartlett
Andrew Bartlett [Wed, 11 Aug 2004 16:16:28 +0000 (16:16 +0000)]
r1726: Fix up the comments and indenting.
Andrew Bartlett
Andrew Bartlett [Wed, 11 Aug 2004 16:15:21 +0000 (16:15 +0000)]
r1725: Remove a silly 'utility' function.
Andrew Bartlett
Andrew Bartlett [Wed, 11 Aug 2004 16:13:25 +0000 (16:13 +0000)]
r1724: Add a new function to return the list of available OIDs.
(Used in our SPNEGO code).
Andrew Bartlett
Andrew Bartlett [Wed, 11 Aug 2004 16:09:54 +0000 (16:09 +0000)]
r1723: Make sure we bail out on error in reading a OID.
Andrew Bartlett
Jelmer Vernooij [Wed, 11 Aug 2004 00:02:11 +0000 (00:02 +0000)]
r1714: Initial docs on DCOM stuff and build utilities
Andrew Tridgell [Tue, 10 Aug 2004 23:06:59 +0000 (23:06 +0000)]
r1712: this should fix a bug with a spinning client when a server dies
unexpectedly. bug found by abartlett.
Jelmer Vernooij [Tue, 10 Aug 2004 22:21:12 +0000 (22:21 +0000)]
r1711: Add ServerAlive2
Stefan Metzmacher [Tue, 10 Aug 2004 21:33:27 +0000 (21:33 +0000)]
r1708: fix jelmers bugs:-)
metze
Jelmer Vernooij [Tue, 10 Aug 2004 21:16:19 +0000 (21:16 +0000)]
r1706: More IDL pipes
Jelmer Vernooij [Tue, 10 Aug 2004 20:55:42 +0000 (20:55 +0000)]
r1703: - Lots of RPC updates, adding new pipes and protocols.
- More updates/fixes to the ethereal parser generator
Jelmer Vernooij [Tue, 10 Aug 2004 18:47:26 +0000 (18:47 +0000)]
r1701: Bugfixes to Tim's ethereal parser generator
Jelmer Vernooij [Tue, 10 Aug 2004 18:46:36 +0000 (18:46 +0000)]
r1700: make version default to 0.0 (same as midl)
Jelmer Vernooij [Tue, 10 Aug 2004 18:44:58 +0000 (18:44 +0000)]
r1699: Formatting update, bugfixes
Andrew Bartlett [Tue, 10 Aug 2004 04:56:44 +0000 (04:56 +0000)]
r1687: Fix bogus requirement for SMB signing on guest connections.
Andrew Bartlett
Andrew Bartlett [Tue, 10 Aug 2004 04:38:03 +0000 (04:38 +0000)]
r1686: Don't use a void* for the context inside the SMB signing code.
Andrew Bartlett
Andrew Bartlett [Tue, 10 Aug 2004 04:28:00 +0000 (04:28 +0000)]
r1685: Add the ability to lookup RPC auth types for the RPC-MGMT torture test.
Andrew Bartlett
Stefan Metzmacher [Tue, 10 Aug 2004 01:03:44 +0000 (01:03 +0000)]
r1679: fix add the extrasids and resource group array in
the EXTRA_SIDS idl isn't verified to be correct yet
metze
Andrew Tridgell [Mon, 9 Aug 2004 21:03:38 +0000 (21:03 +0000)]
r1677: security descriptors are always little-endian, regardless of DCE/RPC
level byte order flags
Andrew Tridgell [Mon, 9 Aug 2004 20:51:16 +0000 (20:51 +0000)]
r1676: - improved the handling of username/password in locktest and gentest
- use lp_maxprotocol() in the libcli/raw/ negotiate code, so we obey
the smb.conf "max protocol" option
- better handling of -M option in masktest
Andrew Tridgell [Mon, 9 Aug 2004 20:47:57 +0000 (20:47 +0000)]
r1675: netlogon deltas IDL update from Richard Renard
Andrew Tridgell [Mon, 9 Aug 2004 20:47:31 +0000 (20:47 +0000)]
r1674: fixed a bug in the handling of STR_LEN8BIT flagged strings
Andrew Tridgell [Mon, 9 Aug 2004 20:34:59 +0000 (20:34 +0000)]
r1673: using the new [relative] pidl handling, the PAC decode is now much closer
Andrew Tridgell [Mon, 9 Aug 2004 19:40:24 +0000 (19:40 +0000)]
r1671: make [relative] pointers in idl much more generic, treating them just
like normal pointers in most cases. This means we can now support
relative pointers to unions, builtin types etc, whereas we could only
previously support relative pointers to structures.
metze needs this for the PAC decoding.
Andrew Tridgell [Fri, 6 Aug 2004 02:32:48 +0000 (02:32 +0000)]
r1662: add a copy of the GPL text to the samba4 svn tree
Andrew Tridgell [Thu, 5 Aug 2004 05:03:04 +0000 (05:03 +0000)]
r1657: fixed the string types of two strings in svcctl.
we still need to fix the handling of subcontexts
Stefan Metzmacher [Wed, 4 Aug 2004 13:23:35 +0000 (13:23 +0000)]
r1654: rename cli_ -> smbcli_
rename CLI_ -> SMBCLI_
metze
Stefan Metzmacher [Wed, 4 Aug 2004 09:33:41 +0000 (09:33 +0000)]
r1649: do a join as dc and run this test as the machine account
metze
Stefan Metzmacher [Wed, 4 Aug 2004 09:30:24 +0000 (09:30 +0000)]
r1648: the endpoints for the DRSUAPI pipe are
lsass,protected_storage not drsuapi:-)
metze
Stefan Metzmacher [Wed, 4 Aug 2004 07:44:14 +0000 (07:44 +0000)]
r1647: destroy mem_ctx
metze
Andrew Tridgell [Wed, 4 Aug 2004 06:01:10 +0000 (06:01 +0000)]
r1646: disable testing of group rename in the RPC-SAMR test, as it leaves the
group in a state where it can't be deleted via samr, which breaks
repeated runs of the test.
Andrew Tridgell [Wed, 4 Aug 2004 06:00:14 +0000 (06:00 +0000)]
r1645: added a debug when a RPC fault is received
Andrew Tridgell [Wed, 4 Aug 2004 05:59:40 +0000 (05:59 +0000)]
r1644: changed the way [relative] pointers work in pidl, making them much
simpler. This doesn't appear to hurt any of the existing uses of
[relative], but fixes its use for svcctl that jelmer is working on.
Jelmer Vernooij [Tue, 3 Aug 2004 23:06:15 +0000 (23:06 +0000)]
r1642: Torture test for EnumServicesStatus, almost finished.
Jelmer Vernooij [Tue, 3 Aug 2004 23:05:43 +0000 (23:05 +0000)]
r1641: Finish IDL for EnumServicesStatus
Andrew Tridgell [Tue, 3 Aug 2004 12:30:17 +0000 (12:30 +0000)]
r1637: - w2k3 can't handle more than 1000 names in a LookupNames request
- use a SID that w2k3 likes in CreateTrustedDomain
Andrew Tridgell [Tue, 3 Aug 2004 08:04:51 +0000 (08:04 +0000)]
r1636: improved the negnowait test so it is standalone (taking advantage of the async APIs)
Andrew Tridgell [Tue, 3 Aug 2004 08:04:11 +0000 (08:04 +0000)]
r1635: when a transport dies, setup errors for all pending sends and recvs, plus disalllow any more sends
Andrew Tridgell [Tue, 3 Aug 2004 07:16:41 +0000 (07:16 +0000)]
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.
Andrew Tridgell [Tue, 3 Aug 2004 06:52:06 +0000 (06:52 +0000)]
r1633: fixed a couple of async oplock handling errors
Andrew Tridgell [Tue, 3 Aug 2004 06:50:58 +0000 (06:50 +0000)]
r1632: in case of error don't send uninitialised fnums on the wire
Andrew Tridgell [Tue, 3 Aug 2004 05:59:28 +0000 (05:59 +0000)]
r1631: don't use req->transport after req has been destroyed
Andrew Tridgell [Tue, 3 Aug 2004 05:47:24 +0000 (05:47 +0000)]
r1630: - fixed the replacement timegm() function to work correctly for DST changes
- got rid of global_myname(), using lp_netbios_name() instead
Andrew Tridgell [Tue, 3 Aug 2004 05:44:48 +0000 (05:44 +0000)]
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)
Andrew Tridgell [Tue, 3 Aug 2004 04:44:27 +0000 (04:44 +0000)]
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.
Andrew Tridgell [Tue, 3 Aug 2004 04:15:05 +0000 (04:15 +0000)]
r1627: make sure we initialise write_time in the deprecated function cli_ctemp()
Andrew Tridgell [Mon, 2 Aug 2004 07:40:55 +0000 (07:40 +0000)]
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)
Andrew Tridgell [Mon, 2 Aug 2004 05:51:42 +0000 (05:51 +0000)]
r1618: fixed the receipt of multi-part replies to SMBtrans2
Jelmer Vernooij [Mon, 2 Aug 2004 00:24:04 +0000 (00:24 +0000)]
r1617: Start working on the svcctl pipe
Tim Potter [Fri, 30 Jul 2004 05:30:14 +0000 (05:30 +0000)]
r1611: Put a brace on a new line.
Andrew Tridgell [Thu, 29 Jul 2004 11:55:57 +0000 (11:55 +0000)]
r1606: make the low level socket read/write routines cope properly with non-blocking sockets
Andrew Bartlett [Thu, 29 Jul 2004 10:33:36 +0000 (10:33 +0000)]
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
Andrew Bartlett [Thu, 29 Jul 2004 10:13:34 +0000 (10:13 +0000)]
r1604: Samba4 avoids memcpy() as much as possible - we don't need to make a copy here.
Andrew Bartlett
Andrew Tridgell [Thu, 29 Jul 2004 09:30:54 +0000 (09:30 +0000)]
r1603: fixed in.size to not overstate the packet size by 4 bytes
my apologies to abartlett for thinking this was his bug!
Andrew Tridgell [Thu, 29 Jul 2004 08:14:34 +0000 (08:14 +0000)]
r1602: make sure we honor the use_spnego flag
Jim McDonough [Wed, 28 Jul 2004 13:08:08 +0000 (13:08 +0000)]
r1596: Fix up copyrights.
Tim Potter [Tue, 27 Jul 2004 19:08:34 +0000 (19:08 +0000)]
r1595: Always use a loop variable named $e when iterating over lists of
elements.
Tim Potter [Tue, 27 Jul 2004 18:45:18 +0000 (18:45 +0000)]
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!
Tim Potter [Tue, 27 Jul 2004 18:43:39 +0000 (18:43 +0000)]
r1593: Fix bug in get_subtree() where we were always looking at the head of
the list of subtrees.
Tim Potter [Tue, 27 Jul 2004 10:56:34 +0000 (10:56 +0000)]
r1592: Fix up subtrees for non-scalar types instead of hardcoding module subtree.
Arrays currently broken though. )-:
Tim Potter [Mon, 26 Jul 2004 04:11:18 +0000 (04:11 +0000)]
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).
Stefan Metzmacher [Sun, 25 Jul 2004 15:09:48 +0000 (15:09 +0000)]
r1585: add dcpromo.pl start, this should be configure a
samba4 ads domain controller's ldb database
metze
Andrew Tridgell [Fri, 23 Jul 2004 06:40:49 +0000 (06:40 +0000)]
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.
Stefan Metzmacher [Wed, 21 Jul 2004 09:57:39 +0000 (09:57 +0000)]
r1558: the unknown_time is the same as the logon_time in the PAC_LOGON_INFO
the account_name is a 'nstring'
metze
Stefan Metzmacher [Tue, 20 Jul 2004 20:30:29 +0000 (20:30 +0000)]
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
Stefan Metzmacher [Mon, 19 Jul 2004 10:35:05 +0000 (10:35 +0000)]
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
Stefan Metzmacher [Mon, 19 Jul 2004 10:15:33 +0000 (10:15 +0000)]
r1546: fix the build the function name has changed to srvsvc_NetRemoteTOD
because I implemented the idl for it
metze
Stefan Metzmacher [Mon, 19 Jul 2004 06:49:53 +0000 (06:49 +0000)]
r1545: add some comments and move a transport function to the transport section
metze
Stefan Metzmacher [Mon, 19 Jul 2004 06:41:34 +0000 (06:41 +0000)]
r1544: add some comments and fix 'return True' -> 'return ret'
metze
Stefan Metzmacher [Mon, 19 Jul 2004 06:14:00 +0000 (06:14 +0000)]
r1543: add srvsvc_NetRemoteTOD idl and torture tests
metze
Tim Potter [Sat, 17 Jul 2004 03:43:15 +0000 (03:43 +0000)]
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
Tim Potter [Fri, 16 Jul 2004 12:59:16 +0000 (12:59 +0000)]
r1535: Create a subtree for each array element.
Tim Potter [Fri, 16 Jul 2004 12:58:33 +0000 (12:58 +0000)]
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.
Stefan Metzmacher [Fri, 16 Jul 2004 09:51:54 +0000 (09:51 +0000)]
r1530: we don't need to call srvsvc_NetShareGetInfo twice
in NetShareEnum and NetShareEnumAll
metze
Stefan Metzmacher [Fri, 16 Jul 2004 09:36:17 +0000 (09:36 +0000)]
r1529: add NetSrvGetInfo torture test
metze
Stefan Metzmacher [Fri, 16 Jul 2004 09:25:52 +0000 (09:25 +0000)]
r1528: add NetCharDevQ torture tests
metze
Stefan Metzmacher [Fri, 16 Jul 2004 09:10:36 +0000 (09:10 +0000)]
r1527: add NetCharDev torture tests
metze
Stefan Metzmacher [Fri, 16 Jul 2004 08:56:11 +0000 (08:56 +0000)]
r1526: some cleanups and fixes for the srvsvc torture tests
metze
Stefan Metzmacher [Fri, 16 Jul 2004 08:53:20 +0000 (08:53 +0000)]
r1525: share info level 1004 is invalid,
but is not the same as the default case
metze
Stefan Metzmacher [Fri, 16 Jul 2004 07:20:15 +0000 (07:20 +0000)]
r1524: add some comments
metze
Andrew Tridgell [Fri, 16 Jul 2004 03:57:04 +0000 (03:57 +0000)]
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).
Andrew Bartlett [Fri, 16 Jul 2004 03:10:48 +0000 (03:10 +0000)]
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
Andrew Bartlett [Fri, 16 Jul 2004 02:54:57 +0000 (02:54 +0000)]
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
Andrew Tridgell [Thu, 15 Jul 2004 10:16:40 +0000 (10:16 +0000)]
r1520: only call write handler or read handler, not both. This copes with the
connection being removed between calls.
Andrew Tridgell [Thu, 15 Jul 2004 10:08:56 +0000 (10:08 +0000)]
r1519: show the ldb_errstring() value in the log for failed ldb calls
Andrew Tridgell [Thu, 15 Jul 2004 10:07:45 +0000 (10:07 +0000)]
r1518: check for ldb_search giving -1 (indicating db corruption)
Andrew Tridgell [Thu, 15 Jul 2004 10:07:05 +0000 (10:07 +0000)]
r1517: change event_remove_timed() to remove by structure not by handler.
this fixes a crash bug in smbd with multiple RPC clients
Stefan Metzmacher [Thu, 15 Jul 2004 09:43:32 +0000 (09:43 +0000)]
r1516: remove the server_connection from the list on the server_socket
and call talloc_destroy(srv_conn->mem_ctx)
also don't follow NULL pointers
metze
Stefan Metzmacher [Thu, 15 Jul 2004 08:59:07 +0000 (08:59 +0000)]
r1515: move dublicate code to a function
metze
Stefan Metzmacher [Thu, 15 Jul 2004 08:28:19 +0000 (08:28 +0000)]
r1514: close stuff from the server_connection not in the
close_connection fn of a specific service
metze
Stefan Metzmacher [Thu, 15 Jul 2004 08:26:41 +0000 (08:26 +0000)]
r1513: change DEBUG level to 1
metze
Andrew Tridgell [Thu, 15 Jul 2004 07:44:46 +0000 (07:44 +0000)]
r1512: fixed a bug where we could reference the timer event handler after destruction
Andrew Tridgell [Thu, 15 Jul 2004 07:16:15 +0000 (07:16 +0000)]
r1511: fixed a free() that should be ldb_free()
this might explain the tdb corruption that metze found - it caused heap corruption that affected tdb
Andrew Tridgell [Thu, 15 Jul 2004 05:13:08 +0000 (05:13 +0000)]
r1510: add a commented out routine I used to test password change on NT3.
Andrew Tridgell [Thu, 15 Jul 2004 05:11:27 +0000 (05:11 +0000)]
r1509: in order to interoperate with NT3.1 we need to ignore extra data at the end of RPC PDUs.
It turns out that NT3.1 adds junk onto the end of every PDU.
Andrew Tridgell [Thu, 15 Jul 2004 05:04:17 +0000 (05:04 +0000)]
r1508: simple fix for broken server side signing. This may need more work for
SPNEGO, but I'll leave andrew to tackle that.