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

403 Commits

Author SHA1 Message Date
Andrew Tridgell
c8cfbfdc8b r21814: use ndr_push_error in the ndr layer, not just a NTSTATUS failure
(This used to be commit 37aa32e2fe4829ec467c606cfcc7485508a2682c)
2007-10-10 14:49:31 -05:00
Andrew Tridgell
dd0b2572eb r21812: fixed an integer overflow error in the ndr push code.
This needs to be fixed in Samba3 as well. It might be exploitable (I
haven't confirmed one way or the other), so I think this should be
fixed for 3.0.25
(This used to be commit 4766175ff2d0de8af92046e29280c7893ac8fe1f)
2007-10-10 14:49:31 -05:00
Stefan Metzmacher
3847155cc4 r21405: add support for [flag(STR_NOTERM|NDR_REMAINING)] string_array foo;
this is handles the content of the 'Packages' element in the supplementalCredetials

metze
(This used to be commit 07fe22f82ebe66464ef73274a109d1e21a0d7f0f)
2007-10-10 14:48:26 -05:00
Stefan Metzmacher
03e0d675cf r21391: add supporting for
uint16 size;
[relative,subcontext(0),subcontext_size(size),flag(STR_NOTERM|NDR_REMAINING)] string *string;

as

uint16 size;
[relative,charset(UTF16)] uint8 *string[size];

isn't supported by pidl yet...

metze
(This used to be commit 9fcfa658430f04658c692eb26db9280fda6e4e25)
2007-10-10 14:48:25 -05:00
Stefan Metzmacher
b3d0836eac r21389: give a better error when our parser hasn't consumed all data
metze
(This used to be commit 03b06398a405e491ce4e2bc91513a57e0d59466f)
2007-10-10 14:48:24 -05:00
Jelmer Vernooij
c471abbcfe r20963: remove unused functions, run LOCAL-TDR by default
(This used to be commit 0f34c67fff53d5bd3c1b5a5618190ad7154e8d07)
2007-10-10 14:44:04 -05:00
Stefan Metzmacher
d6fafdb237 r20800: fix compiler warnings
metze
(This used to be commit 6ce994720cdd8b7dd0b789460b5ae7da19261696)
2007-10-10 14:43:31 -05:00
Stefan Metzmacher
beb955758b r20798: fix ndr_size_security_ace() it should include the optional sub object
for ADS style ace's

metze
(This used to be commit 161fea1a141de085eb6c84efc5b120e00cf95943)
2007-10-10 14:43:30 -05:00
Stefan Metzmacher
cf5f76bf66 r20712: add a function to compare GUID's
metze
(This used to be commit 6237d9f0b575ccb739b96d2a9f4c3643a727c4b7)
2007-10-10 14:40:30 -05:00
Andrew Bartlett
5ba31394c1 r20493: Add support for the 'Netscape' varient of GUID formatting, used in the
Fedora DS.

Andrew Bartlett
(This used to be commit 918e52fa5f527c427b46c1e1794131bcddab38f1)
2007-10-10 14:36:00 -05:00
Stefan Metzmacher
bb75710d40 r20417: - fix pushing of drsuapi_DsAttributeValueDataBlob
- make drsuapi_DsReplicaAttribute public so that the ndr_print_*
  function can be used from the outside

metze
(This used to be commit f12776b9a9de55d5c67335d5e59c0d83a74ac939)
2007-10-10 14:30:32 -05:00
Stefan Metzmacher
02b65d5453 r20288: fix a mem leak and remove useless code
metze
(This used to be commit 6d0c788f3dffb7a553464404ebd9c0487d668bc5)
2007-10-10 14:29:32 -05:00
Stefan Metzmacher
089eda9585 r20286: handle the non oid string cases for pushing too
metze
(This used to be commit 0777a8e749e8df88dd1b9f7be9e4f3012559243b)
2007-10-10 14:29:32 -05:00
Simo Sorce
52455cb922 r20284: Simplify OID primitive BER parsing.
Do not require an artificial ASN.1 context to be setup.

Simo.
(This used to be commit 14b3b9861ae47498c74a6643e6979b3d85260a61)
2007-10-10 14:29:31 -05:00
Stefan Metzmacher
89a94feef9 r20281: remove debug statement
metze
(This used to be commit ebbd6263bbc30001e25603c5e4f45393b5fadb3d)
2007-10-10 14:29:30 -05:00
Stefan Metzmacher
037e158938 r20280: if the uint8_t array starts with 0xFF, then it's not a OID
and we return the array as hexstring. this is always in the last
array member of the meppings array, and I is always 21 bytes long

w2k in mixed mode:   FF0000000000000000000000000000000000000000
w2k3 in mixed mode:  FF00000002A5DA73B101C43B449028E2F832FE466F
w2k3 in native mode: FF00000001635D94BDE62E2C4C9BAC9D6AFA4F69F8

I assume it's some kind of schema version...

metze
(This used to be commit db16f6382da50167b6cefdaeb8488b00a45fb928)
2007-10-10 14:29:30 -05:00
Stefan Metzmacher
aaccc47c0e r20278: make it possible to use oid strings in the drsuapi instead of uint8_t arrays
with ber encoded oid's

metze
(This used to be commit bc13b3690166b29df246cc4778b378e9cf2a22d7)
2007-10-10 14:29:30 -05:00
Stefan Metzmacher
a28b67c733 r20064: - fix pushing of DeReplicaObjectIdentifierX, this lets the DsAddEntry()
request work correctly
- the error structures all have the same type

metze
(This used to be commit 3322dbd901106262b22db35e9ef455a08ac2867c)
2007-10-10 14:28:57 -05:00
Jelmer Vernooij
8d870db811 r19859: Reuse referrent ids when pushing full pointers (still need to
avoid pushing the referred object twice) and add test for full pointers.
(This used to be commit 1638c8d234dbc85298000685e49570f23dfd0bf8)
2007-10-10 14:28:26 -05:00
Jelmer Vernooij
128fe5324b r19856: Use sptr as basis for full ptr implementation. Will add checks for duplicates later.
(This used to be commit 006ab1d4a449c81680add57e0116a86b8317fbfb)
2007-10-10 14:28:26 -05:00
Stefan Metzmacher
3478bf1c23 r19341: ndr_push_union_blob() needs the same fix as ndr_push_struct_blob()
metze
(This used to be commit 5c766ad48d0790b7ae865408fd0dbdb1769da2d8)
2007-10-10 14:21:13 -05:00
Andrew Tridgell
915c281deb r19326: don't leak a ndr_push structure on ndr_push_struct_blob()
(This used to be commit 9817cc235c5fd787855c60fa58f68b14f78cdb94)
2007-10-10 14:21:09 -05:00
Andrew Tridgell
30ee8beb93 r18301: I discovered how to load the warnings from a build farm build into
emacs compile mode (hint, paste to a file, and compile as "cat
filename").

This allowed me to fix nearly all the warnings for a IA_64 SuSE build
very quickly.
(This used to be commit eba6c84efff735bb0ca941ac4b755ce2b0591667)
2007-10-10 14:18:04 -05:00
Jelmer Vernooij
0329d755a7 r17930: Merge noinclude branch:
* Move dlinklist.h, smb.h to subsystem-specific directories
 * Clean up ads.h and move what is left of it to dsdb/
   (only place where it's used)
(This used to be commit f7afa1cb77f3cfa7020b57de12e6003db7cfcc42)
2007-10-10 14:16:54 -05:00
Stefan Metzmacher
787a4d6f45 r17888: use talloc_*_ptrtype() macros as wrappers arround the talloc_*_size()
functions to get rid of c++ warnings

metze
(This used to be commit 7579503bb886e9c4cc08756013f5311ce550c9fd)
2007-10-10 14:16:51 -05:00
Stefan Metzmacher
da722e8520 r16996: use the correct types, merge from samba3
metze
(This used to be commit dd81e7e5c71af36499746ba100ce48fedd240dce)
2007-10-10 14:10:07 -05:00
Jelmer Vernooij
9727b061f3 r15776: Don't generate ref pointers in Samba4-generated code. There is no point
in having pointers for outgoing data when you can already modify the top-level
element.

This can be overridden (temporarily) by specifying the new "keepref"
attribute. Once we've removed keepref from all IDL files, I'll remove this
attribute as well.
(This used to be commit bdc6dd37503ced8322a671d225122ccffbb8bfec)
2007-10-10 14:08:18 -05:00
Stefan Metzmacher
94bf599886 r15629: fix some warnings
metze
(This used to be commit 803a602990b78eaec7b674ef3214b8ccea6a98f3)
2007-10-10 14:07:25 -05:00
Stefan Metzmacher
6506e27cb2 r15624: add some useful helper functions
metze
(This used to be commit 8fa6059100d1f6e235bacc722a83a961e460ebb2)
2007-10-10 14:07:24 -05:00
Jelmer Vernooij
3cd705a65f r15512: Move uuid functions out of ndr_misc.c
(This used to be commit 54cc9f8ccf30a0f5de1d3bb68d15ec3a8791c162)
2007-10-10 14:05:44 -05:00
Jelmer Vernooij
2420b38336 r15427: Rename private to private_data to prevent errors from C++ errors (which
we care about in Samba3)
(This used to be commit eb07aea711a5e3606e169d77b208b03bd876c639)
2007-10-10 14:05:36 -05:00
Jelmer Vernooij
37aa2c5e8f r15407: Get rid of some more uint_t
(This used to be commit 897329c2534dc8e24670b91bc448939141f27417)
2007-10-10 14:05:33 -05:00
Jelmer Vernooij
e002300f23 r15328: Move some functions around, remove dependencies.
Remove some autogenerated headers (which had prototypes now autogenerated by pidl)
Remove ndr_security.h from a few places - it's no longer necessary
(This used to be commit c19c2b51d3e1ad347120b06a22bda5ec586c22e8)
2007-10-10 14:05:17 -05:00
Andrew Tridgell
a40ce7f9f6 r14958: fixed big-endian dcerpc connections for the new string handling code
(This used to be commit 0617aebbbcd27126aab71bc0502a736d7eee1d72)
2007-10-10 14:00:45 -05:00
Andrew Tridgell
66a0d69256 r14917: fixed length strings don't count any trailing nulls in the length
(This used to be commit 28d9a4d1a7aab0852f7f718621830f06cd7ff39b)
2007-10-10 14:00:16 -05:00
Andrew Tridgell
c1a9486faf r14904: fixed LIBNDR_FLAG_STR_CHARLEN (thanks to Metze for noticing this)
(This used to be commit 9569bf5374f92815ce1940f752aaff4a6913b4c0)
2007-10-10 14:00:13 -05:00
Andrew Tridgell
6312201a43 r14903: rewrote ndr_push_string() to be much simpler, and correctly handle
UTF8 strings. This should fix the german umlaut problem reported by
michael@drueing.de
(This used to be commit 73ba1215e0c9283296c16f36c91f5a966f3cc9f4)
2007-10-10 14:00:13 -05:00
Stefan Metzmacher
4a3b6ac49f r14642: fix shadow warnings
metze
(This used to be commit 09850fd13334667a2a7a7b6ee24fa3379c67825a)
2007-10-10 13:59:04 -05:00
Jelmer Vernooij
8e8f3b2c21 r14544: Remove exchange-specific files.
(This used to be commit 4ae0a28b2e85609226aa14c14e06aefad64ee293)
2007-10-10 13:58:42 -05:00
Jelmer Vernooij
35349a58df r14542: Remove librpc, libndr and libnbt from includes.h
(This used to be commit 51b4270513752d2eafbe77f9de598de16ef84a1f)
2007-10-10 13:58:42 -05:00
Jelmer Vernooij
ecf0dd6baf r14488: Install more headers.
Generate different #include lines in pidl depending on whether
we're building inside or outside of the Samba tree (useful for
3rd-party projects).
(This used to be commit 0c188833154c1fe565cb1735909e408a4a1a6049)
2007-10-10 13:57:32 -05:00
Jelmer Vernooij
83d8fd3dcf r14484: Install more headers
(This used to be commit 430c6516d383bfd7f27287394bf8eef9f174b3e6)
2007-10-10 13:57:31 -05:00
Jelmer Vernooij
8528016978 r14464: Don't include ndr_BASENAME.h files unless strictly required, instead
try to include just the BASENAME.h files (containing only structs)
(This used to be commit 3dd477ca5147f28a962b8437e2611a8222d706bd)
2007-10-10 13:57:27 -05:00
Jelmer Vernooij
1060f6b3f6 r14402: Generate seperate headers for RPC client functions.
(This used to be commit 7054ebf0249930843a2baf4d023ae8f62cedb109)
2007-10-10 13:57:19 -05:00
Jelmer Vernooij
e5ea1d3691 r14384: Remove orpc code from includes.h
(This used to be commit 206d182cfb78ec2258ceca1be2dd5e3c06649312)
2007-10-10 13:57:17 -05:00
Jelmer Vernooij
227a789351 r14362: Only include ndr_compression.h when necessary.
(This used to be commit 4fced6dbbdc06233e5cf69f90c099fafee9baa34)
2007-10-10 13:57:14 -05:00
Jelmer Vernooij
7a121583b4 r14349: Kill proto.h!
Prototypes are now spread over multiple headers, usually one per subsystem.
This change is required to allow proper header dependencies later on,
without recompiling Samba each time the mtime of any source file changes.
(This used to be commit 3da79bf909f801386a52e6013db399c384d0401c)
2007-10-10 13:57:14 -05:00
Andrew Tridgell
65238dc940 r14310: length needs to be initialised
(This used to be commit 20d7f2ae35761533613f9d6dcf941a5ef3c7e07b)
2007-10-10 13:57:10 -05:00
Jelmer Vernooij
c71c86c524 r13842: Make some more functions public.
(This used to be commit aac1b99b362993352d80692afa55c38fc851c016)
2007-10-10 13:52:15 -05:00
Jelmer Vernooij
af30a32b69 r13840: Mark some functions as public.
(This used to be commit 9a188eb1f48a50d92a67a4fc2b3899b90074059a)
2007-10-10 13:52:14 -05:00