Andrew Tridgell
2bf8a7485c
pidl: get the alignment right for uint1632 enums (NDR64)
...
The default enum in NDR63 is 32 bits, not 16 bits. We need a uint1632
type to get the alignment right.
2009-10-07 09:56:22 +11:00
Günther Deschner
76feeb1b97
libndr: add int3264 ndr prototype.
...
Guenther
2009-10-05 15:10:35 +02:00
Andrew Tridgell
f21fb4b395
pidl: added int3264 as a base type
...
This is the type used for a variable that is 32 bits for NDR32 and 64
bits for NDR64
2009-10-03 18:17:23 +10:00
Andrew Tridgell
9eb78be4a6
ndr64: added support for trailing gap alignment
...
NDR64 has a 'trailing gap' alignment, which aligns the end of a
structure on the overall structure alignment.
This explains the discrepancy we had with the RPC-SAMR test and NDR64
2009-10-02 12:05:59 +10:00
Andrew Tridgell
64e08fef16
pidl: added union padding for NDR64
...
This fixes the problem with samr UserInfo16 when NDR64 is enabled
2009-09-29 18:08:22 +10:00
Andrew Tridgell
7b157a3d8a
ndr: num_auths is an array size, thus a uint3264
2009-09-17 15:19:30 -07:00
Andrew Tridgell
1a1cb92583
ndr: split out ndr enum functions
...
This allows for easier implementation of the NDR32/NDR64 split
2009-09-17 15:19:30 -07:00
Andrew Tridgell
056cbf7f81
ndr: added support for NDR64
...
This adds NDR64 support for the push functions in libndr
2009-09-17 15:19:27 -07:00
Jeremy Allison
e91cdef2d4
Remove ununsed variable warning.
...
Jeremy.
2009-09-17 09:25:25 -07:00
Andrew Tridgell
9407ab573e
ndr: added --ndr64 flag to ndrdump
...
This only does pull, but it is useful for w2k8-r2 <-> w2k8-r2 ndrdump
usage, which is always 64bit.
2009-09-16 23:59:53 -07:00
Günther Deschner
c5c04fcf90
s3-schannel: add dump_NL_AUTH_SIGNATURE.
...
Guenther
2009-09-16 07:54:02 +02:00
Günther Deschner
9831e7675c
ntlmssp: pretty print a VERSION structure.
...
Guenther
2009-09-15 17:54:58 +02:00
Andrew Tridgell
5c33042498
s4-ndr: fixed memory leaks in ndr_pull_*_blob()
...
We needed to free the ndr structures, both on error and normal return
2009-09-12 15:21:33 +10:00
Günther Deschner
721b76cfba
schannel: more work on reponse NL_AUTH_MESSAGES.
...
Guenther
2009-09-11 02:57:19 +02:00
Günther Deschner
f745d076d3
ntlmssp: avoid duplicate inclusion of helper headers.
...
Guenther
2009-09-09 01:04:17 +02:00
Günther Deschner
4323c1321a
schannel: add missing prototype for ndr_print_nbt_string() in schannel helper.
...
Hopefully fixes samba4 build.
Guenther
2009-09-08 17:07:03 +02:00
Günther Deschner
4fd9a9d6de
schannel: add NL_AUTH_MESSAGE and both NL_AUTH_SIGNATURE structs.
...
These actually belong netlogon but we for now want to keep netlogon as a security
providor separate.
Guenther
2009-09-08 14:55:10 +02:00
Andrew Tridgell
642a84c129
fix the ndr print routines for samba4
...
This uses a hackish #if just for samba4. The proper fix is much more
complex.
2009-09-03 18:36:08 +10:00
Anatoliy Atanasov
c033b2dd2d
Fix for DSSYNC test against Windows 2003
2009-09-03 18:36:08 +10:00
Günther Deschner
3a519fac8a
ntlmssp: add ndr_print_ntlmssp_{nt,lm}_response() function.
...
Guenther
2009-08-28 10:08:43 +02:00
Günther Deschner
e65a3cb0db
ntlmssp: add CHALLENGE_MESSAGE to IDL.
...
Guenther
2009-08-28 10:05:13 +02:00
Günther Deschner
4e7edc7906
ntlmssp: add string helper functions to handle OEM and UNICODE charset.
...
Guenther
2009-08-28 10:05:00 +02:00
Günther Deschner
d4d2b42a92
ntlmssp: add ntlmssp helper skeleton.
...
Guenther
2009-08-28 10:04:52 +02:00
Günther Deschner
b1ee4c14d4
libndr: add missing protoypes for double type.
...
Guenther
2009-08-24 14:31:22 +02:00
Andrew Tridgell
011f103501
when we get an NDR error in the logs, it is useful to know where it happened
2009-08-12 15:33:37 +10:00
Stefan Metzmacher
933d5ee22b
librpc/ndr_drsuapi: fix a memory leak on ndr_push_drsuapi_DsReplicaOID()
...
metze
2009-07-31 14:42:02 +02:00
Stefan Metzmacher
84eced1425
librpc: fix the merged build of ndr_frsrpc.c
...
metze
2009-07-22 13:43:39 +02:00
Stefan Metzmacher
424e763695
frsrpc.idl: make the chunk array in frsrpc_CommPktChunkCtr dynamic
...
We add an extra num_chunks to the frsrpc_CommPktChunkCtr structure
and use hand modified ndr_push/pull functions to let it not appear
on the wire.
metze
2009-07-21 19:11:24 +02:00
Andrew Tridgell
ff4acca13a
Revert "avoid crashes in ndr_print_*() calls"
...
This reverts commit f5a47dc4bf
.
This change broke Samba3. We'll need to do it the long way.
2009-06-12 15:37:48 +10:00
Andrew Tridgell
f5a47dc4bf
avoid crashes in ndr_print_*() calls
...
This is a hackish fix, but it will do for now
2009-06-12 12:23:46 +10:00
Brad Hards
00bfe9c286
Add support for double type in pidl.
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2009-06-02 18:05:42 +02:00
Volker Lendecke
8f3a9b3c0f
Of course, s_addr is a #define somewhere else .... (Solaris...)
2009-05-02 23:35:30 +02:00
Volker Lendecke
eea114a856
Fix a warning on host "gwen"
...
cc: "../librpc/ndr/ndr_basic.c", line 572: warning 604: Pointers are not assignment-compatible.
Apparently in_addr.s_addr is not compatible to uint32_t, maybe a 32-bit signed
int.
2009-05-02 19:17:23 +02:00
Günther Deschner
9d1ab9a001
spoolss: add my copyright.
...
Guenther
2009-03-18 17:18:46 +01:00
Günther Deschner
65151077b3
spoolss: add custom ndr_print_spoolss_Field.
...
Guenther
2009-03-18 16:46:14 +01:00
Günther Deschner
2687d29f7c
spoolss: add ndr_size_spoolss_EnumPrinterDataEx_info in spoolss helper.
...
Guenther
2009-03-18 11:55:41 +01:00
Günther Deschner
ec47aac299
spoolss: rename NDR_SPOOLSS_SIZE_ENUM macro to NDR_SPOOLSS_SIZE_ENUM_LEVEL in
...
spoolss helper.
Guenther
2009-03-18 11:55:32 +01:00
Günther Deschner
048013ddaa
spoolss: fix ndr_push_spoolss_EnumPrinterDataEx.
...
Guenther
2009-03-18 10:35:13 +01:00
Günther Deschner
18a93e3e62
spoolss: add ndr_push/pull_spoolss_EnumPrinterDataEx helper.
...
Guenther
2009-03-18 01:19:46 +01:00
Günther Deschner
b560a99718
spoolss: fix ndr_push_spoolss_SetPrinterData.
...
Guenther
2009-03-17 11:14:49 +01:00
Günther Deschner
e56be5cf84
spoolss: fix GetPrinterData buffer helper.
...
Guenther
2009-03-17 10:58:14 +01:00
Günther Deschner
793247452e
spoolss: fix typo in spoolss_EnumPrintProcessors_info union helper fn.
...
Guenther
2009-03-11 15:31:09 +01:00
Günther Deschner
2c3d7449b4
spoolss: fix typo in spoolss_EnumJobs_info union helper fn.
...
Guenther
2009-03-11 15:30:57 +01:00
Volker Lendecke
8c41e0e5a6
Don't log NDR_PRINT_DEBUG at level 0, this always ends up in syslog
...
I think we eventually need to pass down the debuglevel here.
2009-03-10 17:07:38 +01:00
Günther Deschner
f959aac745
spoolss: add spoolss_EnumPrintProcDataTypes to enum macro helper.
...
Guenther
2009-03-07 00:23:29 +01:00
Günther Deschner
c6aea64e92
spoolss: fix spoolss enum calls helper macro code after pointer changes.
...
Guenther
2009-03-06 14:27:57 +01:00
Günther Deschner
6532fea2c8
spoolss: add push,pull helper for spoolss_DriverInfo101.
...
Guenther
2009-02-24 01:02:37 +01:00
Jeremy Allison
0b62cdbed0
Quieten down a boatload of shadowed variable warnings on Solaris.
...
Makes real problems easier to spot.
Jeremy.
2009-02-23 15:03:29 -08:00
Günther Deschner
4f803502ef
spoolss: add ndr_size_spoolss_StringArray to spoolss helper.
...
Guenther
2009-02-19 18:00:36 +01:00
Günther Deschner
742270eb2d
spoolss: fix spoolss helper for out ref count pointer.
...
Guenther
2009-02-17 16:15:52 +01:00
Günther Deschner
2f44170836
spoolss: fix ndr_pull_spoolss_GetPrinterData.
...
Guenther
2009-02-07 01:51:35 +01:00
Günther Deschner
1ebd35e872
spoolss: fix ndr_pull/push_spoolss_GetPrinterData.
...
Guenther
2009-02-06 18:36:47 +01:00
Günther Deschner
9ad6b94339
spoolss: fix spoolss helper functions and macros w.r.t. needed pointer.
...
Guenther
2009-02-06 17:35:56 +01:00
Günther Deschner
c9e64100d4
spoolss: fix samba4 dependency of spoolss helper.
...
Guenther
2009-02-05 16:04:36 +01:00
Günther Deschner
b03913cbc6
spoolss: move ndr spoolss helper to main librpc dir.
...
Guenther
2009-02-05 16:04:36 +01:00
Günther Deschner
a0c4fbdb3c
librpc: add header file for drsblobs helper functions.
...
Guenther
2009-02-04 12:38:21 +01:00
Günther Deschner
35f1e02ca4
librpc: add ndr_size_string_array().
...
Guenther
2009-02-03 15:42:29 +01:00
Jelmer Vernooij
79255cec6a
Add function for mapping NDR error codes to strings.
2009-01-26 17:31:22 +01:00
Tim Prouty
53293f2ccb
librpc: Fix warning caused by some empty debug strings
...
It would probably be better to create a new macro such as DEBUGHDR to
allow empty strings for debug statements, but for the short term this
eliminates the warning with no negative consequences.
2009-01-20 17:30:28 -08:00
Stefan Metzmacher
bae593bb11
ndr_print: fix the output ndr debug messages only add header line once
...
metze
(from samba4wins tree e99531aae325e4443fcb917a75dfe4a86b892583)
2009-01-19 07:05:21 +01:00
Günther Deschner
a9b7695c24
svcctl: add ndr_push/pull_ENUM_SERVICE_STATUSW_array helper.
...
Thanks metze for helping here.
Guenther
2009-01-09 16:52:40 +01:00
Jelmer Vernooij
af744e0954
Merge branch 'master' of ssh://git.samba.org/data/git/samba
2009-01-04 22:48:23 +01:00
Jelmer Vernooij
08259c1c52
Add iconv_convenience argument to size functions.
2009-01-01 04:45:33 +01:00
Jeremy Allison
9c92cb7636
Fix typo found by Volker. Thanks for the review.
...
Jeremy.
2008-12-31 18:34:52 -08:00
Jeremy Allison
07e0094365
Fix all warnings in source3 with gcc4.3.
...
Jeremy.
2008-12-31 18:06:57 -08:00
Andrew Bartlett
18c095e5d8
Don't trust sscanf not to run off the end of the string
...
The memory allocations here are wasteful, but they do nicely ensure we
cannot walk off the end of the DATA_BLOB that might be a string, or
might be binary and might not be NULL terminated.
Andrew Bartlett
2008-12-20 14:44:39 +11:00
Jelmer Vernooij
cd25b6245f
Move dom_sid to the Samba 3 IDL file, remove the old definition.
2008-12-12 20:20:01 +01:00
Jelmer Vernooij
58db2befbd
Move netr_SamDatabaseID8Bit to netlogon.idl to prevent problems with
...
forward enum declarations when compiled with C++.
2008-11-26 18:20:51 +01:00
Stefan Metzmacher
2cff27cefd
librpc/ndr: add GUID_hexstring()
...
metze
2008-11-16 16:37:22 +01:00
Stefan Metzmacher
69af236e77
librpc/ndr: let GUID_from_data_blob() accept a ndr blob or a hex string too
...
metze
2008-11-16 16:24:34 +01:00
Andrew Bartlett
536de25fae
Add a new function to parse a DATA_BLOB into a GUID
...
The reason for this new function is to ensure the length is not
discarded when the input is a ldb_val (aka DATA_BLOB) in ldb.
Andrew Bartlett
2008-11-16 16:24:33 +01:00
Stefan Metzmacher
1e80221b23
security.idl: sometimes ACEs have some padding at the end
...
metze
2008-11-08 08:02:27 +01:00
Stefan Metzmacher
ff5c58da55
librpc/ndr: move ndr_sec_helper.c to the toplevel
...
metze
2008-11-07 22:41:12 +01:00
Günther Deschner
c353c53692
netlogon: add 8bit varients of netr_SamDatabaseID8Bit and netr_DeltaEnum.
...
Guenther
2008-11-06 18:50:12 +01:00
Jelmer Vernooij
ff36c52d8c
Remove another use of global_loadparm.
...
Eventually, we should move some of these parameters into a separate
struct (perhaps into smb_transport_options?), to avoid the long lists of
parameters.
2008-11-02 16:07:28 +01:00
Jelmer Vernooij
09a63accb8
Move charset library to top level.
2008-10-24 00:06:35 +02:00
Tim Prouty
0b68762af7
Fix "parameter has incomplete type" build warning.
...
When libcli-util was moved to the top level
(3be0f6ea56
) it introduced a build
warning. Since ndr_map_error2ntstatus depends on the definition of
enum ndr_err_code and libndr.h can't be easily included in error.h, I
moved the definition of enum ndr_err_code to libndr.h.
This also eliminates the need for the duplicate definition in proto.h
2008-10-23 12:21:44 -07:00
Jelmer Vernooij
44b728958a
Use common error definitions.
2008-10-23 15:35:21 +02:00
Jelmer Vernooij
41b02b7ac0
Move orpc to top-level directory.
2008-10-20 19:20:12 +02:00
Jelmer Vernooij
dc3828f06c
Move WMI support code to top-level.
2008-10-20 19:14:47 +02:00
Jelmer Vernooij
87ec1d2532
Make sure prototypes are always included, make some functions static and
...
remove some unused functions.
2008-10-20 18:59:51 +02:00
Jelmer Vernooij
e0905c3090
Use tables in Samba 3 ndrdump.
2008-10-20 13:19:39 +02:00
Volker Lendecke
c4dc548171
Fix 64-bit printf warnings
2008-10-19 22:37:27 +02:00
Kai Blin
202affa511
rpc: Fix the merged build breaking on StrnCaseCmp.
2008-10-19 13:23:10 +02:00
Günther Deschner
f34b6bfe34
idl: share drsblobs idl.
...
Guenther
2008-10-18 23:54:49 +02:00
Günther Deschner
8105e5bf30
drsuapi: fix the drsuapi helper build for samba3.
...
Guenther
2008-10-18 23:26:11 +02:00
Günther Deschner
d413e1f40a
drsuapi: share drsuapi idl and helper code.
...
Guenther
2008-10-18 23:25:48 +02:00
Jelmer Vernooij
0132423a09
Share libndr.h between Samba 3 and Samba 4.
2008-10-15 00:35:13 +02:00
Jelmer Vernooij
5198fb6e19
Share ndr_krb5pac implementation.
2008-10-14 23:52:20 +02:00
Jelmer Vernooij
f02a68a89f
Share ndr_compression.c.
2008-10-14 23:46:34 +02:00
Jelmer Vernooij
2049cfe743
Share ndr.c implementation.
2008-10-13 16:09:48 +02:00
Jelmer Vernooij
58f844ab54
Share uuid implementations.
2008-10-13 15:23:35 +02:00
Jelmer Vernooij
8cae7a5bab
Share ndr_misc implementations.
2008-10-13 15:22:27 +02:00
Jelmer Vernooij
390d37187a
Share ndr_basic implementation.
2008-10-13 15:20:10 +02:00