samba.git
16 years agor3465: fix SMB_SUBSYSTEM_NOPROTO()
Stefan Metzmacher [Tue, 2 Nov 2004 07:15:37 +0000 (07:15 +0000)]
r3465: fix SMB_SUBSYSTEM_NOPROTO()

metze
(This used to be commit e12595a750ea3f5ccc1ca8e628b707c0753394d7)

16 years agor3464: split out registry.h, rap.h and ldap_server.h
Andrew Tridgell [Tue, 2 Nov 2004 06:52:59 +0000 (06:52 +0000)]
r3464: split out registry.h, rap.h and ldap_server.h
(This used to be commit 70d2090f6bf2c7e0caf1e9c020f330de88871f8e)

16 years agor3463: separated out some more headers (asn_1.h, messages.h, dlinklist.h and ioctl.h)
Andrew Tridgell [Tue, 2 Nov 2004 06:42:15 +0000 (06:42 +0000)]
r3463: separated out some more headers (asn_1.h, messages.h, dlinklist.h and ioctl.h)
(This used to be commit b97e395c814762024336c1cf4d7c25be8da5813a)

16 years agor3462: separate out the crypto includes
Andrew Tridgell [Tue, 2 Nov 2004 06:14:15 +0000 (06:14 +0000)]
r3462: separate out the crypto includes
(This used to be commit 3f75117db921e493bb77a5dc14b8ce91a6288f30)

16 years agor3461: another place where "open" was used as a structure element
Andrew Tridgell [Tue, 2 Nov 2004 04:51:57 +0000 (04:51 +0000)]
r3461: another place where "open" was used as a structure element
(This used to be commit 1087ea830e7aead86d54a1836512e88554afc919)

16 years agor3460: Add LIBNDR_GEN_OBJS and LIBNETIF_OBJS to swig objs.
Tim Potter [Tue, 2 Nov 2004 04:26:48 +0000 (04:26 +0000)]
r3460: Add LIBNDR_GEN_OBJS and LIBNETIF_OBJS to swig objs.
(This used to be commit f4c04fcf8f185b966c4ceb455aef4e9e54a98897)

16 years agor3459: Fix cut&paste error in copyright header.
Tim Potter [Tue, 2 Nov 2004 04:22:57 +0000 (04:22 +0000)]
r3459: Fix cut&paste error in copyright header.
(This used to be commit 922ea35a4b6ea02e888a98aee241f1b9f6fca420)

16 years agor3458: more solaris portability fixes, the main one being that we can't use a
Andrew Tridgell [Tue, 2 Nov 2004 04:17:30 +0000 (04:17 +0000)]
r3458: more solaris portability fixes, the main one being that we can't use a
structure element called "open" as its a macro on solaris.
(This used to be commit 4e92e15c4e396b1d8cd211192888fea68c2cf0f9)

16 years agor3457: s_addr is a macro on solaris, so we can't use it in structure names. arrgh.
Andrew Tridgell [Tue, 2 Nov 2004 03:58:27 +0000 (03:58 +0000)]
r3457: s_addr is a macro on solaris, so we can't use it in structure names. arrgh.
(This used to be commit 7842b23d01c53009259a2461600bd01159cecebf)

16 years agor3456: Add appropriate #includes to fix Python extensions build.
Tim Potter [Tue, 2 Nov 2004 03:47:24 +0000 (03:47 +0000)]
r3456: Add appropriate #includes to fix Python extensions build.
(This used to be commit 7e94d5bd3dd7b7055e9b70496207713f94446f98)

16 years agor3455: some more portability fixes. We nearly compile on solaris again now.
Andrew Tridgell [Tue, 2 Nov 2004 03:44:52 +0000 (03:44 +0000)]
r3455: some more portability fixes. We nearly compile on solaris again now.
(This used to be commit 4f33247f1ca60416415a61a7afac43c9dc8a61fd)

16 years agor3454: moved a few more things out if includes.h into the include/system/ include...
Andrew Tridgell [Tue, 2 Nov 2004 03:13:06 +0000 (03:13 +0000)]
r3454: moved a few more things out if includes.h into the include/system/ include files.

this brings us down to about 11k lines of headers included with
includes.h, while still retaining the speed of building with pch
(This used to be commit 10188869ef072309ca580b8b933e172571fcdda7)

16 years agor3453: - split out the auth and popt includes
Andrew Tridgell [Tue, 2 Nov 2004 02:57:18 +0000 (02:57 +0000)]
r3453: - split out the auth and popt includes

- tidied up some of the system includes

- moved a few more structures back from misc.idl to netlogon.idl and samr.idl now that pidl
  knows about inter-IDL dependencies
(This used to be commit 7b7477ac42d96faac1b0ff361525d2c63cedfc64)

16 years agor3450: portability fixes
Andrew Tridgell [Tue, 2 Nov 2004 02:01:04 +0000 (02:01 +0000)]
r3450: portability fixes

 - fix rep_inet_ntoa() for IRIX
 - lib/signal.c needs system/wait.h
 - some systems define a macro "accept", which breaks the lib/socket/ structures.
   use fn_ as a prefix for the structure elements to avoid the problem
(This used to be commit ced1a0fcdc8d8e47755ce4391c19f8b12862eb60)

16 years agor3449: more include file reduction
Andrew Tridgell [Tue, 2 Nov 2004 01:42:45 +0000 (01:42 +0000)]
r3449: more include file reduction

the ldb part isn't ideal, I will have to think of a better solution
(This used to be commit 6b1f86aea8427a8e957b1aeb0ec2f507297f07cb)

16 years agor3448: some systems don't have stdint.h
Andrew Tridgell [Tue, 2 Nov 2004 00:30:45 +0000 (00:30 +0000)]
r3448: some systems don't have stdint.h
(This used to be commit 8afc2b3bc19c627f7b970ee6ce0480039ed5d3cb)

16 years agor3447: more include/system/XXX.h include files
Andrew Tridgell [Tue, 2 Nov 2004 00:24:21 +0000 (00:24 +0000)]
r3447: more include/system/XXX.h include files
(This used to be commit 264ce9181089922547e8f6f67116f2d7277a5105)

16 years agor3446: created include/system/iconv.h and include/system/shmem.h
Andrew Tridgell [Mon, 1 Nov 2004 23:45:40 +0000 (23:45 +0000)]
r3446: created include/system/iconv.h and include/system/shmem.h
(This used to be commit 70055fb1f499cd40e996e56c7ba9ef8d2267b421)

16 years agor3445: made the gtk tooks use minimal includes. This approximately halves the
Andrew Tridgell [Mon, 1 Nov 2004 23:37:12 +0000 (23:37 +0000)]
r3445: made the gtk tooks use minimal includes. This approximately halves the
total include lines in compiling C files in Samba (the .gch file is
now 5M instead of 12M)

This also gets rid of the silly gtk compile warning for non-gtk code
(This used to be commit 8ebd20cf551c8c1fad98ec723d91873fa202b85a)

16 years agor3444: Don't use random data as endpoint if no default endpoint is known and no
Jelmer Vernooij [Mon, 1 Nov 2004 23:35:15 +0000 (23:35 +0000)]
r3444: Don't use random data as endpoint if no default endpoint is known and no
endpoint was specified for ncacn_np.
(This used to be commit 5f47bf1187fbd07fd8eb88da2a1fea2b0e9addf8)

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)