summaryrefslogtreecommitdiff
path: root/source4/torture/ndr/ndr.c
Commit message (Collapse)AuthorAgeFilesLines
* s4-torture: add some NDR tests for validating ndr_push_charset behavior.Günther Deschner2017-01-241-0/+1
| | | | | | | Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* s4-torture: better, failing, tests for GUID_from_stringDouglas Bagnall2016-12-141-9/+55
| | | | | | | | | | | | | | | | | | | | | | These tests reveal that the current implementation accepts all kinds of invalid GUIDs. In particular, we fail on these ones: "00000001-0002-0003-0405--060708090a0" "-0000001-0002-0003-0405-060708090a0b" "-0000001-0002-0003-04-5-060708090a0b" "d0000001-0002-0003-0405-060708090a-b" "00000001- -2-0003-0405-060708090a0b" "00000001-0002-0003-0405- 060708090a0" "0x000001-0002-0003-0405-060708090a0b" "00000001-0x02-0x03-0405-060708090a0b" This test is added to selftest/knownfail. The test for valid string GUIDs is extended to test upper and mixed case GUIDs. Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* s4-torture: Introduce Cabinet ndr testsuiteGünther Deschner2016-11-241-0/+1
| | | | | | | Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* s4-torture: add IRemoteWinspool ndr testsuite.Günther Deschner2016-09-221-0/+1
| | | | | | | Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* torture: Add tests for ndr_push_struct_into_fixed_blob()Andrew Bartlett2016-07-281-0/+110
| | | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
* s4-torture: add ndr krb5pac testsuite.Günther Deschner2016-07-201-0/+1
| | | | | | | | | | Someone changed the PAC buffer union without adding proper tests, now we sometimes fail to parse the PAC completely due to that... Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* dlist: remove unneeded type argument from DLIST_ADD_END()Michael Adam2016-02-061-2/+2
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s4-torture: add a negoex ndr pullpush test.Günther Deschner2015-12-211-0/+1
| | | | | | | | | | Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Mon Dec 21 01:37:29 CET 2015 on sn-devel-144
* s4-torture: add ndr testsuite for complex clusapi_PROPERTY_LIST structs.Günther Deschner2015-08-041-0/+1
| | | | | | | Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: José A. Rivera <jarrpa@samba.org>
* s4-torture: add torture_ndr_push_struct_blob_flags() in order to manipulate ↵Günther Deschner2015-07-031-1/+18
| | | | | | | | | push flags. Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* s4-torture: add witness torture ndr testsuite.Günther Deschner2015-04-131-0/+1
| | | | | | | Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* s4-torture: Always compile backupkey ndr testsuite.Günther Deschner2013-05-291-2/+0
| | | | | | | | | | | | | This removes another incorrect AD_DC_BUILD_IS_ENABLED check ifdef check. The ndr test is not at all heimdal specific. Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org> Autobuild-User(master): Alexander Bokovoy <ab@samba.org> Autobuild-Date(master): Wed May 29 11:29:51 CEST 2013 on sn-devel-104
* s4-torture: make sure to deal with the highest relative pointer offset ↵Günther Deschner2013-02-011-6/+26
| | | | | | | | | correctly. Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* s4-torture: allow to do ndr tests with flags, not only ndr_flags.Günther Deschner2013-01-161-0/+5
| | | | | | | Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* s4-torture: add ntprinting ndr operations testsuite.Günther Deschner2012-07-061-0/+1
| | | | | | | Guenther Autobuild-User(master): Günther Deschner <gd@samba.org> Autobuild-Date(master): Fri Jul 6 20:55:26 CEST 2012 on sn-devel-104
* waf: support --without-ad-dc for Heimdal (embedded and system) as wellAlexander Bokovoy2012-06-071-1/+1
| | | | | | --without-ad-dc was hardwired to mean --with-system-mitkrb5. With this change it also possible to build source3/ code and source4/ client side without building AD DC functionality using Heimdal (embedded or system).
* Avoid using Heimdal-specific tests in MIT buildAlexander Bokovoy2012-05-041-0/+2
|
* torture-ndr: added support for testing push functionsAndrew Tridgell2011-09-081-16/+34
| | | | | | | this allows us to check the symmetry of pull/push functions in NDR tests Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* librpc/ndr: add new LIBNDR_FLAG_STR_RAW8 for ndr_pull_stringSean Finney2011-06-011-0/+1
| | | | | | | | | | | | | | | | | | | | Introduce a new flag, LIBNDR_FLAG_STR_RAW8, which indicates that libndr should not attempt to convert the corresponding byte sequence, and place the responsibility on the caller to do so later. This is needed in cases where the string is known to be 8-bit and either NULL terminated or of known length, but in an unspecified character set. For example, when pulling PT_STRING8 properties from an exchange server via libmapi + libndr, the codepage is neither known nor in the control of the caller, and is determined by subsequent properties requested from the server. Therefore the client would like to fetch all properties in one large batch, and convert the resulting strings locally. This commit also includes some (basic) tests of each of the flags' respective behaviors with the ndr push/pull string functions, in a new source4 torture test suite ndr.ndr_string. Signed-off-by: Sean Finney <seanius@seanius.net>
* torture: add ndr tests for backup key protocolMatthieu Patou2011-01-121-0/+1
| | | | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Jan 12 10:25:00 CET 2011 on sn-devel-104
* s4-smbtorture: Make test names lowercase and dot-separated.Jelmer Vernooij2010-12-111-1/+1
| | | | | | | | This is consistent with the test names used by selftest, should make the names less confusing and easier to integrate with other tools. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Dec 11 04:16:13 CET 2010 on sn-devel-104
* s4-smbtorture: add LOCAL-NDR-NTLMSSP.Günther Deschner2010-09-191-0/+1
| | | | Guenther
* s4-smbtorture: add functions to do NDR_OUT ndr_pull validation including ↵Günther Deschner2010-09-161-0/+83
| | | | | | NDR_IN context. Guenther
* s4-smbtorture: fix some indentation in NDR testsuite.Günther Deschner2010-09-161-28/+30
| | | | Guenther
* s3-smbtorture: fixup trailing whitespace in ndr testsuite.Günther Deschner2010-09-161-29/+29
| | | | Guenther
* s4-smbtorture: add torture ndr nbt testsuite.Günther Deschner2010-09-081-0/+1
| | | | Guenther
* Finish removal of iconv_convenience in public API's.Jelmer Vernooij2010-05-181-3/+3
|
* s4-smbtorture: add drsblobs ndr torture test.Günther Deschner2010-03-241-0/+1
| | | | Guenther
* s4-torture: update uuid_compare test for new behaviourAndrew Tridgell2009-12-211-2/+11
|
* torture: add new tests for dfsblobsMatthieu Patou2009-12-141-0/+1
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4-torture: ran minimal_includes.pl over source4/tortureAndrew Tridgell2009-10-201-1/+0
| | | | This reduces compile time somewhat.
* Add TALLOC_CTX pointer to strhex_to_data_blob for consistency with SambaJelmer Vernooij2008-10-181-2/+2
| | | | 3.
* Fix include paths to new location of libutil.Jelmer Vernooij2008-10-111-1/+1
|
* Move subunit infrastructure code into lib/torture.Jelmer Vernooij2008-04-271-1/+1
| | | | (This used to be commit 5b44d8121de7735d69e6238a1442aff034a8ebd3)
* r26432: Require ndr_pull users to specify iconv_convenience.Jelmer Vernooij2007-12-211-3/+4
| | | | (This used to be commit 28b1d36551b75241c1cf9fca5d74f45a6dc884ab)
* r25920: ndr: change NTSTAUS into enum ndr_err_code (samba4 callers)Stefan Metzmacher2007-12-211-10/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | lib/messaging/ lib/registry/ lib/ldb-samba/ librpc/rpc/ auth/auth_winbind.c auth/gensec/ auth/kerberos/ dsdb/repl/ dsdb/samdb/ dsdb/schema/ torture/ cluster/ctdb/ kdc/ ntvfs/ipc/ torture/rap/ ntvfs/ utils/getntacl.c ntptr/ smb_server/ libcli/wrepl/ wrepl_server/ libcli/cldap/ libcli/dgram/ libcli/ldap/ libcli/raw/ libcli/nbt/ libnet/ winbind/ rpc_server/ metze (This used to be commit 6223c7fddc972687eb577e04fc1c8e0604c35435)
* r25035: Fix some more warnings, use service pointer rather than service ↵Jelmer Vernooij2007-10-101-1/+1
| | | | | | number in more places. (This used to be commit df9cebcb97e20564359097148665bd519f31bc6f)
* r23792: convert Samba4 to GPLv3Andrew Tridgell2007-10-101-3/+2
| | | | | | There are still a few tidyups of old FSF addresses to come (in both s3 and s4). More commits soon. (This used to be commit fcf38a38ac691abd0fa51b89dc951a08e89fdafa)
* r21674: Fix argumentJelmer Vernooij2007-10-101-2/+2
| | | | (This used to be commit 43e1cccf112f850cb70ab78f56ea1d0c233e45fa)
* r21658: Add some tests for SAMR NDRJelmer Vernooij2007-10-101-0/+1
| | | | (This used to be commit a36912721ae84d3a1702bd83d735cc1097968f46)
* r21423: Extend testsuite, check that all bytes have been consumed. DsBind ↵Jelmer Vernooij2007-10-101-0/+5
| | | | | | fails that test, so disabling it for now. (This used to be commit d6026c2046a26f42ca0cd6ebf1f45488fbfb22e1)
* r21415: Add tests for spoolss and drsuapi. Still need to add validators.Jelmer Vernooij2007-10-101-0/+2
| | | | (This used to be commit 61cb52b65b9be2fd09a5c5a02536600c0ac500f7)
* r21403: Add netlogon tests.Jelmer Vernooij2007-10-101-0/+1
| | | | (This used to be commit a620dc359476de9440f3b84dc8b45f569d103270)
* r21386: Run all NDR tests in the buildfarm, import some functions from ↵Jelmer Vernooij2007-10-101-3/+181
| | | | | | Samba3's IDL. (This used to be commit 15a4b81ba0b5eeb25126a0b1a7bea7d3bf921ab2)
* r21381: dfs tests.Jelmer Vernooij2007-10-101-1/+5
| | | | (This used to be commit 3ef8a6834df63a0bfa68996daea6432e98243d40)
* r21378: Add simple NDR epmap test.Jelmer Vernooij2007-10-101-0/+1
| | | | (This used to be commit b29170c8eaafa3a573b0e26efecd6cacd68250b6)
* r21374: lsa testsJelmer Vernooij2007-10-101-0/+1
| | | | (This used to be commit bfc2a1c50596ac3aee871de63fdd99362a65d7d8)
* r21373: More tests.Jelmer Vernooij2007-10-101-0/+1
| | | | (This used to be commit 83a47e30b59f5289cdcb68ba54aa236795bc42b2)
* r21347: All current tests in the testsuite mainly test the RPC code in ↵Jelmer Vernooij2007-10-101-0/+94
general. Since we're running the testsuite mainly against ourselves, we only check that the push/pull functions work in our own environment, not whether they generate/parse the same data that other systems do. This commit adds the infrastructure for a testsuite for just the marshalling code. The idea is that you provide a data blob, a function name and a function to check the resulting struct for correctness. (This used to be commit 9bd2421e44dcfcaf08ad61cf25bb7714cf885517)