samba.git
16 years agor3443: the next stage in the include files re-organisation.
Andrew Tridgell [Mon, 1 Nov 2004 22:48:25 +0000 (22:48 +0000)]
r3443: the next stage in the include files re-organisation.

I have created the include/system/ directory, which will contain the
wrappers for the system includes for logical subsystems. So far I have
created include/system/kerberos.h and include/system/network.h, which
contain all the system includes for kerberos code and networking code.
These are the included in subsystems that need kerberos or networking
respectively.

Note that this method avoids the mess of #ifdef HAVE_XXX_H in every C
file, instead each C module includes the include/system/XXX.h file for
the logical system support it needs, and the details are kept isolated
in include/system/

This patch also creates a "struct ipv4_addr" which replaces "struct
in_addr" in our code. That avoids every C file needing to import all
the system networking headers.
(This used to be commit 2e25c71853f8996f73755277e448e7d670810349)

16 years agor3442: Add support for the "call_as" and "local" attributes.
Jelmer Vernooij [Mon, 1 Nov 2004 21:10:46 +0000 (21:10 +0000)]
r3442: Add support for the "call_as" and "local" attributes.
(This used to be commit 8e25117103b0339441bc6328176ed34034005528)

16 years agor3441: some include file cleanups and general housekeeping
Andrew Tridgell [Mon, 1 Nov 2004 20:21:54 +0000 (20:21 +0000)]
r3441: some include file cleanups and general housekeeping
(This used to be commit 73ea8ee6c268371d05cf74160f2ad451dd2ae699)

16 years agor3440: Add support for "coclass" to the pidl parser - the idl keyword that
Jelmer Vernooij [Mon, 1 Nov 2004 20:00:02 +0000 (20:00 +0000)]
r3440: Add support for "coclass" to the pidl parser - the idl keyword that
describes a COM class.  A coclass is the implementation of one or more
interfaces. It has a UUID referred to as it's CLSID (Class ID).

Also adding an example coclass called "CoffeeMachine". You can give
it a string (or a cup, whatever you like ;-) and it will fill it with
"COFFEE" (kind of the like the echo pipe is for regular RPC). CoffeeMachine's
Windows implementation already works, a torture test for Samba will follow
soon.
(This used to be commit 05dd840b6ffba0d38d98e2e80d856e2f2b5d877c)

16 years agor3435: Remove accidentally committed line...
Jelmer Vernooij [Mon, 1 Nov 2004 15:08:09 +0000 (15:08 +0000)]
r3435: Remove accidentally committed line...
(This used to be commit 93377e6090b42552eb1f804ccef995bbd0c8c531)

16 years agor3434: Fix memleak
Volker Lendecke [Mon, 1 Nov 2004 13:12:09 +0000 (13:12 +0000)]
r3434: Fix memleak
(This used to be commit 0a12cc4cadf7c1e97282a0d8ab2f486536987a77)

16 years agor3433: Use .mk file for librpc/
Jelmer Vernooij [Mon, 1 Nov 2004 12:57:51 +0000 (12:57 +0000)]
r3433: Use .mk file for librpc/
(This used to be commit c1f345eefdce3f6fc9e3a526543b2b9a6441e566)

16 years agor3432: Support WERROR's in arguments (not just as return type). Some of
Jelmer Vernooij [Mon, 1 Nov 2004 12:40:43 +0000 (12:40 +0000)]
r3432: Support WERROR's in arguments (not just as return type). Some of
the DCOM calls are wrappers around several local calls, so you get things like:

WERROR foobar ( [in] int num_ifaces,
   [in,size_is(num_ifaces)] IID *ifaces,
   [out,size_is(num_ifaces)] WERROR *results);
(This used to be commit 0873bf2cbe3589988e518cf68ad4d14343b9240b)

16 years agor3431: Allow optional semicolon after interface definitions
Jelmer Vernooij [Mon, 1 Nov 2004 12:26:59 +0000 (12:26 +0000)]
r3431: Allow optional semicolon after interface definitions
(This used to be commit edbd789abb505accd3e72863d13acd2603d991f6)

16 years agor3430: Add tests for EnumPrinterDataEx, SetPrinterDataEx (doesn't work),
Tim Potter [Mon, 1 Nov 2004 11:51:35 +0000 (11:51 +0000)]
r3430: Add tests for EnumPrinterDataEx, SetPrinterDataEx (doesn't work),
EnumPrinterDrivers.
(This used to be commit fe381c3ebc64a7d067832c7d2aebeb35b1f3923b)

16 years agor3429: Fix IDL for EnumPrinterDataEx()
Tim Potter [Mon, 1 Nov 2004 11:34:54 +0000 (11:34 +0000)]
r3429: Fix IDL for EnumPrinterDataEx()
(This used to be commit da7ec2ae68112697e95b502f9ae093a4f504abe9)

16 years agor3428: switched to using minimal includes for the auto-generated RPC code.
Andrew Tridgell [Mon, 1 Nov 2004 10:30:34 +0000 (10:30 +0000)]
r3428: switched to using minimal includes for the auto-generated RPC code.

The thing that finally convinced me that minimal includes was worth
pursuing for rpc was a compiler (tcc) that failed to build Samba due
to reaching internal limits of the size of include files. Also the
fact that includes.h.gch was 16MB, which really seems excessive. This
patch brings it back to 12M, which is still too large, but
better. Note that this patch speeds up compile times for both the pch
and non-pch case.

This change also includes the addition iof a "depends()" option in our
IDL files, allowing you to specify that one IDL file depends on
another. This capability was needed for the auto-includes generation.
(This used to be commit b8f5fa8ac8e8725f3d321004f0aedf4246fc6b49)

16 years agor3427: split the openx logic out from the other open mapping code
Andrew Tridgell [Mon, 1 Nov 2004 10:02:24 +0000 (10:02 +0000)]
r3427: split the openx logic out from the other open mapping code
(This used to be commit 8d71ed9271a6ee43b9a3c28724b95714b5d2e56d)

16 years agor3426: removed 2 unused files, and some unused variables
Andrew Tridgell [Mon, 1 Nov 2004 05:56:26 +0000 (05:56 +0000)]
r3426: removed 2 unused files, and some unused variables
(This used to be commit dd0618d5950ca052b57715cb8451af23e4622049)

16 years agor3425: got rid of a bunch of cruft from rewrite.h
Andrew Tridgell [Mon, 1 Nov 2004 05:46:52 +0000 (05:46 +0000)]
r3425: got rid of a bunch of cruft from rewrite.h
(This used to be commit 3f902f8d851d32fa81d89ed61bfda6edaea00984)

16 years agor3424: don't run mkproto.pl on pidl generated code, instead rely on pidl generating the
Andrew Tridgell [Mon, 1 Nov 2004 05:26:28 +0000 (05:26 +0000)]
r3424: don't run mkproto.pl on pidl generated code, instead rely on pidl generating the
prototypes itself
(This used to be commit e694aeefe7c725d417abdd3c48d16ff1d932c223)

16 years agor3423: auto-generate prototypes for all external functions in pidl
Andrew Tridgell [Mon, 1 Nov 2004 05:25:05 +0000 (05:25 +0000)]
r3423: auto-generate prototypes for all external functions in pidl
(This used to be commit 009488dfe55f5219b24c30222b1a8bf411a7e939)

16 years agor3422: allow for subsystems that don't get included in the list of auto-prototype...
Andrew Tridgell [Mon, 1 Nov 2004 05:23:54 +0000 (05:23 +0000)]
r3422: allow for subsystems that don't get included in the list of auto-prototype objects, using
SMB_SUBSYSTEM_NOPROTO()
(This used to be commit e6b69183de785641144f9abb1853cab73c70073e)

16 years agor3421: got rid of some unused code
Andrew Tridgell [Mon, 1 Nov 2004 05:22:44 +0000 (05:22 +0000)]
r3421: got rid of some unused code
(This used to be commit 0333f417a86a54a328ca9bd908076f9fe8405dc7)

16 years agor3419: moved the libcli/raw structures into libcli/raw/libcliraw.h
Andrew Tridgell [Mon, 1 Nov 2004 01:03:22 +0000 (01:03 +0000)]
r3419: moved the libcli/raw structures into libcli/raw/libcliraw.h
and made them private
(This used to be commit 386ac565c452ede1d74e06acb401ca9db99d3ff3)

16 years agor3418: added BASE-NTDENY1 and BASE-NTDENY2 to the lists of tests that pvfs passes
Andrew Tridgell [Mon, 1 Nov 2004 00:40:33 +0000 (00:40 +0000)]
r3418: added BASE-NTDENY1 and BASE-NTDENY2 to the lists of tests that pvfs passes
(This used to be commit 6a6f2aea1082fa42d33fd58c92f03c790cdfed9e)

16 years agor3416: Typos
Jelmer Vernooij [Sun, 31 Oct 2004 20:57:19 +0000 (20:57 +0000)]
r3416: Typos
(This used to be commit 52d924501a08c2e37eabfd779dec406d38e7eaaf)

16 years agor3415: Add support for parsing a Request file before a Reply file so we can
Jelmer Vernooij [Sun, 31 Oct 2004 19:07:28 +0000 (19:07 +0000)]
r3415: Add support for parsing a Request file before a Reply file so we can
use ndrdump for replies that depend on variables from requests
(This used to be commit 5d83de4c64fbbd6775ba6d42c430ef2cba11be4f)

16 years agor3414: RemoteActivation torture test
Jelmer Vernooij [Sun, 31 Oct 2004 18:40:08 +0000 (18:40 +0000)]
r3414: RemoteActivation torture test
(This used to be commit bcb89806fe45db50988f241db51989d90aa2289c)

16 years agor3413: RemoteActivation updates and fixes
Jelmer Vernooij [Sun, 31 Oct 2004 18:37:59 +0000 (18:37 +0000)]
r3413: RemoteActivation updates and fixes
Add torture test for RemoteActivation
The request is now send correctly and we get back a valid response
from Windows but r->in.Interfaces is set to 0 somewhere while parsing
the response...
(This used to be commit cabec03422f0c7140b56b2d5c4ec8ca663b406fc)

16 years agor3412: Add NCACN_SPX and NCADG_IPX transports
Jelmer Vernooij [Sun, 31 Oct 2004 18:35:47 +0000 (18:35 +0000)]
r3412: Add NCACN_SPX and NCADG_IPX transports
(This used to be commit ff2f2b4273ce9a49599b385d32fbbd5e8f0d4c23)

16 years agor3411: Ignore some autogenerated files.
Tim Potter [Sun, 31 Oct 2004 11:35:31 +0000 (11:35 +0000)]
r3411: Ignore some autogenerated files.
(This used to be commit f6428f2d01a4bd8d4acadf96e33957371cdb2021)

16 years agor3410: Handle conversion of DATA_BLOBs and pointers to DATA_BLOBs from python.
Tim Potter [Sun, 31 Oct 2004 11:33:40 +0000 (11:33 +0000)]
r3410: Handle conversion of DATA_BLOBs and pointers to DATA_BLOBs from python.
(This used to be commit 12e037dbe3d497aff2415c0a22fab20a7932ab7a)

16 years agor3406: Don't throw a werror exception for WERR_NO_MORE_ITEMS and WERR_MORE_DATA.
Tim Potter [Sun, 31 Oct 2004 05:46:18 +0000 (05:46 +0000)]
r3406: Don't throw a werror exception for WERR_NO_MORE_ITEMS and WERR_MORE_DATA.
(This used to be commit deaa5159f41a8841d75801b441e7bd5cf2636870)

16 years agor3405: Test EnumPrinterData and GetPrinterData.
Tim Potter [Sun, 31 Oct 2004 05:45:52 +0000 (05:45 +0000)]
r3405: Test EnumPrinterData and GetPrinterData.
(This used to be commit a4facee8602cfb9b2599e0068dd42933ed94655e)

16 years agor3404: Rename name of DATA_BLOB in GetPrinterData()
Tim Potter [Sun, 31 Oct 2004 05:45:05 +0000 (05:45 +0000)]
r3404: Rename name of DATA_BLOB in GetPrinterData()
(This used to be commit f06ecd81dd79d8294125ab0549ccbdbbb0ddd8d5)

16 years agor3403: Add test for operations on print server handle.
Tim Potter [Sun, 31 Oct 2004 04:41:57 +0000 (04:41 +0000)]
r3403: Add test for operations on print server handle.

Add tests for EnumJobs, GetJob.

Oops - forgot to EnumPrinters at level2.
(This used to be commit 930d57964b69fda59f473914ac4633984f259c86)

16 years agor3402: Fix idl for spoolss_JobInfo1.
Tim Potter [Sun, 31 Oct 2004 04:37:35 +0000 (04:37 +0000)]
r3402: Fix idl for spoolss_JobInfo1.
(This used to be commit e5fe971dc557fa75d86c4b713ca4ceb10fd0c560)

16 years agor3401: Fix IDL for SetForm RPC.
Tim Potter [Sun, 31 Oct 2004 03:54:20 +0000 (03:54 +0000)]
r3401: Fix IDL for SetForm RPC.
(This used to be commit 206f3de297c397c8894f9855ea8571c68823e1fc)

16 years agor3400: - allow callers to control the flags2 field in raw packets
Andrew Tridgell [Sun, 31 Oct 2004 03:26:30 +0000 (03:26 +0000)]
r3400: - allow callers to control the flags2 field in raw packets

- added testing of the FLAGS2_READ_PERMIT_EXECUTE bit in the ntdeny tests
(This used to be commit adf4a682705871186f3b77ea6d417942445fc5d3)

16 years agor3397: Fix IDL for ComplexPing and SimplePing, including tests
Jelmer Vernooij [Sun, 31 Oct 2004 01:21:14 +0000 (01:21 +0000)]
r3397: Fix IDL for ComplexPing and SimplePing, including tests
(This used to be commit cf976a6feb980b1e5116d24371fa6109092c9314)

16 years agor3396: Rename form_name -> formname. This time, check smbtorture builds before
Tim Potter [Sat, 30 Oct 2004 23:35:34 +0000 (23:35 +0000)]
r3396: Rename form_name -> formname.  This time, check smbtorture builds before
committing.  (-:
(This used to be commit c776232d0130638a85cc8ce75e4bbef75952e856)

16 years agor3395: added support for "string32" type, to fix the fixed width string
Andrew Tridgell [Sat, 30 Oct 2004 23:19:09 +0000 (23:19 +0000)]
r3395: added support for "string32" type, to fix the fixed width string
problem that tim found.
(This used to be commit 2cf35cb4d2513a7be46065e12c6fd1e2b90f4b8a)

16 years agor3394: Give the user a clue why we are blasting them with the usage brick.
Andrew Bartlett [Sat, 30 Oct 2004 22:10:14 +0000 (22:10 +0000)]
r3394: Give the user a clue why we are blasting them with the usage brick.

Andrew Bartlett
(This used to be commit d967569c569a1f8f41efface7c62d233401451f3)

16 years agor3393: added test_rpc.sh. The idea is that this script will test all the
Andrew Tridgell [Sat, 30 Oct 2004 11:53:36 +0000 (11:53 +0000)]
r3393: added test_rpc.sh. The idea is that this script will test all the
RPC-* tests that are expected to pass against Samba4. Currently only
RPC-SCHANNEL and RPC-ECHO are in that list, but as we get more working
this test will allow us to ensure that they stay working.
(This used to be commit d49dfd406ffe57139d8a4679b806c875e7f194ec)

16 years agor3392: fixed schannel over ncalrpc
Andrew Tridgell [Sat, 30 Oct 2004 11:48:08 +0000 (11:48 +0000)]
r3392: fixed schannel over ncalrpc
(This used to be commit 0b93be9f5f89ef17f94e8e98c3a405495e04e235)

16 years agor3391: fixed some memory leaks in the schannel code
Andrew Tridgell [Sat, 30 Oct 2004 11:37:17 +0000 (11:37 +0000)]
r3391: fixed some memory leaks in the schannel code
(This used to be commit eb3366d3667ddddf7ab5eae5d1fbc5de86c41072)

16 years agor3390: fixed schannel server side support. RPC-SCHANNEL now works against Samba4.
Andrew Tridgell [Sat, 30 Oct 2004 11:07:28 +0000 (11:07 +0000)]
r3390: fixed schannel server side support. RPC-SCHANNEL now works against Samba4.
(This used to be commit 01f5c1c72d9fc8f21029adc586154b0c54f76c9e)

16 years agor3389: fixed schannel client side code. RPC-SCHANNEL now works against w2k3
Andrew Tridgell [Sat, 30 Oct 2004 10:51:18 +0000 (10:51 +0000)]
r3389: fixed schannel client side code. RPC-SCHANNEL now works against w2k3
again. The problem was that the sig_size method didn't get added in
the gensec conversion.
(This used to be commit a49b61173dbadbf4efb0fbcfaba67da393913639)

16 years agor3388: when doing schannel use a anonymous session setup (as the machine acct
Andrew Tridgell [Sat, 30 Oct 2004 09:23:39 +0000 (09:23 +0000)]
r3388: when doing schannel use a anonymous session setup (as the machine acct
isn't allowed to login on a share)
(This used to be commit 8c0be60d8d59863f0bcdd17012dce923c139ce09)

16 years agor3387: fixed pvfs to pass the NTDENY tests. The tricky bit was
Andrew Tridgell [Sat, 30 Oct 2004 05:53:56 +0000 (05:53 +0000)]
r3387: fixed pvfs to pass the NTDENY tests. The tricky bit was
SA_RIGHT_FILE_EXECUTE, which depends on a flags2 bit
(This used to be commit c36851d230bcf552ed79322f8358060ab164ec09)

16 years agor3386: - fixed --seed option in smbtorture
Andrew Tridgell [Sat, 30 Oct 2004 04:59:52 +0000 (04:59 +0000)]
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)
(This used to be commit b95493d3d16581b8dd8f4727cd10631c18e16748)

16 years agor3385: when discarding a unmatched reply print the command type to help debugging
Andrew Tridgell [Sat, 30 Oct 2004 04:56:27 +0000 (04:56 +0000)]
r3385: when discarding a unmatched reply print the command type to help debugging
(This used to be commit 91139ed8d41a1d4b99379142b3e09c6d0a8ff159)

16 years agor3384: added SA_RIGHT_FILE_WRITE_APPEND, which is a combination of write and append
Andrew Tridgell [Sat, 30 Oct 2004 04:55:45 +0000 (04:55 +0000)]
r3384: added SA_RIGHT_FILE_WRITE_APPEND, which is a combination of write and append
(This used to be commit d098636d7faacce7f024c74b945899edb824d740)

16 years agor3383: avoid multi-part SMBtrans and SMBtrans2 replies until our client library can...
Andrew Tridgell [Sat, 30 Oct 2004 02:17:03 +0000 (02:17 +0000)]
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 :)
(This used to be commit e23edf762cace35f937959c9ffbef718431a79b9)

16 years agor3380: - changed the default behaviour of server signing. We now have a default
Andrew Tridgell [Sat, 30 Oct 2004 01:22:52 +0000 (01:22 +0000)]
r3380: - changed the default behaviour of server signing. We now have a default
  setting of "server signing = auto", which means to offer signing
  only if we have domain logons enabled (ie. we are a DC). This is a
  better match for what windows clients want, as unfortunately windows
  clients always use signing if it is offered, and when they use signing
  they not only go slower because of the signing itself, they also
  disable large readx/writex support, so they end up sending very small
  IOs for.

- changed the default max xmit again, this time matching longhorn,
  which uses 12288. That seems to be a fairly good compromise value.
(This used to be commit e63edc81716fefd58a3be25deb3b25e45471f196)

16 years agor3375: changed the default max xmit until I fix a problem with the SMBtrans multi...
Andrew Tridgell [Fri, 29 Oct 2004 21:55:06 +0000 (21:55 +0000)]
r3375: changed the default max xmit until I fix a problem with the SMBtrans multi-part code
A higher max xmit avoids multi-part trans requests
(This used to be commit 23f4ce3a7d207db0c2705295cbb8d46dc5290b1a)

16 years agor3374: Couple of bug fixes
Jelmer Vernooij [Fri, 29 Oct 2004 21:53:42 +0000 (21:53 +0000)]
r3374: Couple of bug fixes
(This used to be commit f8e45e143087d333da4afc193b4fa1991ba04c63)

16 years agor3373: added better error reporting in pvfs_open
Andrew Tridgell [Fri, 29 Oct 2004 21:52:49 +0000 (21:52 +0000)]
r3373: added better error reporting in pvfs_open
(This used to be commit 22abdfca961a00e7c48ba4231e12f254781d315d)

16 years agor3372: fixed the initial directory permissions for pvfs_mkdir()
Andrew Tridgell [Fri, 29 Oct 2004 21:51:36 +0000 (21:51 +0000)]
r3372: fixed the initial directory permissions for pvfs_mkdir()
(This used to be commit 72ddb38a7214a49548a27ef6e6b6e7b0944b01f0)

16 years agor3371: fixed endpoint for browser.idl
Andrew Tridgell [Fri, 29 Oct 2004 21:51:00 +0000 (21:51 +0000)]
r3371: fixed endpoint for browser.idl
(This used to be commit b2ec1e75a203b8de5ab2ae8e91eca3ec43b98741)

16 years agor3370: Initial work on Add Key/Delete Key/Add Value/Mod Value/Del Value support in
Jelmer Vernooij [Fri, 29 Oct 2004 14:53:23 +0000 (14:53 +0000)]
r3370: Initial work on Add Key/Delete Key/Add Value/Mod Value/Del Value support in
gregedit
(This used to be commit 33f429c61f2859e3ad60fa38823174bbd331d91a)

16 years agor3369: More registry updates
Jelmer Vernooij [Fri, 29 Oct 2004 13:38:37 +0000 (13:38 +0000)]
r3369: More registry updates
We now pass the RPC-WINREG torture test.
Also, constructions like the following work now:

regtree <-> smbd <-> NTUSER.DAT
(This used to be commit df952e95cd1cbbfb62b4620e9452993aaef44ad3)

16 years agor3368: Default to rpc backend with binding "ncalrpc:" if no backend was specified...
Jelmer Vernooij [Fri, 29 Oct 2004 12:12:24 +0000 (12:12 +0000)]
r3368: Default to rpc backend with binding "ncalrpc:" if no backend was specified in the various registry tools.
Allow opening a remote registry to partly fail (I.e. if not all hives could be opened)
(This used to be commit 313034b10d7a70d079e2bec1af38cf2a7cd918c1)

16 years agor3367: More registry updates.
Jelmer Vernooij [Fri, 29 Oct 2004 11:44:59 +0000 (11:44 +0000)]
r3367: More registry updates.
Add support flush_key and close_hive.
(This used to be commit c526273df238c994c4de3c1704c6e95433f2331c)

16 years agor3366: updates from the junkcode version of talloc.
Andrew Tridgell [Fri, 29 Oct 2004 11:39:08 +0000 (11:39 +0000)]
r3366: updates from the junkcode version of talloc.

The main change is to get rid of talloc_parent_chunk() from all
commonly used code paths, so talloc_free() is now O(1) again. It was
originally O(1), but the last round of changes broke that.

Also some documentation updates
(This used to be commit d4fe21cdb982c8046b19f671d872b43cdd2efc72)

16 years agor3365: Fill in the user and primary group SIDs into the 'server info' before
Andrew Bartlett [Fri, 29 Oct 2004 09:58:23 +0000 (09:58 +0000)]
r3365: Fill in the user and primary group SIDs into the 'server info' before
the session info.

Andrew Bartlett
(This used to be commit 5db5c30ebedca1fee8924a9416bcb94ed13af372)

16 years agor3364: Add parameter to fix the compile.
Andrew Bartlett [Fri, 29 Oct 2004 09:57:31 +0000 (09:57 +0000)]
r3364: Add parameter to fix the compile.

Andrew Bartlett
(This used to be commit effd10883b7b9d879a3e96801ef37992bc93bc97)

16 years agor3363: added basic support for SA_RIGHT_FILE_EXECUTE, needed for opening .dll files
Andrew Tridgell [Fri, 29 Oct 2004 09:28:35 +0000 (09:28 +0000)]
r3363: added basic support for SA_RIGHT_FILE_EXECUTE, needed for opening .dll files
(This used to be commit ba1bfd51e1b694cb69afe559f695addaf03b4d81)

16 years agor3362: Change netlogon.idl so we can parse the 'info3' seperate from it's surrounding...
Andrew Bartlett [Fri, 29 Oct 2004 09:19:54 +0000 (09:19 +0000)]
r3362: Change netlogon.idl so we can parse the 'info3' seperate from it's surroundings, and rename user_id -> rid, as it could be a user or group id.

Andrew Bartlett

Andrew Bartlett
(This used to be commit 18d0d70994ddb41b381b8fe42bc179cb9fdf0b11)

16 years agor3361: Allow Samba4 (I'm interested in ntlm_auth in particular) to use
Andrew Bartlett [Fri, 29 Oct 2004 09:15:41 +0000 (09:15 +0000)]
r3361: Allow Samba4 (I'm interested in ntlm_auth in particular) to use
Samba3's winbind.  This is also the start of domain membership code in
Samba4, as we now (partially) parse the info3, and use it like Samba3
does.

Andrew Bartlett
(This used to be commit c1b7303c1c7d9fb815006c3bd2af20a0010d15a8)

16 years agor3360: improved the deletion of tmp files. smbd now puts all tmp files in var/locks...
Andrew Tridgell [Fri, 29 Oct 2004 08:38:59 +0000 (08:38 +0000)]
r3360: improved the deletion of tmp files. smbd now puts all tmp files in var/locks/smbd.tmp/
and deletes that dir on startup.
(This used to be commit 7e942e7f1bd2c293a0e6648df43a96f8b8a2a295)

16 years agor3359: Add magic auto-initialisation hooks here, to match the rest of
Andrew Bartlett [Fri, 29 Oct 2004 08:32:59 +0000 (08:32 +0000)]
r3359: Add magic auto-initialisation hooks here, to match the rest of
secrets.  (Which will, I am assured, go away).

Andrew Bartlett
(This used to be commit 415ba959271f6f97d6fe3b923e49a58611edf8bd)

16 years agor3358: Try to put all the basic struct dom_sid manipulation functions in one
Andrew Bartlett [Fri, 29 Oct 2004 08:31:27 +0000 (08:31 +0000)]
r3358: Try to put all the basic struct dom_sid manipulation functions in one
place.  (I always have trouble finding one half or the other).

Andrew Bartlett
(This used to be commit 224b59edba7c00ad515b4c5e3e9a886700247ad4)

16 years agor3357: removed the need to use TDB_CLEAR_IF_FIRST in Samba4.
Andrew Tridgell [Fri, 29 Oct 2004 07:29:26 +0000 (07:29 +0000)]
r3357: removed the need to use TDB_CLEAR_IF_FIRST in Samba4.

We found a few months ago that TDB_CLEAR_IF_FIRST is extremely
inefficient for large numbers of connections, due to a fundamental
limitation in the way posix byte range locking is implemented. Rather
than the nasty workaround we had for Samba3, we now have a single
"cleanup tmp files" function that runs when smbd starts. That deletes
the tmp tdbs, so TDB_CLEAR_IF_FIRST is not needed at all.
(This used to be commit ffa285bc783c775a2d53a58fb691ca339e6c76ae)

16 years agor3356: in the standard process model we need to make sure we close all
Andrew Tridgell [Fri, 29 Oct 2004 07:00:14 +0000 (07:00 +0000)]
r3356: in the standard process model we need to make sure we close all
listening sockets after the fork to prevent the child still listening
on incoming requests.

I have also added an optimisation where we use dup()/close() to lower
the file descriptor number of the new socket to the lowest possible
after closing our listening sockets. This keeps the max fd num passed
to select() low, which makes a difference to the speed of select().
(This used to be commit f2a9bbc317ba86ebe87c3ca27a3a0192de91014d)

16 years agor3355: fixed the old style search code in smb_server to correctly handle
Andrew Tridgell [Fri, 29 Oct 2004 06:01:51 +0000 (06:01 +0000)]
r3355: fixed the old style search code in smb_server to correctly handle
searches that go beyond the negotiated max xmit size
(This used to be commit 84762a59763005f5d29106cd409867cb150d648f)

16 years agor3354: honor "max xmit" and "max mux" from smb.conf in our client code. This
Andrew Tridgell [Fri, 29 Oct 2004 06:01:00 +0000 (06:01 +0000)]
r3354: honor "max xmit" and "max mux" from smb.conf in our client code. This
is important as it allows the test suite to exercise the multiple
reply logic in smbd for trans2 search replies.
(This used to be commit 865159016ab1e806465a55697444228fb3fa286e)

16 years agor3353: don't reference dos.attrib unless its initialised
Andrew Tridgell [Fri, 29 Oct 2004 05:58:22 +0000 (05:58 +0000)]
r3353: don't reference dos.attrib unless its initialised
(This used to be commit 498799e4260b1c5e2bfc4fac4cba1080e8ec0a04)

16 years agor3352: make smbcli_read() and smbcli_write() work with very small negotiated SMB...
Andrew Tridgell [Fri, 29 Oct 2004 05:31:35 +0000 (05:31 +0000)]
r3352: make smbcli_read() and smbcli_write() work with very small negotiated SMB buffer sizes
(This used to be commit 320ca0214d97dc6cebb00ddc98a1eb71e2b4c917)

16 years agor3351: handle far more operations on open directory handles. pvfs was failing
Andrew Tridgell [Fri, 29 Oct 2004 04:43:28 +0000 (04:43 +0000)]
r3351: handle far more operations on open directory handles. pvfs was failing
with a wxp client because of qfileinfo operations on directories
failing with NT_STATUS_INVALID_HANDLE after the fstat() failed (as
pvfs sets f->fd to -1 for directories)
(This used to be commit 1993128cb1dbf49db6e3e0387996ecf2a14b8d76)

16 years agor3350: fixed a bug with sending multiple replies for the one request, as
Andrew Tridgell [Fri, 29 Oct 2004 03:48:49 +0000 (03:48 +0000)]
r3350: fixed a bug with sending multiple replies for the one request, as
happens with trans2, trans and echo. Now that smbd is async we queue
the multiples replies all at once, and now need a way to ensure each
reply gets it own smbsrv_request buffer. I have added
req_setup_secondary() to cope with this.
(This used to be commit 2dbd2abc5f197ee21d7dceeda2922c7449c46d99)

16 years agor3349: fixed more uninitialised variable problems with the nbench module
Andrew Tridgell [Fri, 29 Oct 2004 01:22:47 +0000 (01:22 +0000)]
r3349: fixed more uninitialised variable problems with the nbench module
(This used to be commit 915faf49350b29a46f39354cbac746455d70c92c)

16 years agor3348: More registry fixes and additions. The following functions work right now...
Jelmer Vernooij [Fri, 29 Oct 2004 01:10:40 +0000 (01:10 +0000)]
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
(This used to be commit a71d51dd3b136a1bcde1704fe9830985e06bb01b)

16 years agor3347: fixed an uninitialised variable bug. Surprisingly hard to track down,
Andrew Tridgell [Fri, 29 Oct 2004 01:07:07 +0000 (01:07 +0000)]
r3347: fixed an uninitialised variable bug. Surprisingly hard to track down,
as valgrind got a corrupt stack when trying to debug it.
(This used to be commit 58cabaa7022e5521961551462d31fbd90e4183e4)

16 years agor3346: - simplified vfs_nbench.c a bit, by using req->async_state->ntvfs inside
Andrew Tridgell [Fri, 29 Oct 2004 00:51:41 +0000 (00:51 +0000)]
r3346: - simplified vfs_nbench.c a bit, by using req->async_state->ntvfs inside
  nbench_log() instead of declaring nprivates every time.

- added correct async_setup pass-thru in nbench
(This used to be commit 8d79bceeca4528ab31cff1adc7706faa075013ac)

16 years agor3341: - don't zero the async structure (makes valgrind more useful)
Andrew Tridgell [Thu, 28 Oct 2004 23:09:40 +0000 (23:09 +0000)]
r3341: - don't zero the async structure (makes valgrind more useful)

- get rid of req->mid, as it isn't a safe value to use to match
  requests in the server (it is safe in the client code, as we choose
  the mid, but in the server we can't rely on other clients to choose
  the mid carefully)
(This used to be commit 938fb44351e12a515073ea94cd306988d5ca7340)

16 years agor3340: Various fixes in the registry code. Implement the EnumKey call
Jelmer Vernooij [Thu, 28 Oct 2004 23:06:12 +0000 (23:06 +0000)]
r3340: Various fixes in the registry code. Implement the EnumKey call
in the server.
(This used to be commit da65a248c292a90342e1394ee4132ef2c7afd3c8)

16 years agor3338: More work on the winreg RPC server. Opening hives is now supported, most other...
Jelmer Vernooij [Thu, 28 Oct 2004 22:38:27 +0000 (22:38 +0000)]
r3338: More work on the winreg RPC server. Opening hives is now supported, most other calls
return WERR_NOT_SUPPORTED for now.

Hive backends can be set like this:

registry:HKEY_LOCAL_MACHINE = ldb:tdb://registry.tdb
registry:HKEY_CURRENT_USER = gconf
registry:HKEY_USERS = dir:/tmp/registry
registry:HKEY_CLASSES_ROOT = nt4:/path/to/NTUSER.DAT
registry:HKEY_PERFORMANCE_DATA = w95:/path/to/USER.DAT
(This used to be commit 42844a4e3422bbbe891ba944c0e97861db7763ec)

16 years agor3337: remove debug code and reanable the reall logging:-)
Stefan Metzmacher [Thu, 28 Oct 2004 22:18:52 +0000 (22:18 +0000)]
r3337: remove debug code and reanable the reall logging:-)

metze
(This used to be commit 00b285e5a815e6d53ede7d102dee4e5b79d47f52)

16 years agor3336: use a struct ntvfs_async_state to be able to do async chaning of ntvfs modules
Stefan Metzmacher [Thu, 28 Oct 2004 21:48:53 +0000 (21:48 +0000)]
r3336: use a struct ntvfs_async_state to be able to do async chaning of ntvfs modules

the idea is that a passthru module can use ntvfs_async_state_push() before
calling ntvfs_next_*() and in the _send function it calls
ntvfs_async_state_pop() and then call the upper layer send_fn itself

- ntvfs_nbench is now fully async

- the ntvfs_map_*() functions and the trans(2) mapping functions are not converted yet

metze
(This used to be commit fde64c0dc142b53d128c8ba09af048dc58d8ef3a)

16 years agor3335: better configure support for ipv6 - thanks to a quick tutorial from metze
Andrew Tridgell [Thu, 28 Oct 2004 21:47:10 +0000 (21:47 +0000)]
r3335: better configure support for ipv6 - thanks to a quick tutorial from metze
(This used to be commit 76c4ba6d29a6ad1e21c2d7674e1f323e8d53d627)

16 years agor3334: Allow disabling IPv6 support using socket:noipv6
Jelmer Vernooij [Thu, 28 Oct 2004 21:41:21 +0000 (21:41 +0000)]
r3334: Allow disabling IPv6 support using socket:noipv6
(This used to be commit 9c13f42c1fd489a6a663f614a41c59730c18a054)

16 years agor3333: added configure tests for ipv6 support
Andrew Tridgell [Thu, 28 Oct 2004 21:36:27 +0000 (21:36 +0000)]
r3333: added configure tests for ipv6 support
(This used to be commit 9794570c6d0646cc34147bf8128802b181f658f0)

16 years agor3332: Check result codes in some more places...
Jelmer Vernooij [Thu, 28 Oct 2004 21:24:29 +0000 (21:24 +0000)]
r3332: Check result codes in some more places...
(This used to be commit 87833cc75852bfe198c73ba1be67d1d36a43dc99)

16 years agor3331: Add string descriptions for a couple more WERROR's
Jelmer Vernooij [Thu, 28 Oct 2004 21:00:38 +0000 (21:00 +0000)]
r3331: Add string descriptions for a couple more WERROR's
(This used to be commit 1d374cdeb09b856449287cf12a77b23296c82a1d)

16 years agor3330: Use IPv6 for RPC client connections if we can
Jelmer Vernooij [Thu, 28 Oct 2004 19:14:26 +0000 (19:14 +0000)]
r3330: Use IPv6 for RPC client connections if we can
(This used to be commit 9426a655356f817f3d3174d25caa25224043d373)

16 years agor3329: Add support for IPv6
Jelmer Vernooij [Thu, 28 Oct 2004 18:57:48 +0000 (18:57 +0000)]
r3329: Add support for IPv6
(This used to be commit d8298901243ca4ce2ec420fa523c8e1407e72513)

16 years agor3327: fixed another warning
Andrew Tridgell [Thu, 28 Oct 2004 13:51:41 +0000 (13:51 +0000)]
r3327: fixed another warning

we're now down the the last few warnings. Most are enum warnings
caused by unfinished code (unhandled enum levels). If you want to get
rid of those then work on finishing that code.
(This used to be commit b62f7bb971c94be666ef816b24e93a14fd90f5e0)

16 years agor3325: missed one of the torture changes ...
Andrew Tridgell [Thu, 28 Oct 2004 13:41:35 +0000 (13:41 +0000)]
r3325: missed one of the torture changes ...
(This used to be commit 1629b593c6ad5a6c0a7dc0cd7588d979db887286)

16 years agor3324: made the smbtorture code completely warning free
Andrew Tridgell [Thu, 28 Oct 2004 13:40:50 +0000 (13:40 +0000)]
r3324: made the smbtorture code completely warning free
(This used to be commit 7067bb9b52223cafa28470f264f0b60646a07a01)

16 years agor3323: more warning reductions
Andrew Tridgell [Thu, 28 Oct 2004 13:19:39 +0000 (13:19 +0000)]
r3323: more warning reductions
(This used to be commit 5921587ec26e4892efc678421277e4969417d7f5)

16 years agor3322: fixed a bunch of warnings in the build, including one case where it was a...
Andrew Tridgell [Thu, 28 Oct 2004 12:46:59 +0000 (12:46 +0000)]
r3322: fixed a bunch of warnings in the build, including one case where it was a real bug
(This used to be commit 02d5d0f685e44bd66aff4a007f0bf34c8f915574)

16 years agor3321: make the test_echo.sh test suite test non-blocking on all rpc transports
Andrew Tridgell [Thu, 28 Oct 2004 11:59:48 +0000 (11:59 +0000)]
r3321: make the test_echo.sh test suite test non-blocking on all rpc transports
this test now passes
(This used to be commit 3d270fd86caedd1023373160934d72d8cb065659)

16 years agor3320: fixed bugs in the rpc_server code in handling partial packet receives and...
Andrew Tridgell [Thu, 28 Oct 2004 11:59:03 +0000 (11:59 +0000)]
r3320: fixed bugs in the rpc_server code in handling partial packet receives and sends
it now passes the non-blocking test suite
(This used to be commit 6cdf485fb263c69d62ea2e98236d92ffbf6b7a3e)