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

114 Commits

Author SHA1 Message Date
Günther Deschner
3c31fe7600 s4-torture: make sure to deal with the highest relative pointer offset correctly.
Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
2013-02-01 19:38:07 +01:00
Günther Deschner
be8c81bfa3 s4-torture: add ndr64 spoolss_SetPrinter ndr test.
Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
2013-01-17 17:11:37 +01:00
Günther Deschner
46b6afc69b s4-torture: add ndr64 spoolss openprinterex to ndr test.
Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>

Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Wed Jan 16 13:26:53 CET 2013 on sn-devel-104
2013-01-16 13:26:53 +01:00
Günther Deschner
6cdf59d716 s4-torture: allow to do ndr tests with flags, not only ndr_flags.
Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2013-01-16 11:42:29 +01:00
Günther Deschner
4cafbb4e74 s4-torture: add ntprinting ndr operations testsuite.
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
2012-07-06 20:55:25 +02:00
Alexander Bokovoy
23aac2039d waf: support --without-ad-dc for Heimdal (embedded and system) as well
--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).
2012-06-07 16:08:02 +03:00
Günther Deschner
c17f981745 s4-torture: verify #8373 and add ndr nbt tests for LOGON_PRIMARY_QUERY nbt_netlogon_requests.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue May 29 15:49:10 CEST 2012 on sn-devel-104
2012-05-29 15:49:10 +02:00
Alexander Bokovoy
4875a12ab8 Avoid using Heimdal-specific tests in MIT build 2012-05-04 16:51:29 +02:00
David Disseldorp
2fd4be0085 s4-smbtorture: tweak spoolss_OpenPrinterEx devmode
Flip some bits after the null terminator in the spoolss device mode
character arrays to trigger bug 8606.

Signed-off-by: Jeremy Allison <jra@samba.org>
2012-01-13 09:37:36 -08:00
Günther Deschner
1781415196 s4-smbtorture: add ndr test for nbt_netlogon_packet to avoid future regressions.
Guys, we really should make sure to always add ndr tests like this whenever we
change some sensitive libndr or handmarshalling bits.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Sun Nov 20 23:10:39 CET 2011 on sn-devel-104
2011-11-20 23:10:39 +01:00
Günther Deschner
d48f08fefb s4-smbtorture: add spoolss_OpenPrinterEx ndr test with full devmode.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon Nov 14 20:21:48 CET 2011 on sn-devel-104
2011-11-14 20:21:48 +01:00
Günther Deschner
8a18edf1c2 samr: filterModuleName is a lsa_String in userPwdChangeFailureInformation.
The entire marshalling of samr_ChangePasswordUser3 broke with c2685cdedb.

Matthias, the bad effect of this change was that actually all failed password
change attempts will always return NT_STATUS_OK because the last 4 bytes (the
resulting status code) were not marshalled anymore.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Nov  9 00:41:13 CET 2011 on sn-devel-104
2011-11-09 00:41:13 +01:00
Günther Deschner
bfe084bd8b s4-smbtorture: demonstrate how broken our samr_ChangePasswordUser3 marshalling is...
Guenther
2011-11-08 23:00:40 +01:00
Günther Deschner
79ab7ac33b s4-smbtorture: add some ndr validation tests for netlogon_samlogon_response structs.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Thu Nov  3 20:08:20 CET 2011 on sn-devel-104
2011-11-03 20:08:20 +01:00
Andrew Tridgell
ad4ce31e86 torture-drs: fixed NDR tests for DRS blobs
this also adds new tests for trustAuthInOutBlob blobs

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-09-08 03:35:27 +02:00
Andrew Tridgell
bf8dd20bdd torture-ndr: fixed NDR tests for NTLMSSP blobs
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-09-08 03:35:27 +02:00
Andrew Tridgell
7416da636d torture-ndr: fixed NDR tests for NBT blobs
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-09-08 03:35:27 +02:00
Andrew Tridgell
d49f0676d0 torture-ndr: fixed NDR tests for DFS blobs
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-09-08 03:35:27 +02:00
Andrew Tridgell
430123e84e torture-ndr: added support for testing push functions
this allows us to check the symmetry of pull/push functions in NDR
tests

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-09-08 03:35:27 +02:00
Andrew Tridgell
cd8dcf6d61 s4-torture: enable password comparison in drsblobs test
I'm not sure why this was commented out, as it does pass

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-09-05 11:19:25 +02:00
Andrew Tridgell
bee8daf9a8 s4-torture: fixed a ndr string error
the dos charset global changes with the new loadparm context

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-09-05 11:19:25 +02:00
Matthias Dieter Wallnöfer
bf5e625393 s4:torture/ndr/string.c - fix type-punned warning and remove unused variables
Reviewed-by: Jelmer
2011-06-11 16:26:18 +02:00
Sean Finney
08abd1f5e8 librpc/ndr: add new LIBNDR_FLAG_STR_RAW8 for ndr_pull_string
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>
2011-06-01 00:30:40 +02:00
root
6553940c01 torture: adapt to idl evolution 2011-05-17 00:31:09 +02:00
Jelmer Vernooij
7628fb2396 source4/torture/ndr: Fix prototypes for all functions. 2011-03-19 03:20:05 +01:00
Günther Deschner
d4892f3876 s4-smbtorture: add more complex spoolss_EnumPrinterDataEx test.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Thu Feb 17 16:46:28 CET 2011 on sn-devel-104
2011-02-17 16:46:28 +01:00
Günther Deschner
1537f5dab1 s4-smbtorture: add samr_changepassworduser3 ndr torture tests.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon Jan 31 16:07:14 CET 2011 on sn-devel-104
2011-01-31 16:07:14 +01:00
Günther Deschner
8f4eee9054 s4-smbtorture: make it more obvious this are w2k dumps in netlogon ndr test.
Guenther
2011-01-31 15:16:35 +01:00
Günther Deschner
7182da7f91 s4-smbtorture: add (disabled) ndr torture test to check for a w2k samlogon reply we can't currently parse.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Fri Jan 28 16:23:30 CET 2011 on sn-devel-104
2011-01-28 16:23:30 +01:00
Günther Deschner
6957109e8d s4-smbtorture: add NDR tests for netr_LogonSamLogon.
Guenther
2011-01-28 15:37:10 +01:00
Matthieu Patou
1c6077e71e torture: add ndr tests for backup key protocol
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
2011-01-12 10:25:00 +01:00
Matthias Dieter Wallnöfer
78d12e5629 s4:torture/ndr/spoolss.c - add a "ULL" suffix for a 64 bit unsigned integer literal
To quiet a warning on Solaris

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Thu Dec 23 13:43:57 CET 2010 on sn-devel-104
2010-12-23 13:43:57 +01:00
Jelmer Vernooij
35fbc7bbda s4-smbtorture: Make test names lowercase and dot-separated.
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
2010-12-11 04:16:13 +01:00
Matthieu Patou
02f3567814 smbtorture: use xxxULL notation instead of INT64_C(xxx)
The first one is portable the second not always

Signed-off-by: Stefan Metzmacher <metze@samba.org>

Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Wed Dec  8 15:48:10 CET 2010 on sn-devel-104
2010-12-08 15:48:10 +01:00
Matthieu Patou
906e3f1297 torture: complete dfs referral tests
Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Tue Oct  5 08:01:39 UTC 2010 on sn-devel-104
2010-10-05 08:01:39 +00:00
Günther Deschner
55f465576c s4-smbtorture: add LOCAL-NDR-NTLMSSP.
Guenther
2010-09-19 20:45:19 +02:00
Günther Deschner
6f5fa763c1 s4-smbtorture: fix winreg querymultiplevalues NDR test warning.
Guenther
2010-09-17 10:02:13 +02:00
Günther Deschner
0730d982e6 s4-smbtorture: add NDR spoolss_GetPrinterDriver2 in and out check functions.
Guenther
2010-09-16 19:03:32 +02:00
Günther Deschner
809094a2c8 s4-smbtorture: finally enable most of our NDR_OUT NDR tests that we couldnt handle previously.
Guenther
2010-09-16 19:03:32 +02:00
Günther Deschner
c29b16faa8 s4-smbtorture: add functions to do NDR_OUT ndr_pull validation including NDR_IN context.
Guenther
2010-09-16 19:03:29 +02:00
Günther Deschner
5f9caf18db s4-smbtorture: fix some indentation in NDR testsuite.
Guenther
2010-09-16 16:25:51 +02:00
Günther Deschner
725126b172 s3-smbtorture: fixup trailing whitespace in ndr testsuite.
Guenther
2010-09-16 16:22:32 +02:00
Günther Deschner
567a2e68d6 s4-smbtorture: add spoolss_GetPrinterDriver2 NDR tests.
Guenther
2010-09-16 14:42:22 +02:00
Günther Deschner
1250a63435 s4-smbtorture: mention -v switch for hexdump imports into the NDR testsuites.
Guenther
2010-09-16 14:41:37 +02:00
Günther Deschner
dfe25088ba s4-smbtorture: activate spoolss_GetPrinterData NDR pull test.
Guenther
2010-09-16 14:31:53 +02:00
Günther Deschner
81ece84b78 s4-smbtorture: add torture ndr nbt testsuite.
Guenther
2010-09-08 19:35:36 +02:00
Günther Deschner
df7c7185fd s4-smbtorture: fill in trust_domain_passwords_check_in in NDR lsa test.
Guenther
2010-08-25 13:27:50 +02:00
Günther Deschner
be7bff5eb5 s4-smbtorture: remove some pointless mem_equal tests in LOCAL-NDR-WINREG testsuite.
Guenther
2010-06-29 19:57:06 +02:00
Günther Deschner
1662e383dd s4-smbtorture: add NDR torture test for winreg_QueryMultipleValues2.
Guenther
2010-06-29 12:27:08 +02:00
Günther Deschner
bf07bf2857 winreg: fix winreg_QueryMultipleValues() IDL and torture tests.
Guenther
2010-06-29 11:48:53 +02:00