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

1438 Commits

Author SHA1 Message Date
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
Andrew Tridgell
90fbb2d01f r1518: check for ldb_search giving -1 (indicating db corruption)
(This used to be commit 9af821c4dfa47d68be5e062028331c80df64f82b)
2007-10-10 12:57:38 -05:00
Andrew Tridgell
eeec610983 r1517: change event_remove_timed() to remove by structure not by handler.
this fixes a crash bug in smbd with multiple RPC clients
(This used to be commit 6e102f732e4404fc5f9b2851d12b00d2d083b43d)
2007-10-10 12:57:38 -05:00
Stefan Metzmacher
7a0e61f38e 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
(This used to be commit 786c00c3d4f510c870a45f11af69281298ba176d)
2007-10-10 12:57:38 -05:00
Stefan Metzmacher
b11e1a41d8 r1515: move dublicate code to a function
metze
(This used to be commit a8ec53c81ad939156654c9ad99a53aa2d679f711)
2007-10-10 12:57:38 -05:00
Stefan Metzmacher
a1748ef743 r1514: close stuff from the server_connection not in the
close_connection fn of a specific service

metze
(This used to be commit 0e1f5e66d37deb7a77ae9f545e60685428fd9d21)
2007-10-10 12:57:37 -05:00
Stefan Metzmacher
3d4879fdc9 r1513: change DEBUG level to 1
metze
(This used to be commit d7dd5347dd9414cfa604eeb24cb2f6dc5f99e703)
2007-10-10 12:57:37 -05:00
Andrew Tridgell
ee7eb7c515 r1512: fixed a bug where we could reference the timer event handler after destruction
(This used to be commit e966d8a1f398dc1ddf5843bc3327a3160f0d49f9)
2007-10-10 12:57:37 -05:00
Andrew Tridgell
6f47dec364 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
(This used to be commit 31d55dfb443612a341ff6ade77c6e4477c4fefca)
2007-10-10 12:57:37 -05:00
Andrew Tridgell
f348037f7b r1510: add a commented out routine I used to test password change on NT3.
(This used to be commit fb5796b0dccf7cd518db03e6456d986f17e50345)
2007-10-10 12:57:36 -05:00
Andrew Tridgell
2392e9aaa7 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.
(This used to be commit a4a89cffd85c213a4d751c24ccda438e44df4d2e)
2007-10-10 12:57:36 -05:00
Andrew Tridgell
4f5e07cef8 r1508: simple fix for broken server side signing. This may need more work for
SPNEGO, but I'll leave andrew to tackle that.
(This used to be commit 5dd71be8d9e49277f17668877e47729c340f0f67)
2007-10-10 12:57:36 -05:00
Andrew Tridgell
a02809e28e r1507: fixed the handling of SMB chaining with the new server structure. You
must think carefully about packet chaining when dealing with any
authentication or SMB parsing issues. The particular problem here was
that a chained tconX didn't get the req->session setup after an
initial sesstion setup call, so the tconx used a bogus VUID.
(This used to be commit 6f2a335cd623211071b01d982d4e7c69b49a5602)
2007-10-10 12:57:36 -05:00
Stefan Metzmacher
5779a7da9a r1499: combine struct user_struct and struct smbsrv_user
to a struct smbsrv_session that the same as cli_session for the client

we need a gensec_security pointer there
(spnego support will follow)

prefix some related functions with smbsrv_

metze
(This used to be commit f276378157bb9994c4c91ce46150a510de5c33f8)
2007-10-10 12:57:36 -05:00