kai/samba.git
12 years agor1662: add a copy of the GPL text to the samba4 svn tree
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
(This used to be commit 74cc2cda92f72272c7ba437912794a1e5adf591c)

12 years agor1657: fixed the string types of two strings in svcctl.
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
(This used to be commit 589c5e394ca1c7ef29f2a0f755a5f932ce60dde5)

12 years agor1654: rename cli_ -> smbcli_
Stefan Metzmacher [Wed, 4 Aug 2004 13:23:35 +0000 (13:23 +0000)]
r1654: rename cli_ -> smbcli_
rename CLI_ -> SMBCLI_

metze
(This used to be commit 8441750fd9427dd6fe477f27e603821b4026f038)

12 years agor1649: do a join as dc and run this test as the machine account
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
(This used to be commit 59de2b1f528fb82fbfcf9c3783dd733a36d3fb6c)

12 years agor1648: the endpoints for the DRSUAPI pipe are
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
(This used to be commit a60ce66a01ff7528778dfded43d2a6e893acc5e2)

12 years agor1647: destroy mem_ctx
Stefan Metzmacher [Wed, 4 Aug 2004 07:44:14 +0000 (07:44 +0000)]
r1647: destroy mem_ctx

metze
(This used to be commit 973ac69a012e579a09807d635061ff3550a10719)

12 years agor1646: disable testing of group rename in the RPC-SAMR test, as it leaves the
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.
(This used to be commit bcad9efd728983c2d8932ef93eebd3d0c6d4d085)

12 years agor1645: added a debug when a RPC fault is received
Andrew Tridgell [Wed, 4 Aug 2004 06:00:14 +0000 (06:00 +0000)]
r1645: added a debug when a RPC fault is received
(This used to be commit cb1830909952dd0d0fed2090e820f1ee2552a7a2)

12 years agor1644: changed the way [relative] pointers work in pidl, making them much
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.
(This used to be commit 573f56a44785526d15c0179c5bbdab4c8b9461f1)

12 years agor1642: Torture test for EnumServicesStatus, almost finished.
Jelmer Vernooij [Tue, 3 Aug 2004 23:06:15 +0000 (23:06 +0000)]
r1642: Torture test for EnumServicesStatus, almost finished.
(This used to be commit fb2ca1f4cde014c93a0741b8ba03d2d9caffd8df)

12 years agor1641: Finish IDL for EnumServicesStatus
Jelmer Vernooij [Tue, 3 Aug 2004 23:05:43 +0000 (23:05 +0000)]
r1641: Finish IDL for EnumServicesStatus
(This used to be commit c395652aa033502e4e0944b8031c869f479c888a)

12 years agor1637: - w2k3 can't handle more than 1000 names in a LookupNames request
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
(This used to be commit b5f25fdb7440ba21f073f4ca7fa9a8771a6ebaf4)

12 years agor1636: improved the negnowait test so it is standalone (taking advantage of the async...
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)
(This used to be commit 19c22760c699aa2b000f023ff6083055a27a83cb)

12 years agor1635: when a transport dies, setup errors for all pending sends and recvs, plus...
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
(This used to be commit 326fdc8c9d2848c6c08a49e34c72430fe0116d23)

12 years agor1634: to get signing right for async requests we must send requests in
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.
(This used to be commit 81c450b434bb28b0fa8620c309f39203e8950497)

12 years agor1633: fixed a couple of async oplock handling errors
Andrew Tridgell [Tue, 3 Aug 2004 06:52:06 +0000 (06:52 +0000)]
r1633: fixed a couple of async oplock handling errors
(This used to be commit d7e2f39b90122088e94d4a8e8c7ffa7c91d7d664)

12 years agor1632: in case of error don't send uninitialised fnums on the wire
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
(This used to be commit 13cd58efce8fc077c7c3ced99a82344766e20c5c)

12 years agor1631: don't use req->transport after req has been destroyed
Andrew Tridgell [Tue, 3 Aug 2004 05:59:28 +0000 (05:59 +0000)]
r1631: don't use req->transport after req has been destroyed
(This used to be commit 35f4ad4700de25085a2d0e5d0f9674ca2e606cd1)

12 years agor1630: - fixed the replacement timegm() function to work correctly for DST changes
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
(This used to be commit e8d4b390884e487163d81f66a5a7ac1de1305d9a)

12 years agor1629: server_zone needs to be "int" not "int16_t" as it can hold values
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)
(This used to be commit 78dcaddbb78574b7f489989df0b1f979677bb7d5)

12 years agor1628: - fixed the comment on run_deferopen. (I also think that the
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.
(This used to be commit 2e297be5c34086a42396acc3abf965f8dbd665cd)

12 years agor1627: make sure we initialise write_time in the deprecated function cli_ctemp()
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()
(This used to be commit 48b5b740f1d0c252f248aa944d8487a83c016fa1)

12 years agor1619: - add support for older systems to cli_list*()
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)
(This used to be commit daa9648b3f6919b1615a5737b96310c3a41a0192)

12 years agor1618: fixed the receipt of multi-part replies to SMBtrans2
Andrew Tridgell [Mon, 2 Aug 2004 05:51:42 +0000 (05:51 +0000)]
r1618: fixed the receipt of multi-part replies to SMBtrans2
(This used to be commit bd4106a8e57fc98d1feddc01b58f87f68164247a)

12 years agor1617: Start working on the svcctl pipe
Jelmer Vernooij [Mon, 2 Aug 2004 00:24:04 +0000 (00:24 +0000)]
r1617: Start working on the svcctl pipe
(This used to be commit 518ff5f505446fee623365fd5bdfc75c0cb93d2a)

12 years agor1611: Put a brace on a new line.
Tim Potter [Fri, 30 Jul 2004 05:30:14 +0000 (05:30 +0000)]
r1611: Put a brace on a new line.
(This used to be commit d9b4e45f46cd738b196f8d167cea264b3ce0d364)

12 years agor1606: make the low level socket read/write routines cope properly with non-blocking...
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
(This used to be commit bb6cbf29ccf8f2b556bf3e7b3ff487faa0f36773)

12 years agor1605: GENSEC krb5 updates - fix a valgrind found uninitialised variable, and
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
(This used to be commit 8a0f7bf5e282d021afe93994a91fd76fa9c05f42)

12 years agor1604: Samba4 avoids memcpy() as much as possible - we don't need to make a copy...
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
(This used to be commit 9efc94eeafbf0eb4488c53a1456cc7026c937f9f)

12 years agor1603: fixed in.size to not overstate the packet size by 4 bytes
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!
(This used to be commit 6edbc55ddd2fc0d4686ec3075ba9bfc72ac24315)

12 years agor1602: make sure we honor the use_spnego flag
Andrew Tridgell [Thu, 29 Jul 2004 08:14:34 +0000 (08:14 +0000)]
r1602: make sure we honor the use_spnego flag
(This used to be commit de764d9004a0d90479158e78e30b1266eb529e3e)

12 years agor1596: Fix up copyrights.
Jim McDonough [Wed, 28 Jul 2004 13:08:08 +0000 (13:08 +0000)]
r1596: Fix up copyrights.
(This used to be commit d2553aac0a75591026b9b1fcf46065e5b03ed19c)

12 years agor1595: Always use a loop variable named $e when iterating over lists of
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.
(This used to be commit daf2aea67cbfa2cda1fb3da8862b152c66d9573f)

12 years agor1594: Remove some array checks that we can't do because we don't store state
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!
(This used to be commit 10e3ba03df500ecbb24a70fb9a59c80ac64608da)

12 years agor1593: Fix bug in get_subtree() where we were always looking at the head of
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.
(This used to be commit 7fab5c4ecb429057c627396bdee5dc36245fb441)

12 years agor1592: Fix up subtrees for non-scalar types instead of hardcoding module subtree.
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.  )-:
(This used to be commit 8fad205c51d270cdf7f84a8cec6ebea7ccf4cead)

12 years agor1586: Finally, a technique for putting buffers in scalars in the same
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).
(This used to be commit 5bc61162602f84c8a3a0b22c74c69318b92e087a)

12 years agor1585: add dcpromo.pl start, this should be configure a
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
(This used to be commit 932e22badda84c3c1d0ee71a4dec32a21ca37e60)

12 years agor1578: the first stage of the async client rewrite.
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.
(This used to be commit 96bf4da3edc4d64b0f58ef520269f3b385b8da02)

12 years agor1558: the unknown_time is the same as the logon_time in the PAC_LOGON_INFO
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
(This used to be commit bb906e5e9e566e7ed931436956ba8323503875f9)

12 years agor1552: commit the first version of the pidl generated krb5 PAC parser
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
(This used to be commit b94a09d461291d9dd47c5859537d6025f02a80ff)

12 years agor1547: rename 'enum <bla>_level' -> 'enum smb_<bla>_level'
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
(This used to be commit 0bb50dcf1ccb9797000fcbea4d8a73f2d2a3db77)

12 years agor1546: fix the build the function name has changed to srvsvc_NetRemoteTOD
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
(This used to be commit 76cb9966bf961383b36846627c13b562be5edf4e)

12 years agor1545: add some comments and move a transport function to the transport section
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
(This used to be commit 7d5ca8cc7cdeef0fc9307f8f98366958aa4ce3c2)

12 years agor1544: add some comments and fix 'return True' -> 'return ret'
Stefan Metzmacher [Mon, 19 Jul 2004 06:41:34 +0000 (06:41 +0000)]
r1544: add some comments and fix 'return True' -> 'return ret'

metze
(This used to be commit a9a22d1e0db32c7715809efc4bb08ea5a5a9a69b)

12 years agor1543: add srvsvc_NetRemoteTOD idl and torture tests
Stefan Metzmacher [Mon, 19 Jul 2004 06:14:00 +0000 (06:14 +0000)]
r1543: add srvsvc_NetRemoteTOD idl and torture tests

metze
(This used to be commit 3f2b77d7ec024f54dc478522d85278ced8fce617)

12 years agor1540: - Remove return statements when a parse error is detected as ethereal
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
(This used to be commit 0f7b473b4aa5845c12b387d9be8bc6501cc10136)

12 years agor1535: Create a subtree for each array element.
Tim Potter [Fri, 16 Jul 2004 12:59:16 +0000 (12:59 +0000)]
r1535: Create a subtree for each array element.
(This used to be commit 4099e10d435436c092ca0e512fd4ddafdf4ae6a5)

12 years agor1534: Alternate method of grouping togethers buffers and scalars which actually
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.
(This used to be commit 3f5c087c40c2df8c54feab1b416bc479fb739561)

12 years agor1530: we don't need to call srvsvc_NetShareGetInfo twice
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
(This used to be commit e5bf65b840cd7fbc97166c6313f5eb29de9d129f)

12 years agor1529: add NetSrvGetInfo torture test
Stefan Metzmacher [Fri, 16 Jul 2004 09:36:17 +0000 (09:36 +0000)]
r1529: add NetSrvGetInfo torture test

metze
(This used to be commit 0018aeb2fe8c42e49fdcdd1ecc646b277625967d)

12 years agor1528: add NetCharDevQ torture tests
Stefan Metzmacher [Fri, 16 Jul 2004 09:25:52 +0000 (09:25 +0000)]
r1528: add NetCharDevQ torture tests

metze
(This used to be commit d44c85176a79461bfb465a5643b855aa0d8da726)

12 years agor1527: add NetCharDev torture tests
Stefan Metzmacher [Fri, 16 Jul 2004 09:10:36 +0000 (09:10 +0000)]
r1527: add NetCharDev torture tests

metze
(This used to be commit dde75d3b346be33213e9f38db01945ee45eff9df)

12 years agor1526: some cleanups and fixes for the srvsvc torture tests
Stefan Metzmacher [Fri, 16 Jul 2004 08:56:11 +0000 (08:56 +0000)]
r1526: some cleanups and fixes for the srvsvc torture tests

metze
(This used to be commit 3a2a8973bee1d7e4b21cf807ef549ad3498b4e9d)

12 years agor1525: share info level 1004 is invalid,
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
(This used to be commit 5fe88379ad2de0a346bb7155e74eb00cfa3ef44c)

12 years agor1524: add some comments
Stefan Metzmacher [Fri, 16 Jul 2004 07:20:15 +0000 (07:20 +0000)]
r1524: add some comments

metze
(This used to be commit f5240737629ccd57693f8fb162ba7baca53a4672)

12 years agor1523: declaring variables "in" and "out" in every C module is a bad idea!
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).
(This used to be commit 70838a921185c091d0e774dd5fb0546693999e8f)

12 years agor1522: Oops - I forgot this file in the prvevious commit.
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
(This used to be commit 33de58455a3674e8fc803fb043d26af4e2794c30)

12 years agor1521: Updates to our SMB signing code.
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
(This used to be commit 35b83eb329482ac1b3bc67285854cc47844ff353)

12 years agor1520: only call write handler or read handler, not both. This copes with the
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.
(This used to be commit 446306f054b27e903c50e1d96d23041e3a8e5705)

12 years agor1519: show the ldb_errstring() value in the log for failed ldb 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
(This used to be commit 0c5a5632a8584e55a1013da634a279c6b3a9e085)

12 years agor1518: check for ldb_search giving -1 (indicating db corruption)
Andrew Tridgell [Thu, 15 Jul 2004 10:07:45 +0000 (10:07 +0000)]
r1518: check for ldb_search giving -1 (indicating db corruption)
(This used to be commit 9af821c4dfa47d68be5e062028331c80df64f82b)

12 years agor1517: change event_remove_timed() to remove by structure not by handler.
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
(This used to be commit 6e102f732e4404fc5f9b2851d12b00d2d083b43d)

12 years agor1516: remove the server_connection from the list on the server_socket
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
(This used to be commit 786c00c3d4f510c870a45f11af69281298ba176d)

12 years agor1515: move dublicate code to a function
Stefan Metzmacher [Thu, 15 Jul 2004 08:59:07 +0000 (08:59 +0000)]
r1515: move dublicate code to a function

metze
(This used to be commit a8ec53c81ad939156654c9ad99a53aa2d679f711)

12 years agor1514: close stuff from the server_connection not in the
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
(This used to be commit 0e1f5e66d37deb7a77ae9f545e60685428fd9d21)

12 years agor1513: change DEBUG level to 1
Stefan Metzmacher [Thu, 15 Jul 2004 08:26:41 +0000 (08:26 +0000)]
r1513: change DEBUG level to 1

metze
(This used to be commit d7dd5347dd9414cfa604eeb24cb2f6dc5f99e703)

12 years agor1512: fixed a bug where we could reference the timer event handler after destruction
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
(This used to be commit e966d8a1f398dc1ddf5843bc3327a3160f0d49f9)

12 years agor1511: fixed a free() that should be ldb_free()
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
(This used to be commit 31d55dfb443612a341ff6ade77c6e4477c4fefca)

12 years agor1510: add a commented out routine I used to test password change on NT3.
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.
(This used to be commit fb5796b0dccf7cd518db03e6456d986f17e50345)

12 years agor1509: in order to interoperate with NT3.1 we need to ignore extra data at the end...
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.
(This used to be commit a4a89cffd85c213a4d751c24ccda438e44df4d2e)

12 years agor1508: simple fix for broken server side signing. This may need more work for
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.
(This used to be commit 5dd71be8d9e49277f17668877e47729c340f0f67)

12 years agor1507: fixed the handling of SMB chaining with the new server structure. You
Andrew Tridgell [Thu, 15 Jul 2004 02:11:03 +0000 (02:11 +0000)]
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)

12 years agor1499: combine struct user_struct and struct smbsrv_user
Stefan Metzmacher [Wed, 14 Jul 2004 12:44:31 +0000 (12:44 +0000)]
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)

12 years agor1498: (merge from 3.0)
Andrew Bartlett [Wed, 14 Jul 2004 12:14:07 +0000 (12:14 +0000)]
r1498: (merge from 3.0)

Rework our random number generation system.

On systems with /dev/urandom, this avoids a change to secrets.tdb for every fork().

For other systems, we now only re-seed after a fork, and on startup.
No need to do it per-operation.  This removes the 'need_reseed'
parameter from generate_random_buffer().

This also requires that we start the secrets subsystem, as that is
where the reseed value is stored, for systems without /dev/urandom.

In order to aviod identical streams in forked children, the random
state is re-initialised after the fork(), at the same point were we do
that to the tdbs.

Andrew Bartlett
(This used to be commit b97d3cb2efd68310b1aea8a3ac40a64979c8cdae)

12 years agor1497: add forward declaration for struct auth_session_info
Stefan Metzmacher [Wed, 14 Jul 2004 11:28:34 +0000 (11:28 +0000)]
r1497: add forward declaration for struct auth_session_info
(fix compiler warning)

metze
(This used to be commit 65147f5aa2a56220a387876d990a546beb93a2d7)

12 years agor1494: fix debug message
Stefan Metzmacher [Wed, 14 Jul 2004 09:00:28 +0000 (09:00 +0000)]
r1494: fix debug message

metze
(This used to be commit 463982bf3f37bac67e1aaa488e4142d0ecc23307)

12 years agor1486: commit the start of the generic server infastructure
Stefan Metzmacher [Tue, 13 Jul 2004 21:04:56 +0000 (21:04 +0000)]
r1486: commit the start of the generic server infastructure

the idea is to have services as modules (smb, dcerpc, swat, ...)

the process_model don't know about the service it self anymore.

TODO:
- the smbsrv should use the smbsrv_send function
- the service subsystem init should be done like for other modules
- we need to have a generic socket subsystem, which handle stream, datagram,
  and virtuell other sockets( e.g. for the ntvfs_ipc module to connect to the dcerpc server
  , or for smb or dcerpc or whatever to connect to a server wide auth service)
- and other fixes...

NOTE: process model pthread seems to be broken( but also before this patch!)

metze
(This used to be commit bbe5e00715ca4013ff0dbc345aa97adc6b5c2458)

12 years agor1483: build dynconfig.c also with PICFLAGS
Stefan Metzmacher [Tue, 13 Jul 2004 18:41:08 +0000 (18:41 +0000)]
r1483: build dynconfig.c also with PICFLAGS

metze
(This used to be commit fef597a76c0b0796ca834a31550cf279babe96fc)

12 years agor1482: today I saw DCERPC_AUTH_TYPE 16(0x10)
Stefan Metzmacher [Tue, 13 Jul 2004 18:10:11 +0000 (18:10 +0000)]
r1482: today I saw DCERPC_AUTH_TYPE 16(0x10)
and it seems to be raw krb5, but I need to do some tests

metze
(This used to be commit 01612927902ed5e4d0109fec453307cdcb95336f)

12 years agor1481: add idl file and torture test dummies
Stefan Metzmacher [Tue, 13 Jul 2004 18:05:02 +0000 (18:05 +0000)]
r1481: add idl file and torture test dummies
for DRSUapi (the Active Directory Replication Protocol)

I'll try to fill the idl file as part of a study project
together with some other students...

metze
(This used to be commit 3fc9abcad712c4cc5c9879df0acaa5a19a3d8718)

12 years agor1480: gwsam has unresolved symbols in it
Stefan Metzmacher [Tue, 13 Jul 2004 17:52:29 +0000 (17:52 +0000)]
r1480: gwsam has unresolved symbols in it
(on my SuSE 9.1)

so I disable it for now

metze
(This used to be commit 32d6f86d43394fea11ee5059c884dcaf2736747b)

12 years agor1479: print out domain too
Stefan Metzmacher [Tue, 13 Jul 2004 17:40:28 +0000 (17:40 +0000)]
r1479: print out domain too
(This used to be commit 2758c26ac96a62d7e0853e5d5fa95925ddce3420)

12 years agor1476: Don't print messages about the CCACHE not being found - this is normal.
Andrew Bartlett [Tue, 13 Jul 2004 06:39:55 +0000 (06:39 +0000)]
r1476: Don't print messages about the CCACHE not being found - this is normal.

Andrew Bartlett
(This used to be commit 30d88580efe45dc792f8d5c04f4abe0497d1551c)

12 years agor1475: More kerberos work
Andrew Bartlett [Tue, 13 Jul 2004 05:14:59 +0000 (05:14 +0000)]
r1475: More kerberos work

- We can now connect to hosts that follow the SPNEGO RFC, and *do not*
give us their principal name in the mechListMIC.
 - The client code now remembers the hostname it connects to

- We now kinit for a user, if there is not valid ticket already

- Re-introduce clock skew compensation

TODO:
 - See if the username in the ccache matches the username specified
 - Use a private ccache, rather then the global one, for a 'new' kinit
 - Determine 'default' usernames.
  - The default for Krb5 is the one in the ccache, then $USER
  - For NTLMSSP, it's just $USER

Andrew Bartlett
(This used to be commit de5da669397db4ac87c6da08d3533ca3030da2b0)

12 years agor1474: It is useful if talloc_strdup() behaves like strdup()
Andrew Bartlett [Tue, 13 Jul 2004 03:23:55 +0000 (03:23 +0000)]
r1474: It is useful if talloc_strdup() behaves like strdup()
 - NULL in, NULL out

Andrew Bartlett
(This used to be commit 2cc0b3a2f1785c53268f018999a87c26539fd4a6)

12 years agor1470: Get the smb_trans2 structure out of the rap_cli_call struct.
Volker Lendecke [Mon, 12 Jul 2004 16:35:48 +0000 (16:35 +0000)]
r1470: Get the smb_trans2 structure out of the rap_cli_call struct.

Initial attempt at RAP server infrastructure. Look at rap_server.c for the
dummy functions that are supposed to implement the core functionality.

ipc_rap.c contains all the data shuffling. _rap_shareenum and _rap_serverenum2
in ipc_rap.c are (I think) regular enough to be auto-generated.

I did not test all the corner cases yet, but nevertheless I would like some
comments on the general style.

Volker

P.S: samba-3 smbclient now doesn't freak out anymore, although the results are
not entirely correct :-)
(This used to be commit 08140cc1a838b4eaa23c897b280a46c95b7ef3e0)

12 years agor1469: fix a segfault and compiler warning,
Stefan Metzmacher [Mon, 12 Jul 2004 15:34:34 +0000 (15:34 +0000)]
r1469: fix a segfault and compiler warning,

introduced by the "compiler warning fix" in rev 1460...

metze
(This used to be commit ffb7ba35cdb2fb19b8271a3585eef075948bef9c)

12 years agor1467: disable gensec_krb5 by default till abartlet
Stefan Metzmacher [Mon, 12 Jul 2004 13:53:35 +0000 (13:53 +0000)]
r1467: disable gensec_krb5 by default till abartlet
add the kinit code

metze
(This used to be commit 9a876be76cee3983676d8c89549162b5c4eba8b0)

12 years agor1466: the name "oid" is taken by some silly system headers - avoid it in our code
Andrew Tridgell [Mon, 12 Jul 2004 13:23:01 +0000 (13:23 +0000)]
r1466: the name "oid" is taken by some silly system headers - avoid it in our code
(This used to be commit ea5659b051f95402441e69ba4ce5aea1ed6f5c86)

12 years agor1465: always do a full C prototype, even if its only (void).
Andrew Tridgell [Mon, 12 Jul 2004 13:22:26 +0000 (13:22 +0000)]
r1465: always do a full C prototype, even if its only (void).

this declaration:

int foo();

is *not* the same as this one:

int foo(void);

the first means "I don't know what arguments it takes". The second
means "it takes no arguments"
(This used to be commit 6724932810772a10e7e51d2f6f2b106c02eafb73)

12 years agor1464: the recent build changes completely lost the speed advantage of using
Andrew Tridgell [Mon, 12 Jul 2004 13:20:50 +0000 (13:20 +0000)]
r1464: the recent build changes completely lost the speed advantage of using
PCH (in fact, it meant that PCH was a slowdown, not a speedup). To
gain speed with PCH you must ensure that the .gch file is compiled
with _exactly_ the same options as the normal object files.

this fixes the .gch build options
(This used to be commit 910ca1748648a58daaea6a04d5c96e6c62f79c40)

12 years agor1463: fix the krb5 build
Stefan Metzmacher [Mon, 12 Jul 2004 13:15:53 +0000 (13:15 +0000)]
r1463: fix the krb5 build

metze
(This used to be commit fc8d00b8ab28535da4ec0b7e6931bbf402a37013)

12 years agor1462: GENSEC Kerberos and SPENGO work:
Andrew Bartlett [Mon, 12 Jul 2004 09:11:13 +0000 (09:11 +0000)]
r1462: GENSEC Kerberos and SPENGO work:
 - Spelling - it's SPNEGO, not SPENGO
 - SMB signing - Krb5 logins are now correctly signed
 - SPNEGO - Changes to always tell GENSEC about incoming packets, empty or not.

Andrew Bartlett
(This used to be commit cea578d6f39a2ea4a24e7a0064c95193ab6f6df7)

12 years agor1461: ntlm_check.c is a server-side peice of code, so it belongs in AUTH.
Andrew Bartlett [Mon, 12 Jul 2004 09:07:10 +0000 (09:07 +0000)]
r1461: ntlm_check.c is a server-side peice of code, so it belongs in AUTH.

Andrew Bartlett
(This used to be commit 67ac9600664e93aa2fe9426127313b57ddaec2cf)

12 years agor1460: Avoid a compile warning.
Andrew Bartlett [Mon, 12 Jul 2004 09:02:09 +0000 (09:02 +0000)]
r1460: Avoid a compile warning.

Andrew Bartlett
(This used to be commit 10a973da88441b255eda7cbc263ef5c4f2f0fcae)

12 years agor1458: Add a new configure option, to make it possible to both find errors,
Andrew Bartlett [Mon, 12 Jul 2004 05:50:29 +0000 (05:50 +0000)]
r1458: Add a new configure option, to make it possible to both find errors,
and compile with gtk.

The --enable-developer option was just too noisy with buggy GTK headers.

Andrew Bartlett
(This used to be commit 54c3d98baf3d4f4b6fe40201b50922caf7364285)

12 years agor1457: Add the GSSAPI layer to our gensec_krb5 code.
Andrew Bartlett [Mon, 12 Jul 2004 04:26:50 +0000 (04:26 +0000)]
r1457: Add the GSSAPI layer to our gensec_krb5 code.

Andrew Bartlett
(This used to be commit 893a9a3865d7046d8b1cb0418aaf48b88beefa05)

12 years agor1456: Rename this parameter to avoid shadowing a badly-named GTK global.
Andrew Bartlett [Mon, 12 Jul 2004 02:40:38 +0000 (02:40 +0000)]
r1456: Rename this parameter to avoid shadowing a badly-named GTK global.

Andrew Bartlett
(This used to be commit 39d8949d25793e2602e0ab5ec37e213f9ccae658)

12 years agor1455: More Gtk+ updates:
Jelmer Vernooij [Sun, 11 Jul 2004 20:16:02 +0000 (20:16 +0000)]
r1455: More Gtk+ updates:
 - Start working on 'gwsam'
 - Add GtkSelectDomainDialog and GtkSelectHostDialog
(This used to be commit bea47671aa791f3c4d22263f9444aea1a73f47f1)