15 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
(This used to be commit 9c0a3423f03111c110d21c0d3910e16aa1a8bf87)

15 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
(This used to be commit e59c5adf39c2c840a40a62485195167f80b9ef53)

15 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)
(This used to be commit 5f10a8f8d04d627927d9870c87d6e7d8b98d563c)

15 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
(This used to be commit 1f8f4dd179d5aa0472c676d115dc2fc1749ce32d)

15 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)
(This used to be commit da3c7712d234291f9c5a3c48daae02bdf0878bf0)

15 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
(This used to be commit e76d486b04ee114087a69a659fbc47e585e71510)

15 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
(This used to be commit b1ff60667038aa1e2d7c6ad2015ba33ac5a90dc6)

15 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

(This used to be commit 3c0d16b8236451f2cfd38fc3db8ae2906106d847)

15 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
(This used to be commit 95e849bf94160ae4807a54b28e351539c1119215)

15 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 :)
(This used to be commit dd1c54add8884376601f2f8a56c01bfb8add030c)

15 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
(This used to be commit 0129ec947aa1fa5a7104dc3a666af3cb9bd104f1)

15 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.
(This used to be commit 4004c69937be7e5dae56f9567ca607f982d395d3)

15 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
(This used to be commit 0e61a422bd9a1596a284c176f033e958bbeaa8ce)

15 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
(This used to be commit ddb54d4ea1610b38e011e2f217ded7b6278d5290)

15 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.
(This used to be commit 20f9143221021ab050802d6aed359677bee978ed)

15 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
(This used to be commit 24ec8c4274241576683f1f6c86c33a2dfa43848c)

15 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.
(This used to be commit 76d905d12e6f65a3670e4167ec79d8876b772ca6)

15 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
(This used to be commit a093c4f98e833198ee59064b2cb9b9b45a188a59)

15 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

(This used to be commit 11e006df1689d4b4b202bca640106fd789495284)

15 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

(This used to be commit 372a8eeeefc2ebff50211985372888b5b6d4eb65)

15 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

(This used to be commit 62c45635ff8a158acefd4ae2aae2ffc352a97113)

15 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.
(This used to be commit c325859eb6a0972638bbbb83ebb2dfda489ac8ee)

15 years agor4605: Fix a confusing comment :-)
Volker Lendecke [Sun, 9 Jan 2005 01:14:26 +0000 (01:14 +0000)]
r4605: Fix a confusing comment :-)
(This used to be commit fbd2a90bcdb7426c9a15bd8dc09da9008a0bc1bf)

15 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
(This used to be commit 96806136ead3d1949516b2cfe7350a4e10681c28)

15 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.
(This used to be commit 25f6e11f3156e21c1dc03afa879e9cda2f5dd341)

15 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.
(This used to be commit d39cb7ecb4c193cbba628ee6d6f9b5c5bbf89d33)

15 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.

(This used to be commit edb918762e1e46909520f13e28dcf8cedb2919b1)

15 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
(This used to be commit ebe6b002843196bc6d6fadfa646aa3bc8eb27af8)

15 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 ...
(This used to be commit 5a1a17d3fc771b1e1c61297067f38c87901891d3)

15 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
(This used to be commit 07295b3b07984ec3d1de9ed27835dbda7b4b7d0f)

15 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
(This used to be commit 2fe0e2528f14627832942f6404a4b1be4b556c97)

15 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
(This used to be commit 1177200dd9392c088f5b009f55390ad31c367e5f)

15 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.
(This used to be commit 6e7754abd0c225527fb38363996a6e241b87b37e)

15 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
(This used to be commit 7bb00a80ac55252b8c05b33fd576b8606470e9be)

15 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
(This used to be commit f4337c988c15dc84e3cfd77b628e92a0996717ea)

15 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()
(This used to be commit b65a95c11778fd778ad3c013664aea7d038e16ae)

15 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
(This used to be commit 244370d62424ab3c0f9d6689b0e674d057b3fc09)

15 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
(This used to be commit e252f80f2bc5de4a3de84acf232f5334b5d448f6)

15 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
(This used to be commit 429d79815c260781fae6eed28160d7507e780f34)

15 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 :-)
(This used to be commit e729061bcde25d0565a72222e4720ca8074ef23f)

15 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
(This used to be commit f893ad9c45d6d06fa1b6f1f949a7834e7bf99ba7)

15 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.
(This used to be commit 4f9fd767dbb5e47f3786f5acda17267d57e839e0)

15 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.
(This used to be commit 0f8f0de00fa687920c898a56238cd3e21d83cfb1)

15 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...)

(This used to be commit bfedcbc598706c47981d9ba0e19cae9ea3fab46b)

15 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

(This used to be commit c2523adc0a0807979fb21b8ba77d556bac82e435)

15 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
(This used to be commit d05a9bf1a12c9f0b18c9e65b6aa03fa4283a1b68)

15 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
(This used to be commit 518ca9fb695b0f9d480122a74a2159f7f17a3219)

15 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
(This used to be commit 5598cda08b46e61695b753e049288a0b498502c4)

15 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
(This used to be commit 08d7b77efc05571146c54322e684753ccd4cd2d6)

15 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
(This used to be commit 09edc31f3b92105dab585614553ba5e94ccdf588)

15 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.
(This used to be commit f7d4d3db489ad79457de70a85ad990159f6e74f8)

15 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
(This used to be commit fa3cecddd8065885dd461000de683eb0143eb481)

15 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

(This used to be commit 2a859fbc90a6b043bac318196e42c2949958d57f)

15 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

(This used to be commit c3b2d2cca37193fead0df1a8808c3ffcd5180a89)

15 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
(This used to be commit ec70d9a740ab0b6f83b6b10c1b5313e585164383)

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

(This used to be commit a4d94034239980d8a7ab38dfe2b19936b15d23df)

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

(This used to be commit ed1c98cb9d1adbc2616cb26376927c6dee1b579b)

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

(This used to be commit 6f75a06b8691dd0d684a51b7851696613c6a6b11)

15 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

(This used to be commit 3e224575e58436fef71897e62f57bfcf120c0da8)

15 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

(This used to be commit a8d61aa47388b82595ee02b9cfd35f15afb93c2a)

15 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.
(This used to be commit 2011bbeb841fd6bfccf3d44a49f79203f7f55baa)

15 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
(This used to be commit 89b74b53546e1570b11b3702f40bee58aed8c503)

15 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)
(This used to be commit 9eeb976773a8d2ed26a690c73d67f5db735e8d3a)

15 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.
(This used to be commit e6c81d7c9f8a6938947d3c1c8a971a0d6d50b67a)

15 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()
(This used to be commit 2ec3a137d7fd8a912bc70e865f7a7798190b8869)

15 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

(This used to be commit 109c91650ac8b4ad28151bdb6debf73ad6a94bfb)

15 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

(This used to be commit fd96a07c5a1f4969bfd04ffd3b6990a2dad41cf4)

15 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

(This used to be commit 2f3aea72ee7d9d90f7b910d11bdd1e96f9f0ebe1)

15 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

(This used to be commit 7702d0f9775878c4d7535d9135f41d156146f8d1)

15 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;

(This used to be commit 052a7d4f9a3a178149c65a616fdfd87152dff7eb)

15 years agor4534: update the yapp generated code
Stefan Metzmacher [Wed, 5 Jan 2005 15:28:10 +0000 (15:28 +0000)]
r4534: update the yapp generated code

(This used to be commit afef9b10481da3857d3cba598a71c01b827f29de)

15 years agor4533: parsing support for:
Stefan Metzmacher [Wed, 5 Jan 2005 15:26:48 +0000 (15:26 +0000)]
r4533: parsing support for:

typedef [bitmap16bit] bitmap {
FLAG1 = 0x0001,
FLAG2 = 0x8000
} fooflags;

(This used to be commit 192f2495468d5d0c5889d94ca791aa8f371514e8)

15 years agor4532: - rename bitmap -> bits
Stefan Metzmacher [Wed, 5 Jan 2005 15:24:20 +0000 (15:24 +0000)]
r4532: - rename bitmap -> bits

the next commit is support for typedef bitmap {...}; in pidl

(This used to be commit bd06a85cb747aea29a400050cb9d25a3240ef1cc)

15 years agor4531: Include the OID locally, as it seems to be hard to get the includes
Andrew Bartlett [Wed, 5 Jan 2005 10:21:08 +0000 (10:21 +0000)]
r4531: Include the OID locally, as it seems to be hard to get the includes

Andrew Bartlett
(This used to be commit a742ea1e1221058ae6a99e317fbf18c80bc49aed)

15 years agor4530: Start adding a bit of Doxygen compatible documentation comments to GENSEC.
Andrew Bartlett [Wed, 5 Jan 2005 03:21:45 +0000 (03:21 +0000)]
r4530: Start adding a bit of Doxygen compatible documentation comments to GENSEC.

Andrew Bartlett
(This used to be commit c7acea9d5a097b51693f41de93274b857f7be0e3)

15 years agor4526: - much simpler (and more accurate!) ndr_size_*() code generation. It
Andrew Tridgell [Wed, 5 Jan 2005 02:01:19 +0000 (02:01 +0000)]
r4526: - much simpler (and more accurate!) ndr_size_*() code generation. It
  is less efficient, but I really doubt that matters.

- use enum in epmapper.idl for protocol type

- added support for "enum8bit" flag, used in epmapper.idl
(This used to be commit 1a24a50384b7f588844cd012f1218ca242ca4507)

15 years agor4524: converted a few bits of samr.idl to use enum properly
Andrew Tridgell [Wed, 5 Jan 2005 00:41:49 +0000 (00:41 +0000)]
r4524: converted a few bits of samr.idl to use enum properly
(This used to be commit 82313fb79eb361d7cee06ada21c537a7cc57970e)

15 years agor4523: the PROPERTIES change for typedef was not quite as simple as I thought. This...
Andrew Tridgell [Wed, 5 Jan 2005 00:31:28 +0000 (00:31 +0000)]
r4523: the PROPERTIES change for typedef was not quite as simple as I thought. This puts in a workaround
that fixes things for now
(This used to be commit 0939b83a0f07563edc6448fb6a87a573dbaa9f6c)

15 years agor4522: PROPERTIES are now handled at the typedef level
Andrew Tridgell [Wed, 5 Jan 2005 00:14:29 +0000 (00:14 +0000)]
r4522: PROPERTIES are now handled at the typedef level
(This used to be commit 73d5a033e8e9de536239c53e8a063e9be0eff701)

15 years agor4521: fixed up the handling of PROPERTIES elements after the change to support enum
Andrew Tridgell [Wed, 5 Jan 2005 00:09:29 +0000 (00:09 +0000)]
r4521: fixed up the handling of PROPERTIES elements after the change to support enum
(This used to be commit dee8eff2590be58c59b0db089fcca4af3e011c42)

15 years agor4520: added a enum test function to the echo pipe
Andrew Tridgell [Tue, 4 Jan 2005 23:27:12 +0000 (23:27 +0000)]
r4520: added a enum test function to the echo pipe
(This used to be commit f9e0aa1ab1faac039893db241819907c9c4bb510)

15 years agor4519: added the enum print function in ndr_basic.c
Andrew Tridgell [Tue, 4 Jan 2005 23:26:12 +0000 (23:26 +0000)]
r4519: added the enum print function in ndr_basic.c
(This used to be commit 29955004aa256d5ac27b941f48384ab97ff5e4b8)

15 years agor4518: added proper support for "typedef enum" in pidl. We can now use enums as types...
Andrew Tridgell [Tue, 4 Jan 2005 23:25:25 +0000 (23:25 +0000)]
r4518: added proper support for "typedef enum" in pidl. We can now use enums as types in switch
statements and variable types, and the value will be printed with its string name and value
(This used to be commit 1852033f2ec7584657d586e44d25a280959e4d81)

15 years agor4517: Revert previous commit about giving arrays of scalars their own subtree.
Tim Potter [Tue, 4 Jan 2005 23:15:33 +0000 (23:15 +0000)]
r4517: Revert previous commit about giving arrays of scalars their own subtree.
Generate code to display using proto_tree_add_bytes() instead.
(This used to be commit 6e480fab3a0f70ae17dd7c0b39da924361a354d5)

15 years agor4513: add experimental modification attribute checking
Simo Sorce [Tue, 4 Jan 2005 15:18:50 +0000 (15:18 +0000)]
r4513: add experimental modification attribute checking
still not complete but works with add and replace, not tested with delete
lot of duplicated code to remove
(This used to be commit ea051f6cd39d0e729bb425eb08034a0eee0996dc)

15 years agor4512: Give arrays of scalar types their own subtree.
Tim Potter [Tue, 4 Jan 2005 06:35:53 +0000 (06:35 +0000)]
r4512: Give arrays of scalar types their own subtree.
(This used to be commit b9432130959aeaab6d1720ac2c6f99e3d8f9e037)

15 years agor4511: Remove a crapload of dead code.
Tim Potter [Tue, 4 Jan 2005 05:21:24 +0000 (05:21 +0000)]
r4511: Remove a crapload of dead code.
(This used to be commit 0f50ed8260ce37c21d8ad62b5a257f22ab4a5534)

15 years agor4510: Some more tests for RPC-NETLOGON, checking the idea that we could
Andrew Bartlett [Tue, 4 Jan 2005 03:06:23 +0000 (03:06 +0000)]
r4510: Some more tests for RPC-NETLOGON, checking the idea that we could
combine the NTLM and LMv2 responses, for maximum compatability from a
client perspective, allowing access to servers that require NTLMv2, as
well as those that don't support it.

Currently, this is unfortunetly not possible against Win2k3 (and Samba
is being coded to match that behaviour at this point).

Andrew Bartlett
(This used to be commit 93b46ebe0f3cccd26b5ddd213553667e612c3701)

15 years agor4509: Add missing cr.
Tim Potter [Mon, 3 Jan 2005 23:28:45 +0000 (23:28 +0000)]
r4509: Add missing cr.
(This used to be commit 60f266bf6a30eee485c4f498569201ac50f85120)

15 years agor4508: - simplify the code and allocate only in one place
Stefan Metzmacher [Mon, 3 Jan 2005 14:45:17 +0000 (14:45 +0000)]
r4508: - simplify the code and allocate only in one place

- the ZERO_STRUCT(r->out) is useless and wrong if we would have a [ref,out] parameter
  also note the r->out is already initialized by the pidl generated code

(This used to be commit 09727d3d4acdc90165f37ef726ba6f6ef6f77b98)

15 years agor4507: this default is unnneded because the switch level is in the r->in
Stefan Metzmacher [Mon, 3 Jan 2005 14:42:59 +0000 (14:42 +0000)]
r4507: this default is unnneded because the switch level is in the r->in

(This used to be commit d60b2f094e89462b435063142a290034675a1132)

15 years agor4506: fix compiler warnings
Stefan Metzmacher [Mon, 3 Jan 2005 14:38:05 +0000 (14:38 +0000)]
r4506: fix compiler warnings

(This used to be commit 1c6accd7cbf9ccb7f642b85200671b9d4fe23f47)

15 years agor4505: Add a first very basic schema module
Simo Sorce [Mon, 3 Jan 2005 14:05:47 +0000 (14:05 +0000)]
r4505: Add a first very basic schema module
To use it you should provide a schema.ldb file where the schema is stored
and load the module in the ldb you want to have schema check activated

more info soon.

currently schema checks are performed only on new object creation not on modifications

(This used to be commit b8bb62f14419efd434a344606fb3f753384761a0)

15 years agor4504: Setting
Andrew Bartlett [Mon, 3 Jan 2005 09:00:37 +0000 (09:00 +0000)]
r4504: Setting

.enabled = True

on modules we know are good (and we want on be default) seems neater.

Andrew Bartlett
(This used to be commit 18850c66b7c8ac5e8caf08151dbb9b72cf93230f)

15 years agor4503: add an error reporting function (fixes)
Simo Sorce [Mon, 3 Jan 2005 08:59:00 +0000 (08:59 +0000)]
r4503: add an error reporting function (fixes)
(This used to be commit d11732f4f7f9bc535222aa7a6dd2f15cf5002a4d)

15 years agor4502: add an error reporting function
Simo Sorce [Mon, 3 Jan 2005 08:52:39 +0000 (08:52 +0000)]
r4502: add an error reporting function
(This used to be commit 985a58a16d04f3b92b4bbff86f6c466385f01321)

15 years agor4501: when copying files it is common for clients to copy the ACL. When the
Andrew Tridgell [Mon, 3 Jan 2005 07:57:05 +0000 (07:57 +0000)]
r4501: when copying files it is common for clients to copy the ACL. When the
ACL is the default ACL this menas the copied file would have an xattr
but the original would not. Avoid this by checking if the ACL being
set is the original ACL, and avoid the copy.
(This used to be commit 1df985a49b200a41eed39023aa668afb233f2e53)

15 years agor4500: Allow GENSEC modules to be disabled by setting a flag on their module
Andrew Bartlett [Mon, 3 Jan 2005 07:08:14 +0000 (07:08 +0000)]
r4500: Allow GENSEC modules to be disabled by setting a flag on their module
definition, not by hardcoded reference in loadparm.c

Andrew Bartlett
(This used to be commit 43558eaf7604d2bb0187e0d1ba0686935a965ad7)

15 years agor4499: Almost make our Samba4 server pass the RPC-SAMLOGON torture test.
Andrew Bartlett [Mon, 3 Jan 2005 06:23:02 +0000 (06:23 +0000)]
r4499: Almost make our Samba4 server pass the RPC-SAMLOGON torture test.

I just need to fix a couple of NTLMv2 issues before we can fully pass,
and put this in, as a 'should pass' test.

Andrew Bartlett
(This used to be commit 4b52409e385366d87724bb79f4fad4803e8ecfec)

15 years agor4498: arrgh, really fix the typo this time
Andrew Tridgell [Mon, 3 Jan 2005 02:53:06 +0000 (02:53 +0000)]
r4498: arrgh, really fix the typo this time
(This used to be commit fc338f6ce28bb14e31cdf7a5b36af12ade39093a)