1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00

3318 Commits

Author SHA1 Message Date
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
Stefan Metzmacher
e3fd874341 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

metze
(This used to be commit a8d61aa47388b82595ee02b9cfd35f15afb93c2a)
2007-10-10 13:08:26 -05:00
Andrew Tridgell
e159e42d84 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)
2007-10-10 13:08:26 -05:00
Andrew Tridgell
ddc10d4d37 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
context)
(This used to be commit 89b74b53546e1570b11b3702f40bee58aed8c503)
2007-10-10 13:08:25 -05:00
Tim Potter
0b54d9236f r4548: Convert to talloc_p() and talloc_array_p() where appropriate.
(swig stuff seems broken atm though)
(This used to be commit 9eeb976773a8d2ed26a690c73d67f5db735e8d3a)
2007-10-10 13:08:25 -05:00
Andrew Tridgell
cc55aef7c1 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)
2007-10-10 13:08:20 -05:00
Tim Potter
66bd6142a2 r4546: Use talloc_p() instad of talloc()
(This used to be commit 2ec3a137d7fd8a912bc70e865f7a7798190b8869)
2007-10-10 13:08:20 -05:00
Stefan Metzmacher
895bc15672 r4542: use bitmap for samr_FieldsPresent and samr_AcctFlags
metze
(This used to be commit 109c91650ac8b4ad28151bdb6debf73ad6a94bfb)
2007-10-10 13:08:20 -05:00
Stefan Metzmacher
922f196442 r4541: make use of new enum and bitmap features
metze
(This used to be commit fd96a07c5a1f4969bfd04ffd3b6990a2dad41cf4)
2007-10-10 13:08:19 -05:00
Stefan Metzmacher
ecd9557922 r4540: sync enum and bitmap code
metze
(This used to be commit 2f3aea72ee7d9d90f7b910d11bdd1e96f9f0ebe1)
2007-10-10 13:08:19 -05:00
Stefan Metzmacher
4a49604e6c r4536: make use of the new enum and bitmap feature of pidl
metze
(This used to be commit 7702d0f9775878c4d7535d9135f41d156146f8d1)
2007-10-10 13:08:19 -05:00
Stefan Metzmacher
d0da601ff7 r4535: add full support for
typedef bitmap {
    FLAG1 = 0x01
} fooflags;

typedef struct {
    fooflags flags;
}

metze
(This used to be commit 052a7d4f9a3a178149c65a616fdfd87152dff7eb)
2007-10-10 13:08:19 -05:00
Stefan Metzmacher
31de71f0a2 r4534: update the yapp generated code
metze
(This used to be commit afef9b10481da3857d3cba598a71c01b827f29de)
2007-10-10 13:08:19 -05:00
Stefan Metzmacher
aca94b5ff2 r4533: parsing support for:
typedef [bitmap16bit] bitmap {
	FLAG1 = 0x0001,
	FLAG2 = 0x8000
} fooflags;

metze
(This used to be commit 192f2495468d5d0c5889d94ca791aa8f371514e8)
2007-10-10 13:08:19 -05:00
Stefan Metzmacher
a4fc930235 r4532: - rename bitmap -> bits
the next commit is support for typedef bitmap {...}; in pidl

metze
(This used to be commit bd06a85cb747aea29a400050cb9d25a3240ef1cc)
2007-10-10 13:08:19 -05:00
Andrew Bartlett
e1944a3d6d r4531: Include the OID locally, as it seems to be hard to get the includes
right.

Andrew Bartlett
(This used to be commit a742ea1e1221058ae6a99e317fbf18c80bc49aed)
2007-10-10 13:08:18 -05:00
Andrew Bartlett
5e9a136908 r4530: Start adding a bit of Doxygen compatible documentation comments to GENSEC.
Andrew Bartlett
(This used to be commit c7acea9d5a097b51693f41de93274b857f7be0e3)
2007-10-10 13:08:18 -05:00
Andrew Tridgell
58d9adf409 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)
2007-10-10 13:08:18 -05:00
Andrew Tridgell
d9ab65a8b4 r4524: converted a few bits of samr.idl to use enum properly
(This used to be commit 82313fb79eb361d7cee06ada21c537a7cc57970e)
2007-10-10 13:08:18 -05:00
Andrew Tridgell
5526a6e891 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)
2007-10-10 13:08:18 -05:00
Andrew Tridgell
0ba751b0aa r4522: PROPERTIES are now handled at the typedef level
(This used to be commit 73d5a033e8e9de536239c53e8a063e9be0eff701)
2007-10-10 13:08:18 -05:00
Andrew Tridgell
b90c0850fc r4521: fixed up the handling of PROPERTIES elements after the change to support enum
(This used to be commit dee8eff2590be58c59b0db089fcca4af3e011c42)
2007-10-10 13:08:18 -05:00
Andrew Tridgell
7588a01cb6 r4520: added a enum test function to the echo pipe
(This used to be commit f9e0aa1ab1faac039893db241819907c9c4bb510)
2007-10-10 13:08:17 -05:00
Andrew Tridgell
8448dd6ea0 r4519: added the enum print function in ndr_basic.c
(This used to be commit 29955004aa256d5ac27b941f48384ab97ff5e4b8)
2007-10-10 13:08:17 -05:00
Andrew Tridgell
3acf026603 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)
2007-10-10 13:08:17 -05:00
Tim Potter
328e260ca9 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)
2007-10-10 13:08:17 -05:00
Simo Sorce
8d8c21f8d0 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)
2007-10-10 13:08:17 -05:00
Tim Potter
5f8802ff01 r4512: Give arrays of scalar types their own subtree.
(This used to be commit b9432130959aeaab6d1720ac2c6f99e3d8f9e037)
2007-10-10 13:08:17 -05:00
Tim Potter
522c54ce93 r4511: Remove a crapload of dead code.
(This used to be commit 0f50ed8260ce37c21d8ad62b5a257f22ab4a5534)
2007-10-10 13:08:17 -05:00
Andrew Bartlett
967b77a827 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)
2007-10-10 13:08:17 -05:00
Tim Potter
ed1634c684 r4509: Add missing cr.
(This used to be commit 60f266bf6a30eee485c4f498569201ac50f85120)
2007-10-10 13:08:16 -05:00
Stefan Metzmacher
4dd48e95cd 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

metze
(This used to be commit 09727d3d4acdc90165f37ef726ba6f6ef6f77b98)
2007-10-10 13:08:16 -05:00
Stefan Metzmacher
fd6aa0ecd3 r4507: this default is unnneded because the switch level is in the r->in
metze
(This used to be commit d60b2f094e89462b435063142a290034675a1132)
2007-10-10 13:08:16 -05:00
Stefan Metzmacher
bb71b37f70 r4506: fix compiler warnings
metze
(This used to be commit 1c6accd7cbf9ccb7f642b85200671b9d4fe23f47)
2007-10-10 13:08:16 -05:00
Simo Sorce
b92afa3838 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

Simo.
(This used to be commit b8bb62f14419efd434a344606fb3f753384761a0)
2007-10-10 13:08:16 -05:00
Andrew Bartlett
5e94b016f0 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)
2007-10-10 13:08:16 -05:00
Simo Sorce
8164d24428 r4503: add an error reporting function (fixes)
(This used to be commit d11732f4f7f9bc535222aa7a6dd2f15cf5002a4d)
2007-10-10 13:08:16 -05:00
Simo Sorce
ab4e92ab21 r4502: add an error reporting function
(This used to be commit 985a58a16d04f3b92b4bbff86f6c466385f01321)
2007-10-10 13:08:15 -05:00
Andrew Tridgell
5869493626 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)
2007-10-10 13:08:15 -05:00
Andrew Bartlett
c8ba520c5a 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)
2007-10-10 13:08:15 -05:00
Andrew Bartlett
8eb981c90a 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 test_rpc.sh, as a 'should pass' test.

Andrew Bartlett
(This used to be commit 4b52409e385366d87724bb79f4fad4803e8ecfec)
2007-10-10 13:08:15 -05:00
Andrew Tridgell
dd1c0a56b4 r4498: arrgh, really fix the typo this time
(This used to be commit fc338f6ce28bb14e31cdf7a5b36af12ade39093a)
2007-10-10 13:08:15 -05:00
Andrew Tridgell
593b657180 r4497: fixed a typo
(This used to be commit 2f6107ea9af125a031479dd863447eeadd8e5cfc)
2007-10-10 13:08:14 -05:00