13 years agor4671: Expand the RPC-LSA test to set secret values twice.
Andrew Bartlett [Tue, 11 Jan 2005 03:49:29 +0000 (03:49 +0000)]
r4671: Expand the RPC-LSA test to set secret values twice.

Andrew Bartlett

13 years agor4670: abartlet was worried about floating point precision with my first
Andrew Tridgell [Tue, 11 Jan 2005 03:26:26 +0000 (03:26 +0000)]
r4670: abartlet was worried about floating point precision with my first
version - here is one based purely on 64 bit math

13 years agor4669: a timeval_to_nttime() function as requested by abartlet. Andrew, its
Andrew Tridgell [Tue, 11 Jan 2005 03:07:53 +0000 (03:07 +0000)]
r4669: a timeval_to_nttime() function as requested by abartlet. Andrew, its
your responsibility to use/test this :-)

13 years agor4667: Don't follow a NULL pointer for an idle event handler.
Andrew Bartlett [Tue, 11 Jan 2005 02:18:42 +0000 (02:18 +0000)]
r4667: Don't follow a NULL pointer for an idle event handler.

Fix up some header comments.

Andrew Bartlett

13 years agor4664: SPNEGO auth in our rpc server now works, so add it to the battery of
Andrew Tridgell [Tue, 11 Jan 2005 01:57:44 +0000 (01:57 +0000)]
r4664: SPNEGO auth in our rpc server now works, so add it to the battery of
tests in

13 years agor4663: fixed SPNEGO auth in the rpc server
Andrew Tridgell [Tue, 11 Jan 2005 01:53:14 +0000 (01:53 +0000)]
r4663: fixed SPNEGO auth in the rpc server

13 years agor4660: Test what we should return for a secret that does not exist.
Andrew Bartlett [Tue, 11 Jan 2005 01:36:26 +0000 (01:36 +0000)]
r4660: Test what we should return for a secret that does not exist.

Andrew Bartlett

13 years agor4659: Revert -r 4657 committed by mistake, until I review and test the
Andrew Bartlett [Mon, 10 Jan 2005 22:56:51 +0000 (22:56 +0000)]
r4659: Revert -r 4657 committed by mistake, until I review and test the
changes (which were to use the common ARCFOUR code for random number

Andrew Bartlett

13 years agor4658: (grr, commited wrong file last time).
Andrew Bartlett [Mon, 10 Jan 2005 22:53:52 +0000 (22:53 +0000)]
r4658: (grr, commited wrong file last time).

We really should have a seperate structure for this (the ARCFOUR
sbox), but for now, get the declaration right.

Andrew Bartlett

13 years agor4657: This really should be made a structure, so we can't get it wrong, but
Andrew Bartlett [Mon, 10 Jan 2005 22:52:01 +0000 (22:52 +0000)]
r4657: This really should be made a structure, so we can't get it wrong, but
in the meantime, get the declaration right...

Andrew Bartlett

13 years agor4650: - make more use of bitmap and enum's
Stefan Metzmacher [Mon, 10 Jan 2005 17:28:36 +0000 (17:28 +0000)]
r4650: - make more use of bitmap and enum's
- move some structs out of misc.idl


13 years agor4649: make more use of bitmap and enum's
Stefan Metzmacher [Mon, 10 Jan 2005 17:27:10 +0000 (17:27 +0000)]
r4649: make more use of bitmap and enum's


13 years agor4648: fix netr_ServerPasswordSet() bugs
Stefan Metzmacher [Mon, 10 Jan 2005 16:12:41 +0000 (16:12 +0000)]
r4648: fix netr_ServerPasswordSet() bugs


13 years agor4647: - use talloc_zero() instead of ZERO_STRUCTP()
Stefan Metzmacher [Mon, 10 Jan 2005 15:56:37 +0000 (15:56 +0000)]
r4647: - use talloc_zero() instead of ZERO_STRUCTP()

- fix uninitialized memory bug found by valgrind


13 years agor4644: allow DSSETUP on ncacn_ip_tcp
Andrew Tridgell [Mon, 10 Jan 2005 12:56:34 +0000 (12:56 +0000)]
r4644: allow DSSETUP on ncacn_ip_tcp

13 years agor4643: RPC-ALTERCONTEXT now passes
Andrew Tridgell [Mon, 10 Jan 2005 12:54:44 +0000 (12:54 +0000)]
r4643: RPC-ALTERCONTEXT now passes

13 years agor4642: added support for alter_context in the server for adding new interfaces to...
Andrew Tridgell [Mon, 10 Jan 2005 12:39:42 +0000 (12:39 +0000)]
r4642: added support for alter_context in the server for adding new interfaces to an existing pipe

13 years agor4641: Push a few more details into the schannel ldb, and into the
Andrew Bartlett [Mon, 10 Jan 2005 12:30:13 +0000 (12:30 +0000)]
r4641: Push a few more details into the schannel ldb, and into the
credentials struct it maintains.

Clearly much of this will be replaced with some system to pass and
store the session_info, as that is the 'right way' to handle this.

Andrew Bartlett

13 years agor4640: first stage in the server side support for multiple context_ids on one pipe
Andrew Tridgell [Mon, 10 Jan 2005 12:15:26 +0000 (12:15 +0000)]
r4640: first stage in the server side support for multiple context_ids on one pipe

this stage does the following:

 - simplifies the dcerpc_handle handling, and all the callers of it

 - split out the context_id depenent state into a linked list of established contexts

 - fixed some talloc handling in several rpc servers that i noticed while doing the above

13 years agor4639: initialize all struct members!
Stefan Metzmacher [Mon, 10 Jan 2005 12:14:26 +0000 (12:14 +0000)]
r4639: initialize all struct members!

tridge: sorry for making you such a pain...
        could you check if that fixes your bugs


13 years agor4638: expose lsa and drsuapi on ncalrpc
Andrew Tridgell [Mon, 10 Jan 2005 12:12:44 +0000 (12:12 +0000)]
r4638: expose lsa and drsuapi on ncalrpc

13 years agor4637: log packets when the server code returns an DCERPC_FAULT
Stefan Metzmacher [Mon, 10 Jan 2005 11:14:13 +0000 (11:14 +0000)]
r4637: log packets when the server code returns an DCERPC_FAULT


13 years agor4636: Per tridge's wish (and probably correct behaviour), don't key off a
Andrew Bartlett [Mon, 10 Jan 2005 11:09:31 +0000 (11:09 +0000)]
r4636: Per tridge's wish (and probably correct behaviour), don't key off a
specific GENSEC mech type, but on the behaviour of the mech.

Andrew Bartlett

13 years agor4635: Fix NTLMSSP to return NT_STATUS_OK when it has constructed the auth
Andrew Bartlett [Mon, 10 Jan 2005 10:48:19 +0000 (10:48 +0000)]
r4635: Fix NTLMSSP to return NT_STATUS_OK when it has constructed the auth
token in the client (the final token in the negotiation).

Consequential fixes in the SPNEGO code, which now uses the out.length
as the indicator of 'I need to send something to the other side'.

Merge the NTLM and SPNEGO DCE-RPC authentication routines in the client.

Fix the RPC-MULTIBIND test consequent to this merge.

Andrew Bartlett

13 years agor4634: disable sign and seal in ldap_server for now.
Stefan Metzmacher [Mon, 10 Jan 2005 10:45:39 +0000 (10:45 +0000)]
r4634: disable sign and seal in ldap_server for now.


13 years agor4632: added spnego testing and no-auth testing in
Andrew Tridgell [Mon, 10 Jan 2005 08:58:53 +0000 (08:58 +0000)]
r4632: added spnego testing and no-auth testing in

13 years agor4631: don't consider an epmapper insert as a failure for the moment
Andrew Tridgell [Mon, 10 Jan 2005 08:57:54 +0000 (08:57 +0000)]
r4631: don't consider an epmapper insert as a failure for the moment

13 years agor4630: for ncacn_np if we don't have an explicit request for one of the
Andrew Tridgell [Mon, 10 Jan 2005 08:56:55 +0000 (08:56 +0000)]
r4630: for ncacn_np if we don't have an explicit request for one of the
advanced auth types we should do a plain bind. This fixes rpc
connections to ancient servers (like sun cascade)

13 years agor4629: we now have a global macro NT_STATUS_HAVE_NO_MEMORY()
Stefan Metzmacher [Mon, 10 Jan 2005 08:54:31 +0000 (08:54 +0000)]
r4629: we now have a global macro NT_STATUS_HAVE_NO_MEMORY()
so don't use a local one


13 years agor4628: this function should be static
Stefan Metzmacher [Mon, 10 Jan 2005 08:30:44 +0000 (08:30 +0000)]
r4628: this function should be static


13 years agor4627: - simplified the dcerpc auth code using a common function
Andrew Tridgell [Mon, 10 Jan 2005 07:14:12 +0000 (07:14 +0000)]
r4627: - simplified the dcerpc auth code using a common function

- added support for "spnego" in binding strings. This enables SPNEGO
  auth in the dcerpc client code, using as many allter_context calls as
  are needed

To try SPNEGO do this:

  smbtorture ncacn_ip_tcp:SERVER[spnego,seal] -Uadministrator%password RPC-SAMR

13 years agor4626: Jelmer, can you look at why this init is failing? It is preventing all tools...
Andrew Tridgell [Mon, 10 Jan 2005 07:12:13 +0000 (07:12 +0000)]
r4626: Jelmer, can you look at why this init is failing? It is preventing all tools from working

13 years agor4625: added a test that demonstrates that once a context_id is established,
Andrew Tridgell [Mon, 10 Jan 2005 03:48:19 +0000 (03:48 +0000)]
r4625: added a test that demonstrates that once a context_id is established,
it can't be changed (so you have to create a new context_id, not
change the interface bound to an existing one)

13 years agor4624: Several crash fixes for DCOM
Jelmer Vernooij [Sun, 9 Jan 2005 21:35:37 +0000 (21:35 +0000)]
r4624: Several crash fixes for DCOM
More work on the example class implementation

13 years agor4623: Convert values from UTF8 to UTF16 in gconf registry backend (caught
Jelmer Vernooij [Sun, 9 Jan 2005 19:06:49 +0000 (19:06 +0000)]
r4623: Convert values from UTF8 to UTF16 in gconf registry backend (caught
by Andrew Bartlett)

13 years agor4622: Clarify a comment a bit
Volker Lendecke [Sun, 9 Jan 2005 18:53:54 +0000 (18:53 +0000)]
r4622: Clarify a comment a bit

13 years agor4621: Add torture tests for epm_Insert and epm_Delete
Jelmer Vernooij [Sun, 9 Jan 2005 14:24:51 +0000 (14:24 +0000)]
r4621: Add torture tests for epm_Insert and epm_Delete

13 years agor4620: - add interface functions to the auth subsystem so that callers doesn't need to
Stefan Metzmacher [Sun, 9 Jan 2005 12:55:25 +0000 (12:55 +0000)]
r4620: - add interface functions to the auth subsystem so that callers doesn't need to
  use function pointers anymore
- make the module init much easier
- a lot of cleanups

don't try to read the diff in auth/ better read the new files

it passes and

abartlet: please fix spelling fixes


13 years agor4619: Remove extern declaration of dcerpc_pipes, which is now static
Jelmer Vernooij [Sun, 9 Jan 2005 11:50:45 +0000 (11:50 +0000)]
r4619: Remove extern declaration of dcerpc_pipes, which is now static

13 years agor4618: - tidied up the alter_context client code a bit
Andrew Tridgell [Sun, 9 Jan 2005 11:32:12 +0000 (11:32 +0000)]
r4618: - tidied up the alter_context client code a bit

- there is no alter_nak or alter_ack packet, its all done in an

- auto-allocated the contex_ids

- tried to fix up the dcom code to work again with
  alter_context. Jelmer, please take a look :)

13 years agor4617: basic alter_context requests now work in our client library. The test
Andrew Tridgell [Sun, 9 Jan 2005 09:38:16 +0000 (09:38 +0000)]
r4617: basic alter_context requests now work in our client library. The test
just does a simple LSA/DSSETUP combo, which is what w2k does in the
ACL editor rpc calls that triggered this work

13 years agor4616: the first phase in the addition of proper support for
Andrew Tridgell [Sun, 9 Jan 2005 08:34:05 +0000 (08:34 +0000)]
r4616: the first phase in the addition of proper support for
dcerpc_alter_context and multiple context_ids in the dcerpc client

This stage does the following:

 - split "struct dcerpc_pipe" into two parts, the main part being "struct dcerpc_connection", which
   contains all the parts not dependent on the context, and "struct dcerpc_pipe" which has
   the context dependent part. This is similar to the layering in libcli_*() for SMB

 - disable the current dcerpc_alter code. I've used a #warning until i
   get the 2nd phase finished. I don't know how portable #warning is, but
   it won't be long before I add full alter context support anyway, so it won't last long

 - cleanup the allocation of dcerpc_pipe structures. The previous code
   was quite awkward.

13 years agor4615: added acl checking on directory search in pvfs
Andrew Tridgell [Sun, 9 Jan 2005 08:27:35 +0000 (08:27 +0000)]
r4615: added acl checking on directory search in pvfs

13 years agor4614: Fix RPC-SAMLOGON, to use the workstation context (forgot to globally replace).
Andrew Bartlett [Sun, 9 Jan 2005 07:39:31 +0000 (07:39 +0000)]
r4614: Fix RPC-SAMLOGON, to use the workstation context (forgot to globally replace).

Andrew Bartlett

13 years agor4613: Fix stuff I broke in the last commit with the /x regexp flag.
Tim Potter [Sun, 9 Jan 2005 05:31:59 +0000 (05:31 +0000)]
r4613: Fix stuff I broke in the last commit with the /x regexp flag.

13 years agor4612: make the output for the w2k3 acl bug a bit clearer
Andrew Tridgell [Sun, 9 Jan 2005 04:31:32 +0000 (04:31 +0000)]
r4612: make the output for the w2k3 acl bug a bit clearer

13 years agor4611: - renamed add_socket() to smb_add_socket() as that is less confusing
Andrew Tridgell [Sun, 9 Jan 2005 04:18:14 +0000 (04:18 +0000)]
r4611: - renamed add_socket() to smb_add_socket() as that is less confusing

- removed the spurious call to set_blocking() in the smb server setup.

13 years agor4610: You can't join as a BDC and test against trusted domains. This test
Andrew Bartlett [Sun, 9 Jan 2005 03:04:45 +0000 (03:04 +0000)]
r4610: You can't join as a BDC and test against trusted domains.  This test
only needs WS privilages anyway.

Andrew Bartlett

13 years agor4609: add a usefull data_blob_dup_talloc() macro
Stefan Metzmacher [Sun, 9 Jan 2005 02:37:24 +0000 (02:37 +0000)]
r4609: add a usefull data_blob_dup_talloc() macro


13 years agor4608: - use better error codes
Stefan Metzmacher [Sun, 9 Jan 2005 02:33:16 +0000 (02:33 +0000)]
r4608: - use better error codes
- use new NT_STATUS_* macros for error checking return
- don't use talloc_p anymore


13 years agor4607: add some usefull macros to make the code more readable
Stefan Metzmacher [Sun, 9 Jan 2005 02:30:01 +0000 (02:30 +0000)]
r4607: add some usefull macros to make the code more readable


13 years agor4606: Start adding some more comments and some indentation for the eparser
Tim Potter [Sun, 9 Jan 2005 02:03:59 +0000 (02:03 +0000)]
r4606: Start adding some more comments and some indentation for the eparser
regexps.  Hopefully this will make things a bit easier to understand
later on.

13 years agor4605: Fix a confusing comment :-)
Volker Lendecke [Sun, 9 Jan 2005 01:14:26 +0000 (01:14 +0000)]
r4605: Fix a confusing comment :-)

13 years agor4603: Test creating local and global secrets over LSA.
Andrew Bartlett [Sat, 8 Jan 2005 02:00:28 +0000 (02:00 +0000)]
r4603: Test creating local and global secrets over LSA.

Andrew Bartlett

13 years agor4600: Remove Data::Dumper import leftover from debugging.
Tim Potter [Fri, 7 Jan 2005 23:23:28 +0000 (23:23 +0000)]
r4600: Remove Data::Dumper import leftover from debugging.

Return more ethereal types and bases for hf fields.  Currently we
assume that enums always fit into a uint16 which will probably  have to
change soon.

13 years agor4599: Remove some duplicated code in
Tim Potter [Fri, 7 Jan 2005 22:27:18 +0000 (22:27 +0000)]
r4599: Remove some duplicated code in

Start working on adding support for bitmaps and enums.

In progress tweaks for arrays of structures.

13 years agor4597: Recently I've come across a case where I suspect the GetAnyDCName request to
Volker Lendecke [Fri, 7 Jan 2005 18:13:53 +0000 (18:13 +0000)]
r4597: Recently I've come across a case where I suspect the GetAnyDCName request to
kill the domain controller I'm asking. In samba4 torturing the DC is just so
easy, commit the test to randomized ask for DCs for all trusted domains.


13 years agor4596: added a dynamic inheritance ACLs test. As far as I can tell w2k3 does not do
Andrew Tridgell [Fri, 7 Jan 2005 06:59:53 +0000 (06:59 +0000)]
r4596: added a dynamic inheritance ACLs test. As far as I can tell w2k3 does not do
dynamic inheritance

13 years agor4595: on create check access against parent not child ...
Andrew Tridgell [Fri, 7 Jan 2005 05:24:38 +0000 (05:24 +0000)]
r4595: on create check access against parent not child ...

13 years agor4594: Add more testes to the standard 'passes against win2k3' script.
Andrew Bartlett [Fri, 7 Jan 2005 05:02:48 +0000 (05:02 +0000)]
r4594: Add more testes to the standard 'passes against win2k3' script.

Andrew Bartlett

13 years agor4593: don't use the _p function in the testsuite, as when built standalone it doesn't
Andrew Tridgell [Fri, 7 Jan 2005 04:47:58 +0000 (04:47 +0000)]
r4593: don't use the _p function in the testsuite, as when built standalone it doesn't

13 years agor4592: fixed typo from talloc testsuite fixup for the new syntax
Andrew Tridgell [Fri, 7 Jan 2005 04:45:11 +0000 (04:45 +0000)]
r4592: fixed typo from talloc testsuite fixup for the new syntax

13 years agor4591: - converted the other _p talloc functions to not need _p
Andrew Tridgell [Fri, 7 Jan 2005 04:39:16 +0000 (04:39 +0000)]
r4591: - converted the other _p talloc functions to not need _p

- added #if TALLOC_DEPRECATED around the _p functions

- fixes the code that broke from the above

while doing this I fixed quite a number of places that were
incorrectly using the non type-safe talloc functions to use the type
safe ones. Some were even doing multiplies for array allocation, which
is potentially unsafe.

13 years agor4590: Make RPC-SAMSYNC pass againt Win2k3.
Andrew Bartlett [Fri, 7 Jan 2005 04:09:45 +0000 (04:09 +0000)]
r4590: Make RPC-SAMSYNC pass againt Win2k3.

Andrew Bartlett

13 years agor4589: forgot to commit the new NT_STATUS_RPC_PROTSEQ_NOT_SUPPORTED error code
Andrew Tridgell [Fri, 7 Jan 2005 03:43:59 +0000 (03:43 +0000)]
r4589: forgot to commit the new NT_STATUS_RPC_PROTSEQ_NOT_SUPPORTED error code

13 years agor4588: fixed the double bind in ncalrpc with dcerpc_secondary_connection()
Andrew Tridgell [Fri, 7 Jan 2005 03:38:36 +0000 (03:38 +0000)]
r4588: fixed the double bind in ncalrpc with dcerpc_secondary_connection()

13 years agor4587: fixed dcerpc_secondary_connection() for ncacn_ip_tcp
Andrew Tridgell [Fri, 7 Jan 2005 03:33:39 +0000 (03:33 +0000)]
r4587: fixed dcerpc_secondary_connection() for ncacn_ip_tcp

this fixes RPC-SAMLOGON and some other tests on ncacn_ip_tcp

13 years agor4586: RPC-LSA now passes against w2k3
Andrew Tridgell [Fri, 7 Jan 2005 03:12:30 +0000 (03:12 +0000)]
r4586: RPC-LSA now passes against w2k3

13 years agor4585: don't consider LookupSids3 failing with NT_STATUS_ACCESS_DENIED (as w2k3 does) or
Andrew Tridgell [Fri, 7 Jan 2005 03:11:18 +0000 (03:11 +0000)]
r4585: don't consider LookupSids3 failing with NT_STATUS_ACCESS_DENIED (as w2k3 does) or
NT_STATUS_RPC_PROTSEQ_NOT_SUPPORTED (as longhorn does) to be an error.

fixed the CreateTrustedDomain test to cope with the "torturedomain" being left over
from a previous aborted run

13 years agor4584: fix pvfs backend to pass the new enhanced RAW-ACLS test. Easy once I really the
Andrew Tridgell [Fri, 7 Jan 2005 02:14:34 +0000 (02:14 +0000)]
r4584: fix pvfs backend to pass the new enhanced RAW-ACLS test. Easy once I really the
strange behaviour I saw was a w2k3 bug :-)

13 years agor4583: print which bit failed in the owner bits check
Andrew Tridgell [Fri, 7 Jan 2005 02:13:07 +0000 (02:13 +0000)]
r4583: print which bit failed in the owner bits check

13 years agor4582: finally worked out what is going on with the inherited ACLs test and win2003...
Andrew Tridgell [Fri, 7 Jan 2005 01:56:19 +0000 (01:56 +0000)]
r4582: finally worked out what is going on with the inherited ACLs test and win2003. It is a
win2003 bug!

This new test code works against w2k, and against longhorn, but fails
against w2k3. When tested against w2k3 it allows a open with an access
mask that should be denied by the given ACL, after setting up the ACL
using inheritance. Note that only the very specific
SEC_RIGHTS_FILE_ALL mask incorrectly succeeds, so they must have a
special case for that mask. Maybe its an optimisation gone wrong?

I don't know if there are any serious security implications to this,
but it is pretty clearly wrong, and has been fixed in longhorn.

13 years agor4578: Minor cleanup of ndr_pull_array() and ndr_pull_array_foo() regexps.
Tim Potter [Thu, 6 Jan 2005 23:08:30 +0000 (23:08 +0000)]
r4578: Minor cleanup of ndr_pull_array() and ndr_pull_array_foo() regexps.

13 years agor4572: remove configure and include/config.h*
Stefan Metzmacher [Thu, 6 Jan 2005 17:21:57 +0000 (17:21 +0000)]
r4572: remove configure and include/config.h*
before running autoheader && autoconf

this fixes bug where configure didn't get correctly updated
(I assume autoconf uses some caching...)


13 years agor4568: make use of SidType and move it to lsa.idl
Stefan Metzmacher [Thu, 6 Jan 2005 13:34:18 +0000 (13:34 +0000)]
r4568: make use of SidType and move it to lsa.idl


13 years agor4567: Fix the build for metze.
Andrew Bartlett [Thu, 6 Jan 2005 12:22:20 +0000 (12:22 +0000)]
r4567: Fix the build for metze.

Andrew Bartlett

13 years agor4566: Fix Samba4 to pass it's own RPC-SAMLOGON torture test.
Andrew Bartlett [Thu, 6 Jan 2005 12:13:31 +0000 (12:13 +0000)]
r4566: Fix Samba4 to pass it's own RPC-SAMLOGON torture test.

Include RPC-SAMLOGON in the list of tests expected to pass

Remove silly extra loops from the RPC-SAMLOGON test, which mostly just
slowed htings down.

Andrew Bartlett

13 years agor4565: Make the order of the initialisation more sensible.
Andrew Bartlett [Thu, 6 Jan 2005 12:10:54 +0000 (12:10 +0000)]
r4565: Make the order of the initialisation more sensible.

Andrew Bartlett

13 years agor4564: added a comment on lsa_EnumAccounts IDL
Andrew Tridgell [Thu, 6 Jan 2005 12:02:39 +0000 (12:02 +0000)]
r4564: added a comment on lsa_EnumAccounts IDL

13 years agor4563: fixed lsa_EnumAccounts() server side to return all accounts that have privileg...
Andrew Tridgell [Thu, 6 Jan 2005 12:01:11 +0000 (12:01 +0000)]
r4563: fixed lsa_EnumAccounts() server side to return all accounts that have privileges, as
volker discovered

13 years agor4560: - fixed crash bugs in the RPC-SCHANNEL and RPC-NETLOGON tests
Andrew Tridgell [Thu, 6 Jan 2005 09:26:14 +0000 (09:26 +0000)]
r4560: - fixed crash bugs in the RPC-SCHANNEL and RPC-NETLOGON tests

- disabled the async netlogon tests for now until we better understand async rpc

- added a script that runs rpc tests that a w2k3 DC
  should pass. This is useful for regression testing when PIDL changes
  are made.

13 years agor4559: prevent the RPC-EPMAPPER test from looping forever against w2k3
Andrew Tridgell [Thu, 6 Jan 2005 09:24:41 +0000 (09:24 +0000)]
r4559: prevent the RPC-EPMAPPER test from looping forever against w2k3

13 years agor4558: more use of bitmaps and enums
Stefan Metzmacher [Thu, 6 Jan 2005 07:34:14 +0000 (07:34 +0000)]
r4558: more use of bitmaps and enums


13 years agor4557: support for [flags()] on typedef enum|bitmap
Stefan Metzmacher [Thu, 6 Jan 2005 07:29:55 +0000 (07:29 +0000)]
r4557: support for [flags()] on typedef enum|bitmap

NDR_PAHEX is handled by ndr_print_enum() now


13 years agor4556: neater (and faster) way of doing alignments and scalars
Andrew Tridgell [Thu, 6 Jan 2005 07:22:47 +0000 (07:22 +0000)]
r4556: neater (and faster) way of doing alignments and scalars

13 years agor4555: fix some dependencies
Stefan Metzmacher [Thu, 6 Jan 2005 07:02:46 +0000 (07:02 +0000)]
r4555: fix some dependencies


13 years agor4554: create svcctl_ServerType bitmap
Stefan Metzmacher [Thu, 6 Jan 2005 07:00:54 +0000 (07:00 +0000)]
r4554: create svcctl_ServerType bitmap


13 years agor4553: fix typo
Stefan Metzmacher [Thu, 6 Jan 2005 06:59:14 +0000 (06:59 +0000)]
r4553: fix typo


13 years agor4552: use samr_AcctFlags in netlogon.idl
Stefan Metzmacher [Thu, 6 Jan 2005 06:34:07 +0000 (06:34 +0000)]
r4552: use samr_AcctFlags in netlogon.idl


13 years agor4551: add support for a pidl extensions
Stefan Metzmacher [Thu, 6 Jan 2005 06:32:07 +0000 (06:32 +0000)]
r4551: add support for a pidl extensions

'declare bitmap foo1;'
'declare enum foo2;'

and also allow

typedef [public] bitmap ...
typedef [public] enum ...

you need to a forward declaration of bitmaps and enums

when you want to use them in another idl file,
and you need to make the real declaration to be public

see the next commit to samr.idl and netlogon.idl


13 years agor4550: talloc() is now typesafe. It is exactly equivalent to the old talloc_p() macro...
Andrew Tridgell [Thu, 6 Jan 2005 03:20:56 +0000 (03:20 +0000)]
r4550: talloc() is now typesafe. It is exactly equivalent to the old talloc_p() macro. Use
talloc_size() if you want the old behaviour.

I have kept talloc_p() as an alias for now. Once we change all calls
to be plain talloc() then we can remove it.

13 years agor4549: got rid of a lot more uses of plain talloc(), instead using
Andrew Tridgell [Thu, 6 Jan 2005 03:06:58 +0000 (03:06 +0000)]
r4549: got rid of a lot more uses of plain talloc(), instead using
talloc_size() or talloc_array_p() where appropriate.

also fixed a memory leak in pvfs_copy_file() (failed to free a memory

13 years agor4548: Convert to talloc_p() and talloc_array_p() where appropriate.
Tim Potter [Thu, 6 Jan 2005 02:36:59 +0000 (02:36 +0000)]
r4548: Convert to talloc_p() and talloc_array_p() where appropriate.

(swig stuff seems broken atm though)

13 years agor4547: - added talloc_new(ctx) macro that is a neater form of the common talloc(ctx...
Andrew Tridgell [Thu, 6 Jan 2005 02:32:43 +0000 (02:32 +0000)]
r4547: - added talloc_new(ctx) macro that is a neater form of the common talloc(ctx, 0) call.

- cleaned up some talloc usage in various files

I'd like to get to the point that we have no calls to talloc(), at
which point we will rename talloc_p() to talloc(), to encourage
everyone to use the typesafe functions.

13 years agor4546: Use talloc_p() instad of talloc()
Tim Potter [Thu, 6 Jan 2005 02:10:33 +0000 (02:10 +0000)]
r4546: Use talloc_p() instad of talloc()

13 years agor4542: use bitmap for samr_FieldsPresent and samr_AcctFlags
Stefan Metzmacher [Wed, 5 Jan 2005 16:54:51 +0000 (16:54 +0000)]
r4542: use bitmap for samr_FieldsPresent and samr_AcctFlags


13 years agor4541: make use of new enum and bitmap features
Stefan Metzmacher [Wed, 5 Jan 2005 16:48:58 +0000 (16:48 +0000)]
r4541: make use of new enum and bitmap features


13 years agor4540: sync enum and bitmap code
Stefan Metzmacher [Wed, 5 Jan 2005 16:31:05 +0000 (16:31 +0000)]
r4540: sync enum and bitmap code


13 years agor4536: make use of the new enum and bitmap feature of pidl
Stefan Metzmacher [Wed, 5 Jan 2005 15:37:43 +0000 (15:37 +0000)]
r4536: make use of the new enum and bitmap feature of pidl


13 years agor4535: add full support for
Stefan Metzmacher [Wed, 5 Jan 2005 15:36:26 +0000 (15:36 +0000)]
r4535: add full support for

typedef bitmap {
    FLAG1 = 0x01
} fooflags;

typedef struct {
    fooflags flags;