1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
Commit Graph

269 Commits

Author SHA1 Message Date
Kai Blin
719a6bbfed ndr dns: Add simple parser 2010-10-23 10:17:05 +00:00
Andrew Bartlett
f768b32e37 libcli/security Provide a common, top level libcli/security/security.h
This will reduce the noise from merges of the rest of the
libcli/security code, without this commit changing what code
is actually used.

This includes (along with other security headers) dom_sid.h and
security_token.h

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Tue Oct 12 05:54:10 UTC 2010 on sn-devel-104
2010-10-12 05:54:10 +00:00
Günther Deschner
b75674c2eb Revert "libndr: fix "excess elements in struct initializer" warning."
This reverts commit a416ff26d6.
2010-10-05 22:55:30 +02:00
Günther Deschner
a416ff26d6 libndr: fix "excess elements in struct initializer" warning.
Guenther
2010-10-05 13:09:05 +00:00
Matthieu Patou
83f3f5e15a ndr: Handle the case of string array with all null terminated strings 2010-10-05 11:19:40 +04:00
Kai Blin
65d2cfdcf1 dnsp: Parse TXT records 2010-10-04 20:59:59 +02:00
Kai Blin
ee7ee2c4c2 ndr: Implement push function for IPv6 addresses
Thanks to Julien Kerihuel for providing the patch that pushed me to
finish my own IPv6 patches.
2010-10-04 20:59:59 +02:00
Kai Blin
013780b1e1 ndr: Add support for pulling/printing an ipv6address type 2010-10-04 20:59:59 +02:00
Stefan Metzmacher
bffa192bfe librpc/ndr: remove 'async' from ndr_interface_call
metze
2010-09-28 23:06:47 +02:00
Andrew Tridgell
83a24ff2ef pidl: prevent ndr_print_*() dying on NULL pointers
when using ndrdump you can get uninitialised structures containing
pointers. Don't segfault when trying to print them
2010-09-16 21:09:17 +10:00
Stefan Metzmacher
11a3d78951 librpc/ndr: correctly implement ndr_charset_length()
Before we ignored the charset type.

metze
2010-08-30 08:44:38 +02:00
Günther Deschner
e2f15d2a25 s4-trusts: fix trustDomainPasswords drsblobs IDL and server side support.
Also remove bogus trustCurrentPasswords struct which we just had because our IDL
was incorrect.

Guenther
2010-08-25 13:27:50 +02:00
Kamen Mazdrashki
7e936e3122 s4-ndr_basic.c: Fix ndr_*_hyper() when [bigendian] data is processed 2010-08-21 00:33:52 +03:00
Kamen Mazdrashki
26efea195a s4-drsuapi: Implement custom printing for drsuapi protocol for
drsuapi_DsReplicaAttribute and drsuapi_DsAttributeValueCtr objects

This makes tracing what data has been transferred much easier
2010-08-21 00:33:52 +03:00
Andrew Tridgell
3828c76c76 ndr: allow ndr_print to print DATA_BLOB
this prints DATA_BLOB structures using the ndr->print() calls

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-08-14 11:58:13 +10:00
Andrew Tridgell
7bb5d353e8 dnsp: dnsp_name is 2 byte aligned
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-08-14 11:58:12 +10:00
Andrew Tridgell
1946ab5a1b s4-dns: ndr_dnsp helper functions
these handle the dnsp_name type
2010-08-05 17:31:29 +10:00
Andreas Schneider
e52f3d8637 s3-librpc: Fixed GUID_from_data_blob() with length of 32.
If we hit the case that the blob length is 32. The code goes to the end
of the function and generates a GUID with garbage.
So try to convert the blob to the GUID and return.
2010-06-29 11:12:12 +02:00
Andreas Schneider
dc2e41a16a librpc: Use switch in GUID_from_data_blob(). 2010-06-28 10:18:12 +02:00
Günther Deschner
bcd4077be6 s3: remove unused librpc/ndr/sid.c.
Guenther
2010-06-03 01:07:17 +02:00
Günther Deschner
7bcd9c5583 libndr: add support for relative_rap_convert.
Will not harm anyone, is only used for rare short (2byte) relative pointers, and
relative_rap_convert is always 0 so far (as all init functions using struct
ndr_pull will zero the struct).

Guenther
2010-05-27 23:25:15 +02:00
Günther Deschner
b75384546a librpc: finally merge ndr_string.c.
Guenther
2010-05-20 13:57:22 +02:00
Jelmer Vernooij
f9ca9e46ad Finish removal of iconv_convenience in public API's. 2010-05-18 11:45:30 +02:00
Günther Deschner
566418f1a1 ntprinting: add ntprinting.idl.
This generates convenient unmarshalling routines for pulling out spoolss related
information out of ntprinters.tdb, ntforms.tdb and ntdrivers.tdb.

Guenther
2010-05-14 14:12:57 +02:00
Günther Deschner
3bfceafed7 rap: add rap_status to IDL.
Guenther
2010-04-30 13:44:41 +02:00
Günther Deschner
6a13c028a9 rap: let the rap print function be autogenerated again.
Guenther
2010-04-30 01:27:59 +02:00
Günther Deschner
f85a4ab778 s4-rap: add rap print helpers.
Guenther
2010-04-29 12:05:41 +02:00
Günther Deschner
440075247d spoolss: pretty-print a struct spoolss_Time.
Guenther
2010-04-22 11:53:41 +02:00
Andrew Tridgell
fae84f98e3 libutil: moved the networking defines to util_net.h
These were causing thousands of warnings on solaris8
2010-03-26 17:36:02 +11:00
Kamen Mazdrashki
aa572a4334 s4/drs: Pretty print for drsuapi_SecBufferType
It is a type and mask combined in one DRS field so
we have to make a custom ndr_print implementation for this type
2010-03-24 17:34:44 +02:00
Kamen Mazdrashki
fbaf3b3799 s4/drs: pretty print for drsuapi_DsAddEntry_AttrErrListItem_V1 2010-03-24 17:34:38 +02:00
Andrew Tridgell
55c45110e6 charset: fixed a problem with the global use of the iconv_convenience structure
We had a crash bug where a cached copy of a iconv convenience pointer
was used after being freed when loadparm asked for iconv to
reload. This could happen if a python module used a iconv based
function before loadparm was completed.

The fix is to ensure that any use of this pointer remains valid, by
reusing the pointer itself when it has already been initialised, but
filling in the child elements with the updated values.
2010-03-18 14:18:41 +11:00
Günther Deschner
0e779b573b spoolss: rollback GetPrinterData[Ex] IDL.
Guenther
2010-03-05 15:17:59 +01:00
Günther Deschner
0528515be4 spoolss: rollback SetPrinterData{Ex} IDL.
Guenther
2010-03-05 15:17:58 +01:00
Andrew Bartlett
a7036a9e47 librpc/ndr Remove unused macros
Since the change to the way we pull these OIDs from the wire, these
macros are unused.

Andrew Bartlett
2010-02-20 17:59:13 +11:00
Stefan Metzmacher
76aa37f653 librpc/ndr: don't overwrite the content in ndr_push_relative_ptr2_end()
metze
2010-02-19 08:12:42 +01:00
Günther Deschner
0a8011aa98 spoolss: use ndr_push_spoolss_PrinterInfo2 hand-marshalled version (moves devmode relative pointer down to sd).
Guenther
2010-02-18 15:47:59 +01:00
Günther Deschner
2881742493 spoolss: add spoolss_security_descriptor.
Guenther
2010-02-18 15:47:59 +01:00
Stefan Metzmacher
2059a165ee ndr_spoolss_buf: use LIBNDR_FLAG_NO_NDR_SIZE in NDR_SPOOLSS_SIZE_*
metze
2010-02-18 15:47:57 +01:00
Stefan Metzmacher
a4c3aeb793 spoolss: use subcontext in NDR_SPOOLSS_PUSH_ENUM_OUT macro.
metze
2010-02-18 15:47:56 +01:00
Stefan Metzmacher
8310f02414 libndr: fix ndr_size_* calculation with relative reverse buffers
metze
2010-02-18 15:47:52 +01:00
Stefan Metzmacher
4a76d29374 libndr: for now align reverse relative pointers to 2 bytes by default.
This is just a hack and we should let the callers use FLAG_ALIGN2
explicit in future.

metze
2010-02-18 13:44:04 +01:00
Stefan Metzmacher
31c7780c16 libndr: implement LIBNDR_RELATIVE_REVERSE handling
This is based on Guenther's initial code.

metze
2010-02-18 13:44:03 +01:00
Günther Deschner
05347754ee libndr: store a subcontext buffer size in ndr_push_subcontext_start.
Guenther
2010-02-18 13:44:03 +01:00
Stefan Metzmacher
b5f9c44da5 libndr: give an error when ndr_push_relative_ptr2_start()/_end() is used with the RELATIVE_REVERSE flag
metze
2010-02-18 13:44:03 +01:00
Günther Deschner
a2c34296fa libndr: add LIBNDR_FLAG_NO_RELATIVE_REVERSE so that relative reverse processing
can be disabled for single structure elements.

Guenther
2010-02-18 13:44:02 +01:00
Günther Deschner
ee13a51b05 libndr: add LIBNDR_FLAG_RELATIVE_REVERSE flag.
Guenther
2010-02-18 13:44:02 +01:00
Günther Deschner
c9fa97b017 libndr: change subcontext buffer allocation to allocate on subcontext_start.
Guenther
2010-02-18 13:44:01 +01:00
Stefan Metzmacher
98e143cd31 librpc/ndr: make ndr_push_relative_ptr2() static
metze
2010-02-18 13:44:01 +01:00
Stefan Metzmacher
e03591111a librpc/ndr_krb5pac: use ndr_push_relative_ptr2_start()/_end()
metze
2010-02-18 13:44:01 +01:00
Stefan Metzmacher
b423bd2115 librpc/ndr_drsblobs: use ndr_push_relative_ptr2_start()/_end()
metze
2010-02-18 13:44:00 +01:00
Günther Deschner
bfd6edb3e9 spoolss: fix relative pointers in ndr_push_spoolss_DriverInfo101.
Guenther
2010-02-18 13:44:00 +01:00
Günther Deschner
bc20d3446a libndr: add ndr_push_relative_ptr2_start and ndr_push_relative_ptr2_end.
Guenther
2010-02-18 13:43:59 +01:00
Günther Deschner
7e328e1e1c spoolss: regenerate hand-marshalled ndr_pull_spoolss_DriverInfo101 after ndr64 changes.
Guenther
2010-02-12 11:34:56 +01:00
Günther Deschner
95846bfee6 spoolss: make sure hand-marshalled spoolss_DriverInfo101 handles relative_highest_offset.
Guenther
2010-02-12 11:34:48 +01:00
Günther Deschner
8f07339b6d spoolss: regenerate hand-marshalled ndr_push_spoolss_DriverInfo101 after ndr64 changes.
Guenther
2010-02-12 11:34:39 +01:00
Kamen Mazdrashki
20db3211ae s4/drsblobs: Custom ndr_print_ implementation for drsuapi_MSPrefixMap_Entry
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-02-01 15:23:30 +01:00
Andrew Tridgell
a106fefcfb librpc: fixed the GUID_compare() function
When comparing two unsigned values you can't just subtract
them.

Imagine you are comparing: "uint32_t u1" and "uint32_t u2". If you use
"u1 - u2" and u2 is zero, then the signed integer result will depend
on the top bit of u1.

This error occurs in a few places in Samba. For DRS replication it
resulted in corrupt uptodateness vectors.
2009-12-21 23:41:07 +11:00
Brian Lu
a3b7e84a65 librpc/ndr: avoid comparison_fn_t to fix the openchange build on solaris
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-12-14 11:08:45 +01:00
Stefan Metzmacher
05effef1aa librpc/ndr: add missing prototypes for relative_short functions
metze
2009-12-14 10:58:31 +01:00
Günther Deschner
e316624ddb spoolss: fix spoolss_PrinterData size calculation.
Currently we were crashing in EnumPrinterDataEx when an e.g. an empty (NULL)
string for a separator file was returned.

Guenther
2009-12-14 10:39:34 +01:00
Matthieu Patou
f0054da041 librpc/ndr: add support for relative_short pointers
relative_short is like relative but instead of having the offset coded on 4 bytes
it's coded on 2 bytes. Such things happen in GET_DFS_REFERAL messages.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-12-12 10:21:22 +01:00
Günther Deschner
835e7d6c98 spoolss: remove unused spoolss_StringArray2.
Guenther
2009-12-10 17:48:50 +01:00
Andrew Tridgell
3ce800dcbe libndr: added a GUID_to_ndr_blob() helper function
This can be used in many places that deal with GUIDs
2009-12-10 17:51:28 +11:00
Andrew Tridgell
effff54426 librpc: split out a separate GUID_from_ndr_blob() function
This will simplify many of the places that deal with NDR formatted
GUIDs
2009-12-10 17:51:26 +11:00
Günther Deschner
08823166a1 spoolss: rework spoolss_GetPrinterDataEx and spoolss_SetPrinterDataEx.
Guenther
2009-12-07 14:42:12 +01:00
Günther Deschner
f32ccc321a spoolss: hand-marshall the spoolss_StringArray2 struct for spoolss_EnumPrinterKey.
This call is just driving me nuts :-)

Guenther
2009-12-03 01:04:02 +01:00
Günther Deschner
292af4fc04 spoolss: add spoolss_StringArray2.
The difference to spoolss_StringArray is that in spoolss_StringArray2 the string
array is put into a subcontext of _ndr_size.

Guenther
2009-12-02 14:37:02 +01:00
Günther Deschner
b852a3494a drsuapi: fix build warning of NDR size calculation of drsuapi_DsReplicaObjectIdentifier3Binary.
The generated size actually does not include the size of the binary itself.

Guenther
2009-12-01 00:36:50 +01:00
Stefan Metzmacher
4b6c03a108 librpc/ndr: remember the highest offset we parsed with relative pointer buffers
ndr_*_pull_blob_all() will now work if relative pointers are used.

metze
2009-11-20 13:48:35 +01:00
Andrew Bartlett
fd5174e88c lib/util Split data_blob_hex_string() into upper and lower
Rather than have a repeat of the bugs we found at the plugfest where
hexidecimal strings must be in upper or lower case in particular
places, ensure that each caller chooses which case they want.

This reverts most of the callers back to upper case, as things were
before tridge's patch.  The critical call in the extended DN code is
of course handled in lower case.

Andrew Bartlett
2009-11-12 16:34:01 +11:00
Volker Lendecke
dd0e16b1d5 uuid.c: Remove some dead code 2009-11-01 23:50:04 +01:00
Stefan (metze) Metzmacher
25f96a4058 Add in Metze's new code to ndr encode the user.DOSATTRIB
blobs. Next I'll change the create timestamp and dos attribute
code to use this.
2009-10-28 15:42:47 -07:00
Kamen Mazdrashki
7e8fb4ad06 s4/drs(NDR): Print implementation for drsuapi_DsReplicaOID
Custom ndr_print functions is implemented so that transmited
partia-binary-oid to be printed both in hex and
partial-oid formats
2009-10-16 12:54:13 +03:00
Kamen Mazdrashki
4bfd132b08 s4/drs(NDR): Remove push/pull code for drsuapi_DsReplicaOID struct
New structure definition is automarshaled so custom marshaling
code is not used anymore
2009-10-16 12:54:13 +03:00
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