1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-22 22:04:08 +03:00

3360 Commits

Author SHA1 Message Date
Andrew Tridgell
e74b3ed6f1 r4618: - tidied up the alter_context client code a bit
- there is no alter_nak or alter_ack packet, its all done in an
  alter_response

- 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)
2007-10-10 13:08:34 -05:00
Andrew Tridgell
ab9ca55926 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)
2007-10-10 13:08:34 -05:00
Andrew Tridgell
6836f5d0b1 r4616: the first phase in the addition of proper support for
dcerpc_alter_context and multiple context_ids in the dcerpc client
library.

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)
2007-10-10 13:08:34 -05:00
Andrew Tridgell
3feb4423f3 r4615: added acl checking on directory search in pvfs
(This used to be commit 0e61a422bd9a1596a284c176f033e958bbeaa8ce)
2007-10-10 13:08:33 -05:00
Andrew Bartlett
c32f3129bc r4614: Fix RPC-SAMLOGON, to use the workstation context (forgot to globally replace).
Andrew Bartlett
(This used to be commit ddb54d4ea1610b38e011e2f217ded7b6278d5290)
2007-10-10 13:08:33 -05:00
Tim Potter
95b84ceeaa r4613: Fix stuff I broke in the last commit with the /x regexp flag.
(This used to be commit 20f9143221021ab050802d6aed359677bee978ed)
2007-10-10 13:08:33 -05:00
Andrew Tridgell
4e73b4b222 r4612: make the output for the w2k3 acl bug a bit clearer
(This used to be commit 24ec8c4274241576683f1f6c86c33a2dfa43848c)
2007-10-10 13:08:33 -05:00
Andrew Tridgell
770c65affd 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)
2007-10-10 13:08:33 -05:00
Andrew Bartlett
cb032eebd6 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)
2007-10-10 13:08:33 -05:00
Stefan Metzmacher
1bdbd21eb2 r4609: add a usefull data_blob_dup_talloc() macro
metze
(This used to be commit 11e006df1689d4b4b202bca640106fd789495284)
2007-10-10 13:08:33 -05:00
Stefan Metzmacher
c13ada4e35 r4608: - use better error codes
- use new NT_STATUS_* macros for error checking return
- don't use talloc_p anymore

metze
(This used to be commit 372a8eeeefc2ebff50211985372888b5b6d4eb65)
2007-10-10 13:08:33 -05:00
Stefan Metzmacher
e0b0d934ec r4607: add some usefull macros to make the code more readable
metze
(This used to be commit 62c45635ff8a158acefd4ae2aae2ffc352a97113)
2007-10-10 13:08:32 -05:00
Tim Potter
fd254e01b6 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)
2007-10-10 13:08:32 -05:00
Volker Lendecke
3f89308b32 r4605: Fix a confusing comment :-)
(This used to be commit fbd2a90bcdb7426c9a15bd8dc09da9008a0bc1bf)
2007-10-10 13:08:32 -05:00
Andrew Bartlett
c375b30ead r4603: Test creating local and global secrets over LSA.
Andrew Bartlett
(This used to be commit 96806136ead3d1949516b2cfe7350a4e10681c28)
2007-10-10 13:08:32 -05:00
Tim Potter
60a849af6d 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)
2007-10-10 13:08:32 -05:00
Tim Potter
0ee9f4d6e1 r4599: Remove some duplicated code in pidl.pl.
Start working on adding support for bitmaps and enums.

In progress tweaks for arrays of structures.
(This used to be commit d39cb7ecb4c193cbba628ee6d6f9b5c5bbf89d33)
2007-10-10 13:08:32 -05:00
Volker Lendecke
e357b5b64a 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.

Volker
(This used to be commit edb918762e1e46909520f13e28dcf8cedb2919b1)
2007-10-10 13:08:31 -05:00
Andrew Tridgell
297a63b6c9 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)
2007-10-10 13:08:31 -05:00
Andrew Tridgell
c012669b55 r4595: on create check access against parent not child ...
(This used to be commit 5a1a17d3fc771b1e1c61297067f38c87901891d3)
2007-10-10 13:08:31 -05:00
Andrew Bartlett
eccbbd70b0 r4594: Add more testes to the standard 'passes against win2k3' script.
Andrew Bartlett
(This used to be commit 07295b3b07984ec3d1de9ed27835dbda7b4b7d0f)
2007-10-10 13:08:31 -05:00
Andrew Tridgell
35a2ced64a r4593: don't use the _p function in the testsuite, as when built standalone it doesn't
use TALLOC_DEPRECATED
(This used to be commit 2fe0e2528f14627832942f6404a4b1be4b556c97)
2007-10-10 13:08:30 -05:00
Andrew Tridgell
8b1512fc9b r4592: fixed typo from talloc testsuite fixup for the new syntax
(This used to be commit 1177200dd9392c088f5b009f55390ad31c367e5f)
2007-10-10 13:08:30 -05:00
Andrew Tridgell
11ce2cfd70 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)
2007-10-10 13:08:30 -05:00
Andrew Bartlett
066134f241 r4590: Make RPC-SAMSYNC pass againt Win2k3.
Andrew Bartlett
(This used to be commit 7bb00a80ac55252b8c05b33fd576b8606470e9be)
2007-10-10 13:08:30 -05:00
Andrew Tridgell
9278473ea4 r4589: forgot to commit the new NT_STATUS_RPC_PROTSEQ_NOT_SUPPORTED error code
(This used to be commit f4337c988c15dc84e3cfd77b628e92a0996717ea)
2007-10-10 13:08:30 -05:00
Andrew Tridgell
e3450b0ade r4588: fixed the double bind in ncalrpc with dcerpc_secondary_connection()
(This used to be commit b65a95c11778fd778ad3c013664aea7d038e16ae)
2007-10-10 13:08:30 -05:00
Andrew Tridgell
57842ede9e 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)
2007-10-10 13:08:29 -05:00
Andrew Tridgell
b3d59e578d r4586: RPC-LSA now passes against w2k3
(This used to be commit e252f80f2bc5de4a3de84acf232f5334b5d448f6)
2007-10-10 13:08:29 -05:00
Andrew Tridgell
4ea89e5cf9 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)
2007-10-10 13:08:29 -05:00
Andrew Tridgell
ad7da47948 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)
2007-10-10 13:08:29 -05:00
Andrew Tridgell
1a019f9883 r4583: print which bit failed in the owner bits check
(This used to be commit f893ad9c45d6d06fa1b6f1f949a7834e7bf99ba7)
2007-10-10 13:08:29 -05:00
Andrew Tridgell
468b3fcef2 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)
2007-10-10 13:08:29 -05:00
Tim Potter
b8b0927455 r4578: Minor cleanup of ndr_pull_array() and ndr_pull_array_foo() regexps.
(This used to be commit 0f8f0de00fa687920c898a56238cd3e21d83cfb1)
2007-10-10 13:08:29 -05:00
Stefan Metzmacher
12d8b02f44 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...)

metze
(This used to be commit bfedcbc598706c47981d9ba0e19cae9ea3fab46b)
2007-10-10 13:08:28 -05:00
Stefan Metzmacher
1ec6416a35 r4568: make use of SidType and move it to lsa.idl
metze
(This used to be commit c2523adc0a0807979fb21b8ba77d556bac82e435)
2007-10-10 13:08:28 -05:00
Andrew Bartlett
5db389cbdc r4567: Fix the build for metze.
Andrew Bartlett
(This used to be commit d05a9bf1a12c9f0b18c9e65b6aa03fa4283a1b68)
2007-10-10 13:08:28 -05:00
Andrew Bartlett
56df264cf8 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)
2007-10-10 13:08:28 -05:00
Andrew Bartlett
0773193057 r4565: Make the order of the initialisation more sensible.
Andrew Bartlett
(This used to be commit 5598cda08b46e61695b753e049288a0b498502c4)
2007-10-10 13:08:28 -05:00
Andrew Tridgell
8943299838 r4564: added a comment on lsa_EnumAccounts IDL
(This used to be commit 08d7b77efc05571146c54322e684753ccd4cd2d6)
2007-10-10 13:08:28 -05:00
Andrew Tridgell
42cf0af758 r4563: fixed lsa_EnumAccounts() server side to return all accounts that have privileges, as
volker discovered
(This used to be commit 09edc31f3b92105dab585614553ba5e94ccdf588)
2007-10-10 13:08:28 -05:00
Andrew Tridgell
365d9ef73d 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 test_w2k3.sh 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)
2007-10-10 13:08:27 -05:00
Andrew Tridgell
7e5523cbe4 r4559: prevent the RPC-EPMAPPER test from looping forever against w2k3
(This used to be commit fa3cecddd8065885dd461000de683eb0143eb481)
2007-10-10 13:08:27 -05:00
Stefan Metzmacher
d62a44c447 r4558: more use of bitmaps and enums
metze
(This used to be commit 2a859fbc90a6b043bac318196e42c2949958d57f)
2007-10-10 13:08:27 -05:00
Stefan Metzmacher
66af8726e5 r4557: support for [flags()] on typedef enum|bitmap
NDR_PAHEX is handled by ndr_print_enum() now

metze
(This used to be commit c3b2d2cca37193fead0df1a8808c3ffcd5180a89)
2007-10-10 13:08:27 -05:00
Andrew Tridgell
939d37a0f2 r4556: neater (and faster) way of doing alignments and scalars
(This used to be commit ec70d9a740ab0b6f83b6b10c1b5313e585164383)
2007-10-10 13:08:27 -05:00
Stefan Metzmacher
88217c3b26 r4555: fix some dependencies
metze
(This used to be commit a4d94034239980d8a7ab38dfe2b19936b15d23df)
2007-10-10 13:08:27 -05:00
Stefan Metzmacher
5204a551be r4554: create svcctl_ServerType bitmap
metze
(This used to be commit ed1c98cb9d1adbc2616cb26376927c6dee1b579b)
2007-10-10 13:08:27 -05:00
Stefan Metzmacher
9c9404e638 r4553: fix typo
metze
(This used to be commit 6f75a06b8691dd0d684a51b7851696613c6a6b11)
2007-10-10 13:08:26 -05:00
Stefan Metzmacher
678038a0f2 r4552: use samr_AcctFlags in netlogon.idl
metze
(This used to be commit 3e224575e58436fef71897e62f57bfcf120c0da8)
2007-10-10 13:08:26 -05:00