samba.git
20 years agoadded auto-generation of the IDL interface tables. This makes two less
Andrew Tridgell [Fri, 28 Nov 2003 00:48:05 +0000 (00:48 +0000)]
added auto-generation of the IDL interface tables. This makes two less
places that need to be edited when someone adds a new IDL file.
(This used to be commit ccd9ddeed679baa6cbb05ac728b381b50420e00f)

20 years agoImplemented SetForm RPC.
Tim Potter [Thu, 27 Nov 2003 20:55:13 +0000 (20:55 +0000)]
Implemented SetForm RPC.
(This used to be commit bdb0dfc370b4deb9e7f5a381092538c3e502f191)

20 years agoAdd DeleteForm, start cleaning up tests.
Tim Potter [Thu, 27 Nov 2003 09:50:25 +0000 (09:50 +0000)]
Add DeleteForm, start cleaning up tests.
(This used to be commit 10b31623fd421d341787d0769839ea5dca5ae7c0)

20 years agomore epmapper and mgmt magic
Andrew Tridgell [Thu, 27 Nov 2003 07:28:46 +0000 (07:28 +0000)]
more epmapper and mgmt magic

protocol 0x1f is interesting - its ncacn_http !
(This used to be commit e3d40e3da6e15407162c1d0a29d2cbe86842228e)

20 years agoImplemented AddForm RPC. The mystery of the useless_ptr has been
Tim Potter [Thu, 27 Nov 2003 06:15:06 +0000 (06:15 +0000)]
Implemented AddForm RPC.  The mystery of the useless_ptr has been
solved.  It was a pointer in a union member.

RPC-SPOOLSS tests a bit messy and could do with a cleanup.
(This used to be commit cf8cd4485261e861b16b98fb918758ff11282f1d)

20 years agoadded an rpc scanner. This prints messages like this:
Andrew Tridgell [Thu, 27 Nov 2003 05:34:28 +0000 (05:34 +0000)]
added an rpc scanner. This prints messages like this:

        uuid 82273fdc-e32a-18c3-3f78-827929dc23ea  version 0x0000:0x0000  'eventlog'
        24 calls available
        WARNING: local IDL defines 4 calls

when all the WARNINGs are gone then we know we have all the calls :)
(This used to be commit f5821b2468a0c46d0e5590de59562926d746c349)

20 years agouse EPMAPPER_PORT constant instead of 135
Andrew Tridgell [Thu, 27 Nov 2003 04:04:31 +0000 (04:04 +0000)]
use EPMAPPER_PORT constant instead of 135
(This used to be commit 953ab587dc5a625d0fb557fdcac122a3b2ed0224)

20 years agoa couple of tidyups
Andrew Tridgell [Thu, 27 Nov 2003 04:02:15 +0000 (04:02 +0000)]
a couple of tidyups

 * don't try to map the epmapper uuid !

 * some preliminary support for alter context pdus
(This used to be commit f9857e56850cabfac06534fb33ff7a7a04346a9b)

20 years agoswitched to WERROR return codes in the management IDL
Andrew Tridgell [Thu, 27 Nov 2003 04:01:18 +0000 (04:01 +0000)]
switched to WERROR return codes in the management IDL
(This used to be commit a81f659e9e7d876b82fb7b5950b9fbfbf5478e03)

20 years agoadded -m for 'max protocol' as a standard option
Andrew Tridgell [Thu, 27 Nov 2003 04:00:21 +0000 (04:00 +0000)]
added -m for 'max protocol' as a standard option
(This used to be commit 8fe4058711c12b8116982357723c36e862aa0bef)

20 years agofixed default port handling pointed out by Tom Jansen
Andrew Tridgell [Wed, 26 Nov 2003 21:57:29 +0000 (21:57 +0000)]
fixed default port handling pointed out by Tom Jansen
(This used to be commit 8246e6ca0bd0eaa92de602db46a119d368e93391)

20 years agoby default sign RPC over TCP but not RPC over SMB. I will add command line control...
Andrew Tridgell [Wed, 26 Nov 2003 12:29:08 +0000 (12:29 +0000)]
by default sign RPC over TCP but not RPC over SMB. I will add command line control soon
(This used to be commit 215852116c1fb8c0d8ef559155a3dd55346f0c31)

20 years agoImplemented EnumForms and GetForm.
Tim Potter [Wed, 26 Nov 2003 06:26:18 +0000 (06:26 +0000)]
Implemented EnumForms and GetForm.
(This used to be commit 822750592cffb175aa7afb268bc7cb47bbab47e4)

20 years agoadded a link to opengroup PDU definitions
Andrew Tridgell [Wed, 26 Nov 2003 04:32:39 +0000 (04:32 +0000)]
added a link to opengroup PDU definitions
(This used to be commit 939d832e5eb49abf392cfee39631a157fc2168a4)

20 years agoshow an error when the epmapper fails to find an interface
Andrew Tridgell [Wed, 26 Nov 2003 04:32:04 +0000 (04:32 +0000)]
show an error when the epmapper fails to find an interface
(This used to be commit 448dead14dc9db2c429c78f0eed303c4513f5a47)

20 years agoAdd bind nak to dcerpc_payload.
Tim Potter [Wed, 26 Nov 2003 04:23:24 +0000 (04:23 +0000)]
Add bind nak to dcerpc_payload.
(This used to be commit 0deb9179f07dead11e2fff247efe9e3d0879da58)

20 years agotransfer syntax V2 isn't as magic as I thought
Andrew Tridgell [Wed, 26 Nov 2003 03:43:04 +0000 (03:43 +0000)]
transfer syntax V2 isn't as magic as I thought
(This used to be commit bb3bb5dc8d494afd077fa613d064767d7aad90cd)

20 years agouse the IDL defined NDR version number
Andrew Tridgell [Wed, 26 Nov 2003 03:41:06 +0000 (03:41 +0000)]
use the IDL defined NDR version number
(This used to be commit 00e0c14b76c9b001c7d7b6b18b2cb543a57fe082)

20 years agoadded auto-determination of the DCERPC over TCP port number by asking
Andrew Tridgell [Wed, 26 Nov 2003 03:36:17 +0000 (03:36 +0000)]
added auto-determination of the DCERPC over TCP port number by asking
the servers endpoint mapper
(This used to be commit 4abf5376b00f580eb69196e55a792cc7eb4c9880)

20 years agofixed some memory leaks in the dcerpc use of ntlmssp signing
Andrew Tridgell [Wed, 26 Nov 2003 02:08:41 +0000 (02:08 +0000)]
fixed some memory leaks in the dcerpc use of ntlmssp signing
(This used to be commit abbc9993b8f7eb9f57e079db1d0b170d0b9aa443)

20 years agosigned DCERPC over TCP now works !
Andrew Tridgell [Wed, 26 Nov 2003 01:16:41 +0000 (01:16 +0000)]
signed DCERPC over TCP now works !

 * moved ntlmssp code into libcli/auth/, and updated to latest ntlmssp
   code from samba3 (thanks Andrew! the new interface is great)

 * added signing/ntlmssp support in the dcerpc code

 * added a dcerpc_auth.c module for the various dcerpc auth mechanisms
(This used to be commit c18c9b5585a3e5f7868562820c14f7cb529cdbcd)

20 years agoadded some paranoid checking for enums
Andrew Tridgell [Wed, 26 Nov 2003 01:13:00 +0000 (01:13 +0000)]
added some paranoid checking for enums
(This used to be commit 3492f37b0bf14797514f1dc603f518bf5b801c3c)

20 years agoSpoolss functions return WERROR not NTSTATUS.
Tim Potter [Tue, 25 Nov 2003 11:24:49 +0000 (11:24 +0000)]
Spoolss functions return WERROR not NTSTATUS.

Start writing idl for forms RPCs.
(This used to be commit 9274ef60b690c334d426dfa815fe472b2da19e2d)

20 years agoCVS: ----------------------------------------------------------------------
Jelmer Vernooij [Tue, 25 Nov 2003 03:15:26 +0000 (03:15 +0000)]
CVS: ----------------------------------------------------------------------
CVS: Enter Log.  Lines beginning with `CVS:' are removed automatically
CVS:
CVS: Committing in .
CVS:
CVS: Modified Files:
CVS:  Makefile.in configure.in include/includes.h include/ntvfs.h
CVS:  include/smb.h lib/iconv.c lib/module.c ntvfs/ntvfs_base.c
CVS:  ntvfs/cifs/vfs_cifs.c ntvfs/ipc/vfs_ipc.c
CVS:  ntvfs/posix/vfs_posix.c ntvfs/print/vfs_print.c
CVS:  ntvfs/reference/vfs_ref.c ntvfs/simple/vfs_simple.c
CVS:  passdb/pdb_interface.c
CVS: Added Files:
CVS:  include/module.h
CVS: ----------------------------------------------------------------------
Update to the modules system. Fixed:
 - get rid of smb_probe_module
 - merge older updates from 3.0
 - introduced register_subsystem() and register_backend() functions
 - adapt ntvfs and charset to use new register functions
 - made smb_load_modules() work recursively (e.g. 'preload modules = /usr/lib/samba')
 - got rid of some old remains

Things that still need work:
 - Did I break tankFS? I don't think so, but I can't test it here :-(
 - Add 'postload modules = ' (for modules that need to be loaded after fork() in smbd, if applicable)
 - Convert RPC, auth, passdb, etc to use new register_{subsystem,backend}() functions
 - Accept wildcards in 'preload modules' option, instead of loading recursively
(This used to be commit 7512b9ab1a8b3103f7a6c13f736353c46a26b668)

20 years agoUpdate to the modules system. Fixed:
Jelmer Vernooij [Tue, 25 Nov 2003 02:09:40 +0000 (02:09 +0000)]
Update to the modules system. Fixed:
 - get rid of smb_probe_module
 - merge older updates from 3.0
 - introduced register_subsystem() and register_backend() functions
 - adapt ntvfs and charset to use new register functions
 - made smb_load_modules() work recursively (e.g. 'preload modules = /usr/lib/samba')
 - got rid of some old remains

Things that still need work:
 - Did I break tankFS? I don't think so, but I can't test it here :-(
 - Add 'postload modules = ' (for modules that need to be loaded after fork() in smbd, if applicable)
 - Convert RPC, auth, passdb, etc to use new register_{subsystem,backend}() functions
 - Accept wildcards in 'preload modules' option, instead of loading recursively
(This used to be commit 3433c4c71f20dde96d30e02a49bbe09a9ce6c036)

20 years ago * fixed byte order in epmapper parsing
Andrew Tridgell [Mon, 24 Nov 2003 13:19:00 +0000 (13:19 +0000)]
 * fixed byte order in epmapper parsing

 * allow rpc transport to be specified on command line in smbtorture
(This used to be commit 8a82050fd6f45bcdb31c2c365eaed5fc12599e4f)

20 years agoinitial implementation of dcerpc over tcp. RPC-EPMAPPER works, now to
Andrew Tridgell [Mon, 24 Nov 2003 12:40:47 +0000 (12:40 +0000)]
initial implementation of dcerpc over tcp. RPC-EPMAPPER works, now to
add epm_Map calls and support the rest of the pipes
(This used to be commit 39add481582609ddb9d0b3bae45fde3226ece481)

20 years ago * prepared the dcerpc subsystem for adding the RPC over TCP transport
Andrew Tridgell [Mon, 24 Nov 2003 11:45:33 +0000 (11:45 +0000)]
 * prepared the dcerpc subsystem for adding the RPC over TCP transport

 * fixed a uninitialised variable bug in pidl (found by valgrind)
(This used to be commit 8bce61b8af6351c72c0dd84dc61b49d8aeb1fbbd)

20 years agoremoved the STFS specific flags in the Makefile.
Andrew Tridgell [Mon, 24 Nov 2003 10:37:24 +0000 (10:37 +0000)]
removed the STFS specific flags in the Makefile.

Jim, we are going to need to redo the STFS backend as a module, as
otherwise maintaining it outside of the samba.org tree will become too
awkward.
(This used to be commit 0fedafd7a026c8a793a1478d8a989f0c930092b4)

20 years agoadded tests for epm_Map endpointer map calls
Andrew Tridgell [Mon, 24 Nov 2003 10:15:17 +0000 (10:15 +0000)]
added tests for epm_Map endpointer map calls
(This used to be commit 570ad78525ffcc116842270b62ba41c86c2a018d)

20 years agogive far more detail in the EPMAPPER results
Andrew Tridgell [Mon, 24 Nov 2003 05:28:10 +0000 (05:28 +0000)]
give far more detail in the EPMAPPER results
(This used to be commit 420301969820ffaa0a87b091c7a79372c99cb658)

20 years agomake sure we don't try to update a constant
Andrew Tridgell [Mon, 24 Nov 2003 03:31:03 +0000 (03:31 +0000)]
make sure we don't try to update a constant
(This used to be commit 4a6034f2e37d1050364fc167f1b71b5c806dfdc9)

20 years agoadded tests for the remaining calls on the rpc management interface
Andrew Tridgell [Mon, 24 Nov 2003 03:21:49 +0000 (03:21 +0000)]
added tests for the remaining calls on the rpc management interface
(This used to be commit 00f9b0e12061c175334f96805ca8333f28f74d91)

20 years agoadded the dcerpc remote management interfaces as mgmt.idl, and wrote a
Andrew Tridgell [Mon, 24 Nov 2003 01:24:29 +0000 (01:24 +0000)]
added the dcerpc remote management interfaces as mgmt.idl, and wrote a
test suite. The test suite dumps all of the interfaces available on
all pipes. There sure are a lot more interfaces on w2k3 than w2k !
(This used to be commit f94bc079902d725b63155d8d2de5bf408c6e7335)

20 years ago * better diagnostics in ndrdump
Andrew Tridgell [Sun, 23 Nov 2003 21:51:24 +0000 (21:51 +0000)]
 * better diagnostics in ndrdump

 * added samr_Connect2()
(This used to be commit 6b262ca37ca3fc0e3210b4379b2d9e46e1a2d336)

20 years agoadded a tool called 'ndrdump' that allows you to dump NDR data
Andrew Tridgell [Sun, 23 Nov 2003 13:44:19 +0000 (13:44 +0000)]
added a tool called 'ndrdump' that allows you to dump NDR data
according to the current IDL taking the data from a file. In
combination with a little hack to ethereal to extract data this is a
quite powerful IDL development tool.
(This used to be commit 229a325c3cf0d4dc1e910ed32e1d7391040aeba1)

20 years agoModify WINREG test program to recursively enumerate keys in all known
Tim Potter [Sun, 23 Nov 2003 11:57:15 +0000 (11:57 +0000)]
Modify WINREG test program to recursively enumerate keys in all known
hives.  Limit the recursion depth to ensure the test doesn't run too long.
(This used to be commit 152af383b8fdaa41be97356f9c55b9a5824edecf)

20 years agoRemoved unused variable.
Tim Potter [Sun, 23 Nov 2003 11:05:31 +0000 (11:05 +0000)]
Removed unused variable.
(This used to be commit 40ccaeefed1a3baea356254795c698794cb81384)

20 years agoCheck NT_STATUS code from dcerpc call function before checking the
Tim Potter [Sun, 23 Nov 2003 10:51:39 +0000 (10:51 +0000)]
Check NT_STATUS code from dcerpc call function before checking the
WERROR code.
(This used to be commit b4792b7b316f8cb665b5a698f348c7c033702934)

20 years agoAdd a strlen_m_term() function for returning the length of a string
Tim Potter [Sun, 23 Nov 2003 10:50:52 +0000 (10:50 +0000)]
Add a strlen_m_term() function for returning the length of a string
including the termination.  Using value(strlen_m((r->name)+1)*2) gives
the wrong answer for the NULL string.
(This used to be commit 7ae329e6630a07d29f83b6dd4572d26ab8a18c71)

20 years agofixed the handling of value() attributes on scalars in IDL that
Andrew Tridgell [Sun, 23 Nov 2003 07:14:17 +0000 (07:14 +0000)]
fixed the handling of value() attributes on scalars in IDL that
reference other elements of the same structure
(This used to be commit d8d17be290730670bad0fea91188d394160cb879)

20 years agoActually call right function name.
Tim Potter [Sun, 23 Nov 2003 06:54:18 +0000 (06:54 +0000)]
Actually call right function name.
(This used to be commit 634ea437201fbf61f3157a4b0ebabfcb15507166)

20 years agoCall enumkey for tridge.
Tim Potter [Sun, 23 Nov 2003 06:38:37 +0000 (06:38 +0000)]
Call enumkey for tridge.
(This used to be commit cc71bd2a903ba1f12f08758e885f1f07e61f7c86)

20 years agoString termination fix.
Tim Potter [Sun, 23 Nov 2003 06:31:10 +0000 (06:31 +0000)]
String termination fix.

Re-arrange winreg tests - currently it's failing with an input validation
error on tridge's test pull/push test code.
(This used to be commit 8f154f8b9f0bb8d9c7915945d4a0b1c20a206999)

20 years agoStrings in the winreg pipe are terminated.
Tim Potter [Sun, 23 Nov 2003 06:29:11 +0000 (06:29 +0000)]
Strings in the winreg pipe are terminated.
(This used to be commit 1f56d4cd04840b350b098e698d369cd6b047cfe4)

20 years agoooh, this is fun!
Andrew Tridgell [Sun, 23 Nov 2003 06:28:12 +0000 (06:28 +0000)]
ooh, this is fun!

I have recoded the core dcerpc packet structures (all the PDUs etc) in
terms of IDL, which means we now use pidl to generate all the code for
handling the most basic dcerpc packets. This is not normally possible
as it isn't completely valid NDR, but pidl has a number of extensions
that make it quite easy.

This also means we get the server side dcerpc
marshalling/unmarshalling code for free.
(This used to be commit 92bcad02587c3c1b31b523ee9fa46658a6cef9ff)

20 years agosave about 35% of the time for "make idl" by processing multiple IDL
Andrew Tridgell [Sun, 23 Nov 2003 03:42:20 +0000 (03:42 +0000)]
save about 35% of the time for "make idl" by processing multiple IDL
files at once, which means less perl startup time.
(This used to be commit 64b2c67e479ddc754d18f752d347ba22a6d77682)

20 years agoget rid of some more unused headers
Andrew Tridgell [Sun, 23 Nov 2003 03:10:50 +0000 (03:10 +0000)]
get rid of some more unused headers
(This used to be commit 48276c768bc58aa531771e0172a7480ec94d3254)

20 years agoby using a single proto.h we gain another factor of 4 in the speed of
Andrew Tridgell [Sun, 23 Nov 2003 03:03:27 +0000 (03:03 +0000)]
by using a single proto.h we gain another factor of 4 in the speed of
"make proto"
(This used to be commit f6bb118799887e8e29399343e377ba8e9f059f20)

20 years agofinal bit of tidyup and speedup
Andrew Tridgell [Sun, 23 Nov 2003 02:44:23 +0000 (02:44 +0000)]
final bit of tidyup and speedup
(This used to be commit 1c980e6c4e89b24aa8fedf0b6684cd73f34b6c25)

20 years agomuch faster inner loop and neater code
Andrew Tridgell [Sun, 23 Nov 2003 02:33:46 +0000 (02:33 +0000)]
much faster inner loop and neater code
(This used to be commit 9ea02c51d449095b7f17edb3fb82d3722cdd9c20)

20 years agofixed loadparm handling properly
Andrew Tridgell [Sun, 23 Nov 2003 02:11:55 +0000 (02:11 +0000)]
fixed loadparm handling properly
(This used to be commit 945ada7e7ec0f4b4df559bc171b9b18d30eff834)

20 years agonicer base type handling
Andrew Tridgell [Sun, 23 Nov 2003 02:00:40 +0000 (02:00 +0000)]
nicer base type handling
(This used to be commit e58384eb53b654768d2eb53c222529849674753c)

20 years agoreduced the number of magic types we need in mkproto.pl
Andrew Tridgell [Sun, 23 Nov 2003 01:53:54 +0000 (01:53 +0000)]
reduced the number of magic types we need in mkproto.pl

In general I prefer "struct foo" to just "foo" for most
structures. There are exceptions.
(This used to be commit 04eb12b56c653f98801ab29411f47564ab32fa58)

20 years agowe don't need awk now
Andrew Tridgell [Sun, 23 Nov 2003 01:31:40 +0000 (01:31 +0000)]
we don't need awk now
(This used to be commit db6d7daaef4d51e3c463fe76eefa2b22ff71a546)

20 years agoget rid of our awk scripts
Andrew Tridgell [Sun, 23 Nov 2003 01:30:58 +0000 (01:30 +0000)]
get rid of our awk scripts
(This used to be commit f11f757c871dcb66813e44a3144df0f927108d8e)

20 years agochanged to perl for mkproto, patch from vance
Andrew Tridgell [Sun, 23 Nov 2003 01:29:42 +0000 (01:29 +0000)]
changed to perl for mkproto, patch from vance
(This used to be commit 9386326868f43dab95b5508ce0ca5a9c1160a2eb)

20 years agoadded support for enumerated types in IDL files. This makes unions
Andrew Tridgell [Sat, 22 Nov 2003 22:53:08 +0000 (22:53 +0000)]
added support for enumerated types in IDL files. This makes unions
easier to work with.
(This used to be commit 60be15d306e7b65efdd27df02250c0264996ccf3)

20 years agoadded support for 'const' in IDL files. This makes it easy to define
Andrew Tridgell [Sat, 22 Nov 2003 22:09:10 +0000 (22:09 +0000)]
added support for 'const' in IDL files. This makes it easy to define
symbolic names for bitfields etc.
(This used to be commit 344a6e1682cc1afab24735e73d05cf15f6eb9816)

20 years agoadded the beginnings of an IDL validator, to give clearer errors when
Andrew Tridgell [Sat, 22 Nov 2003 12:25:20 +0000 (12:25 +0000)]
added the beginnings of an IDL validator, to give clearer errors when
IDL is not valid
(This used to be commit c1b708708e262350d697829d444d0fb6a981a80f)

20 years ago * fixed null terminated string handling
Andrew Tridgell [Sat, 22 Nov 2003 11:49:22 +0000 (11:49 +0000)]
 * fixed null terminated string handling

 * fixed nested relative offsets in push functions

the spoolss torture test now passes!
(This used to be commit 60ced76160e4f4e2b511ebbeec31130c8ebcdd22)

20 years ago * fixed handling of relative subcontext unions
Andrew Tridgell [Sat, 22 Nov 2003 10:37:00 +0000 (10:37 +0000)]
 * fixed handling of relative subcontext unions

 * fixed GetPrinter in spoolss after OpenPrinter
(This used to be commit 4aea2d79dd6b14e0fdfafd2236849ece01839ce0)

20 years agodfs torture test now passes
Andrew Tridgell [Sat, 22 Nov 2003 09:45:40 +0000 (09:45 +0000)]
dfs torture test now passes
(This used to be commit 201cb6116df8ad74569d78827815855105a1ea11)

20 years ago * fixed NDR flag inheritance across push subcontexts
Andrew Tridgell [Sat, 22 Nov 2003 09:32:35 +0000 (09:32 +0000)]
 * fixed NDR flag inheritance across push subcontexts

 * don't consider not doing lsa_QueryInfoPolicy level 11 a failure
   (w2k3 doesn't have this level, w2k does)

 * on a NDR validation failure dump the failed data at level 3
(This used to be commit 9d5078962f0f8aef3360dea4c4774cf8de1fdc26)

20 years ago * enable RPC/NDR validation in all smbtorture code
Andrew Tridgell [Sat, 22 Nov 2003 08:41:40 +0000 (08:41 +0000)]
 * enable RPC/NDR validation in all smbtorture code

 * allow us to distinguish between null arrays and zero length arrays,
   by making the allocation size a minimum of 1 on array pull
(This used to be commit 11c0fe548ecfb03424f51e1354b86d4692e8f07c)

20 years agoa fairly major upgrade to the dcerpc system
Andrew Tridgell [Sat, 22 Nov 2003 08:11:32 +0000 (08:11 +0000)]
a fairly major upgrade to the dcerpc system

 * added a NDR validator. The way it works is that when the
   DCERPC_DEBUG_VALIDATE_* flags are set the dcerpc system will
   perform NDR buffer validation. On sending a request the packet is
   first marshalled, then unmarahslled, then marshalled again, and it is
   confirmed that the two marshalling results are idential. This
   ensures that our pull and push routines are absolutely in sync, so
   that we can be very confident that if a routine works in the client
   then the corresponding routine must work on the server side. A
   similar validation is performed on all replies.

 * a result of this change is that pidl is fussier about the [ref]
   tag. You can only use it on pointers (which is the only place it
   makes sense)

 * fixed a basic alignment bug in the push side of the NDR code

 * added server side pull/push support. Our dcerpc system is now fully
   ready to be used on the server side.

 * fixed the relative offset pointer list. It must be traversed in
   reverse order on push

 * added automatic value setting for the size parameter in outgoing
   SdBuf structures.

 * expanded the ndr debugging code to always give a message on any
   failure

 * fixed the subcontext push code

 * fixed some memory leaks in smbtorture RPC tests
(This used to be commit 8ecf720206a2eef3f8ea7cbdb1f460664a5dba9a)

20 years ago * you can't have two parameters with the same name (pidl doesn't enforce
Andrew Tridgell [Sat, 22 Nov 2003 06:10:32 +0000 (06:10 +0000)]
 * you can't have two parameters with the same name (pidl doesn't enforce
   that currently, but will in a couple of hours when I've finished my
   NDR validator code)

 * only a pointer can be [ref]
(This used to be commit 4e174564ae4e8f84053d23ac2d40a59926f7e9e3)

20 years agoConvert all NTSTATUS return codes to WERROR.
Tim Potter [Sat, 22 Nov 2003 05:34:25 +0000 (05:34 +0000)]
Convert all NTSTATUS return codes to WERROR.

Implement all OpenXXX calls, EnumKey, OpenKey, QueryInfoKey.

Started EnumValue but it doesn't work yet.
(This used to be commit 5cba48252a8b3338a296d7ec8fa8ccba43dd190e)

20 years agoadded Parse::RecDescent module into pidl to ensure we all use the same
Andrew Tridgell [Sat, 22 Nov 2003 01:40:24 +0000 (01:40 +0000)]
added Parse::RecDescent module into pidl to ensure we all use the same
version. This should fix the problems Richard was seeing.
(This used to be commit 76c24a5cb09b096a9cb490f3bb42af0b9d0f5fa9)

20 years agoadded some explanations for epmapper IDL and dom_sid2
Andrew Tridgell [Sat, 22 Nov 2003 01:27:40 +0000 (01:27 +0000)]
added some explanations for epmapper IDL and dom_sid2
(This used to be commit 5962f1cffa9273cc06c8a3c4a112f3ce94b84dae)

20 years agofixed a bug with pushing non-pointer unions
Andrew Tridgell [Fri, 21 Nov 2003 22:34:45 +0000 (22:34 +0000)]
fixed a bug with pushing non-pointer unions
(This used to be commit bc2fbc79cc7c0308934f351b067a88b4b397de37)

20 years agofix a smbtorture memory leak
Andrew Tridgell [Fri, 21 Nov 2003 22:00:38 +0000 (22:00 +0000)]
fix a smbtorture memory leak
(This used to be commit 0eff7c519b87d9c69da61a7dfeecd0483f1ad7e9)

20 years agocleaner handling of relative pointers to strings
Andrew Tridgell [Fri, 21 Nov 2003 22:00:00 +0000 (22:00 +0000)]
cleaner handling of relative pointers to strings
(This used to be commit 4022e710755a61a3439f739a78fa6965b9b7788e)

20 years agodon't ignore .h files here
Andrew Tridgell [Fri, 21 Nov 2003 21:25:48 +0000 (21:25 +0000)]
don't ignore .h files here
(This used to be commit b1863f897ffeec551ff8b1bad91fcfeede30beef)

20 years agoforgot to commit this, sorry
Andrew Tridgell [Fri, 21 Nov 2003 21:25:03 +0000 (21:25 +0000)]
forgot to commit this, sorry
(This used to be commit ff883d1cba4e998aa0a4b160d4fee118f79ca277)

20 years agoprint out the UUIDs from the end point mapper
Andrew Tridgell [Fri, 21 Nov 2003 13:27:58 +0000 (13:27 +0000)]
print out the UUIDs from the end point mapper
(This used to be commit f90e5db8f9d1fa7062762af0ab3e0696998bf8bb)

20 years ago* changed the way strings are handled in pidl to a much more general
Andrew Tridgell [Fri, 21 Nov 2003 13:14:17 +0000 (13:14 +0000)]
* changed the way strings are handled in pidl to a much more general
  interface. We now support an arbitrary set of flags to each parser,
  and these can be used to control the string types. I have provided
  some common IDL string types in librpc/idl/idl_types.h which needs to
  be included in every IDL file.

* added IDL for the endpoint mapper. Added a test suite that enumerates
  all endpoints on the server.
(This used to be commit d2665f36a75b482ff82733f72ffac938c2acf87a)

20 years agoImplement DeleteKey, DeleteValue, FlushKey.
Tim Potter [Fri, 21 Nov 2003 06:14:14 +0000 (06:14 +0000)]
Implement DeleteKey, DeleteValue, FlushKey.
(This used to be commit 49f1654510f0ea7681b386296b67282791c4b319)

20 years agoStart of winreg idl. Implement OpenHKLM, GetVersion and CloseKey.
Tim Potter [Fri, 21 Nov 2003 05:28:36 +0000 (05:28 +0000)]
Start of winreg idl.  Implement OpenHKLM, GetVersion and CloseKey.
(This used to be commit c8b87f5feb7756c7a5b38135517788c9f4ade36f)

20 years agoMore work on eventlog - still doesn't work. (-:
Tim Potter [Fri, 21 Nov 2003 03:07:02 +0000 (03:07 +0000)]
More work on eventlog - still doesn't work.  (-:
(This used to be commit 9109cb832a3807b3eee9e52c8c533e2bf0c8007a)

20 years agoavoid calling the print routines completely if debug level < 2
Andrew Tridgell [Fri, 21 Nov 2003 02:50:40 +0000 (02:50 +0000)]
avoid calling the print routines completely if debug level < 2
(This used to be commit 63b9d2803c9e5b44680a72b127f6a58eb44a3c60)

20 years agoonly display really verbose packet dumps when smbtorture is run at
Andrew Tridgell [Fri, 21 Nov 2003 02:44:31 +0000 (02:44 +0000)]
only display really verbose packet dumps when smbtorture is run at
debug level 2 or above. This is more useful for checking that
something hasn't broken without swamping yourself with output.
(This used to be commit 53ff3a572a23c2f45c5d503255bc6b535ca99134)

20 years agoadded 4 more levels to samr_QueryDisplayInfo()
Andrew Tridgell [Fri, 21 Nov 2003 02:19:47 +0000 (02:19 +0000)]
added 4 more levels to samr_QueryDisplayInfo()
(This used to be commit f4cc593a5c7d75adaced2c33dd83c2ec741751be)

20 years agoadded support for 'ascstr', a ascii string in MSRPC !
Andrew Tridgell [Fri, 21 Nov 2003 02:19:09 +0000 (02:19 +0000)]
added support for 'ascstr', a ascii string in MSRPC !
(This used to be commit a5eeb3be0577e0ce91ac1f6e641782e4acbbda07)

20 years agoignore generated idl.pm
Andrew Tridgell [Thu, 20 Nov 2003 22:51:02 +0000 (22:51 +0000)]
ignore generated idl.pm
(This used to be commit e9d18ecc2d513dc7aba9a0545808a95893544fe6)

20 years agoTodd Sabin pointed out that a couple of the values I marked as hyper_t
Andrew Tridgell [Thu, 20 Nov 2003 22:47:20 +0000 (22:47 +0000)]
Todd Sabin pointed out that a couple of the values I marked as hyper_t
are in fact 4 byte aligned. Create a ULONG8 type in samr for
those. This type should probably be made global later.
(This used to be commit e7dd116138ed21922c8578bebe0452f03221b3b7)

20 years agowe now use a copy of pidl inside the samba4 source tree at
Andrew Tridgell [Thu, 20 Nov 2003 22:46:01 +0000 (22:46 +0000)]
we now use a copy of pidl inside the samba4 source tree at
source/build/pidl/

I imported the code using direct respository manipulation to preserve
the commit history
(This used to be commit 2ed87a52ccc343c281e29f5a18f3f99fe06beb28)

20 years agoAdd initial work on eventlog - doesn't quite work yet.
Tim Potter [Thu, 20 Nov 2003 21:52:40 +0000 (21:52 +0000)]
Add initial work on eventlog - doesn't quite work yet.
(This used to be commit 99fff7b1e24ee7231fa41ca9cb85382637f2b2b0)

20 years agoadded samr_QueryDisplayInfo() (only level 1 so far)
Andrew Tridgell [Thu, 20 Nov 2003 12:10:41 +0000 (12:10 +0000)]
added samr_QueryDisplayInfo() (only level 1 so far)
(This used to be commit 8601305c8100f03ffaee4754eae12e9b332508a4)

20 years ago* fixed libndr.h header
Andrew Tridgell [Thu, 20 Nov 2003 11:17:06 +0000 (11:17 +0000)]
* fixed libndr.h header

* "make clean" now removed the generated files
(This used to be commit 683259a4dd30861ed24e8e5df918c8725ae13800)

20 years agomoved the pidl auto-generated files out of CVS
Andrew Tridgell [Thu, 20 Nov 2003 11:09:53 +0000 (11:09 +0000)]
moved the pidl auto-generated files out of CVS
(This used to be commit 49c72d42766a55e2833c004e721a47115000626b)

20 years agoextensive samr_SetUserInfo/samr_QueryUserInfo testing, with
Andrew Tridgell [Thu, 20 Nov 2003 10:53:08 +0000 (10:53 +0000)]
extensive samr_SetUserInfo/samr_QueryUserInfo testing, with
cross-checking of all settable fields
(This used to be commit 3337906d52e95c127d64f81f9fc99aeb8a8d1ce6)

20 years ago * fixed level2 of QueryUserInfo
Andrew Tridgell [Thu, 20 Nov 2003 10:29:54 +0000 (10:29 +0000)]
 * fixed level2 of QueryUserInfo

 * added per-field testing of SetUserInfo

 * fixed strlen_m()
(This used to be commit 26238b0f8a5752bb0f611c4aa492b964e419209a)

20 years agomake sure we don't try to use c++ style variable declaration
Andrew Tridgell [Thu, 20 Nov 2003 07:28:59 +0000 (07:28 +0000)]
make sure we don't try to use c++ style variable declaration
(This used to be commit 9fee73793171e2cd295899ec0db8bcecfa95ca72)

20 years agostarted on samr_SetUserInfo()
Andrew Tridgell [Thu, 20 Nov 2003 07:20:59 +0000 (07:20 +0000)]
started on samr_SetUserInfo()

cope with the 'samrtorturetest' user already existing in the samr test
(to cope with previously failed runs)
(This used to be commit 47128b3d50b3481175a8b2580624316a4f7677db)

20 years agofixed pushing structures containing pointers inside unions
Andrew Tridgell [Thu, 20 Nov 2003 07:07:09 +0000 (07:07 +0000)]
fixed pushing structures containing pointers inside unions
(This used to be commit bb30f42cd4e20d53066634727347a601b4eb562e)

20 years agoa bit neater way of emitting code
Andrew Tridgell [Thu, 20 Nov 2003 06:34:18 +0000 (06:34 +0000)]
a bit neater way of emitting code
(This used to be commit 964c3237215b36f5768b98c19689ddc43cf86cac)

20 years agofixed a comment
Andrew Tridgell [Thu, 20 Nov 2003 05:46:45 +0000 (05:46 +0000)]
fixed a comment
(This used to be commit d996c880f49c89c22775ad7e048dec6d5d5f82c9)

20 years ago * cope with pidl not being in $HOME/pidl
Andrew Tridgell [Thu, 20 Nov 2003 05:39:54 +0000 (05:39 +0000)]
 * cope with pidl not being in $HOME/pidl

 * cope with empty structures in unions
(This used to be commit a706ff78937bea64acd28381466770749566399f)

20 years agofixed srvsvc_NetShareEnumAll()
Andrew Tridgell [Thu, 20 Nov 2003 05:34:02 +0000 (05:34 +0000)]
fixed srvsvc_NetShareEnumAll()
(This used to be commit ab4056e25ccfde5136ff3a1cd5d1efa78f1eee1b)