summaryrefslogtreecommitdiff
path: root/source4/torture/wscript_build
AgeCommit message (Collapse)AuthorFilesLines
2025-10-16CVE-2025-9640: Add torture test for inserting hole in streamAndrew Walker1-1/+1
This commit adds an smb torture test for inserting a hole into an alternate data stream and then verifying that hole contains null bytes. BUG: https://bugzilla.samba.org/show_bug.cgi?id=15885 Signed-off-by: Andrew Walker <andrew.walker@truenas.com> Reviewed-by: Volker Lendecke <vl@samba.org>
2024-06-05s4-libnet: Split up samba-net into samba-net and samba-net-joinAndrew Bartlett1-3/+3
samba-net-join links to python and so needs the variable name with the python ABI tag, while samba-net is a normal C library and can be included in a package without python dependencies. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
2024-04-09s4:torture: Use init_lsa_String() from init_lsa.hAndreas Schneider1-0/+1
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2023-08-08s4:torture/ndr: add tests for DCERPC_PKT_CO_CANCEL and DCERPC_PKT_ORPHANEDStefan Metzmacher1-0/+1
The PDUs were generated by Windows clients. And we fail to parse them currently. BUG: https://bugzilla.samba.org/show_bug.cgi?id=15446 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
2023-07-28dcom: Remove remainder of DCOM test client codeAndrew Bartlett1-5/+0
This follows f2416493c0c779356606aebf0aceca8fa416b55c, removing the remaining parts of our DCOM effort. This can be resumed at a later time, but for now this is untested (as we have no server) and just uses build time. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2021-12-06s4:waf: Fix dependencies for TORTURE_UTILAndreas Schneider1-1/+1
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2021-08-03s4:torture: Add rpc netlogon fips testAndreas Schneider1-0/+1
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Tue Aug 3 10:18:26 UTC 2021 on sn-devel-184
2021-07-14s4-torture: add odj ndr testsuiteGünther Deschner1-0/+1
Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
2021-06-22torture: Fix build on freebsd, missing deps on cmdlineAmitay Isaacs1-3/+3
Missing dependency causes build failure on freebsd. [2928/3944] Compiling source4/torture/util_smb.c In file included from ../../source4/torture/util_smb.c:22: ../../lib/cmdline/cmdline.h:22:10: fatal error: 'popt.h' file not found ^~~~~~~~ 1 error generated. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Tue Jun 22 02:05:17 UTC 2021 on sn-devel-184
2021-06-16s4:torture: Migrate masktest to new cmdline option parserAndreas Schneider1-1/+1
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2021-06-16s4:torture: Migrate locktest to new cmdline option parserAndreas Schneider1-1/+1
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2021-06-16s4:torture: Migrate gentest to new cmdline option parserAndreas Schneider1-1/+1
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2021-06-16s4:torture: Migrate smbtorture to new cmdline option parserAndreas Schneider1-11/+11
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2020-08-21torture: Test ldap session expiryVolker Lendecke1-0/+1
LDAP connections should time out when the kerberos ticket used to authenticate expires. Windows does this with a RFC4511 section 4.4.1 message (that as of August 2020 is encoded not according to the RFC) followed by a TCP disconnect. ldb sees the section 4.4.1 as a protocol violation and returns LDB_ERR_PROTOCOL_ERROR. Bug: https://bugzilla.samba.org/show_bug.cgi?id=14465 Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2020-08-21build: Wrap a long lineVolker Lendecke1-1/+11
There will be another entry in the next commit Bug: https://bugzilla.samba.org/show_bug.cgi?id=14465 Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2020-05-24selftest: Add test for handle typesSamuel Cabrero1-0/+1
The test is written for SAMR, but as the handle type is verified by the server core library it also applies to other RPC services. Signed-off-by: Samuel Cabrero <scabrero@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2020-03-09s4-torture: add ndr svcctl testsuiteGünther Deschner1-0/+1
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14313 Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
2019-10-10librpc: Remove client and server build of rot.idlAndrew Bartlett1-1/+0
We do not have a client or server for this DCOM component so do not generate the code for it. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2019-08-21s4-rpc_server: Remove Heimdal-based BackupKey serverAndrew Bartlett1-8/+1
We rely on a modern GnuTLS now. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
2019-08-08torture: beginning of a mdssvc RPC service test-suiteRalph Boehme1-0/+1
Yikes! Most tests fail atm. Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2019-08-08torture: start of a mdssvc packet (un)marshalling testsuiteRalph Boehme1-0/+2
Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2019-07-05s4/torture: remove autoidlDouglas Bagnall1-1/+0
This has been turned off by default for 10 years (since 26e114b83ce1de7515bfbf365), and is only interesting for nostalgia purposes. Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2019-06-21s4:torture: add local.ndr.dnsp testsStefan Metzmacher1-0/+1
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13969 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
2019-05-07waf: Also check for gnutls_privkey_export_x509()Andreas Schneider1-1/+2
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2019-05-06s4-winbindd: Removed unused wb_utils.cAndrew Bartlett1-1/+0
Garming noticed this was untested code in the lcov report, and it turns out to be unused. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
2019-04-30waf: Add check for gnutls_x509_crt_set_subject_unique_id()Andreas Schneider1-1/+1
This is used by the GnuTLS backupkey implementation. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2019-03-29ldb: cmocka test for empty attributes bugAaron Haslett1-0/+9
Cmocka test exposing LDB bug where a request with an empty attributes list returns a response containing all attributes. The bug is in the ACL module and will be fixed in the next commit. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13836 Signed-off-by: Aaron Haslett <aaronhaslett@catalyst.net.nz> Reviewed-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2019-01-28lib:printer_driver: Add printer_driver library to parse printer driver inf filesGuenther Deschner1-0/+1
Pair-Programmed-With: Justin Stephenson <jstephen@redhat.com> Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Bjoern Jacke <bjacke@samba.org>
2019-01-28s4:torture: Add iremotewinspool driver torture templateJustin Stephenson1-0/+1
Add the template with setup and teardown functions for the iremotewinspool_driver torture suite, and add this to the list of torture tests Signed-off-by: Justin Stephenson <jstephen@redhat.com> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Bjoern Jacke <bjacke@samba.org>
2019-01-28s4:torture: Share test iremotewinspool functionsJustin Stephenson1-0/+6
Create iremotewinspool_common.c and iremotewinspool_common.h to make test functions available for additional tests Signed-off-by: Justin Stephenson <jstephen@redhat.com> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Bjoern Jacke <bjacke@samba.org>
2018-09-16PY3: use pyembed_libname for library names (otherwise missing deps)Noel Power1-4/+5
Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2017-11-20gpo: Add gpo testsDavid Mulder1-0/+1
Lays down a sysvol gpttmpl.inf with password policies, then runs the samba_gpoupdate command. Verifies policies are applied to the samdb. Signed-off-by: David Mulder <dmulder@suse.com> Reviewed-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2017-03-10waf: disable-python - don't build torture bitsIan Stakenvicius1-9/+19
samba-net being disabled causes a chain of dependency or proto.h-based missing code issues that require a number of modules or subsystems to be disabled in samba4/torture. Signed-off-by: Ian Stakenvicius <axs@gentoo.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
2017-01-24s4-torture: add some NDR tests for validating ndr_push_charset behavior.Günther Deschner1-0/+1
Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2017-01-11wscript: remove executable bits for all wscript* filesStefan Metzmacher1-0/+0
These files should not be executable. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Wed Jan 11 20:21:01 CET 2017 on sn-devel-144
2016-11-24s4-torture: Introduce Cabinet ndr testsuiteGünther Deschner1-0/+1
Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
2016-11-15s4-torture: add IRemoteWinspool rpc testsuite.Günther Deschner1-0/+2
Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2016-09-22s4-torture: add IRemoteWinspool ndr testsuite.Günther Deschner1-0/+1
Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2016-08-30s4/torture: tests for vfs_acl_xattr default ACL stylesRalph Boehme1-1/+1
Bug: https://bugzilla.samba.org/show_bug.cgi?id=12177 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2016-07-21s4:torture/ndr: add more krb5pac tests with PAC blobs from pkinitStefan Metzmacher1-1/+1
We validate everything except the whole LOGON_INFO structure, we even decrypt the PAC_CREDENTIALS_INFO blob and verify PAC_CREDENTIAL_DATA_NDR and PAC_CREDENTIAL_NTLM_SECPKG. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Günther Deschner <gd@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Thu Jul 21 01:07:28 CEST 2016 on sn-devel-144
2016-07-20s4-torture: add ndr krb5pac testsuite.Günther Deschner1-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>
2016-05-26drsuapi tests for DsBind with w2k8Dirk Godau1-0/+1
These are marked as known_fail pending the next patch ("Extend DsBind and DsGetDomainControllerInfo to work with w2k8"). Signed-off-by: Dirk Godau <voidswitch@gmail.com> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
2016-01-22waf: Only build the backupkey rpc test with AD DC enabledAndreas Schneider1-4/+6
Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Michael Adam <obnox@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
2016-01-13Remove public library dcerpc-atsvc.Jelmer Vernooij1-2/+2
Signed-Off-By: Jelmer Vernooij <jelmer@samba.org> Reviewed-By: Andrew Bartlett <abartlet@samba.org> Reviewed-By: Stefan Metzmacher <metze@samba.org>
2015-12-21s4-torture: add a negoex ndr pullpush test.Günther Deschner1-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
2015-12-10s4-torture: Add a GnuTLS based backupkey rpc testAndreas Schneider1-2/+5
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
2015-12-10s4-torture: Rename backupkey test to backupkey_heimdalAndreas Schneider1-1/+1
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
2015-10-23build: Enable NTVFS file server to be omittedAndrew Bartlett1-6/+8
We now only build it by default with --enable-sefltest, or otherwise if requested. The NTVFS file server still has features not present in the smbd file server, such as a CIFS/SMB proxy, and a radically different design, but it is also not undergoing any ongoing development so this keeps it in a safe state for care and maintaince, with less of a security risk if such an issue were to come up. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2015-08-04s4-torture: add ndr testsuite for complex clusapi_PROPERTY_LIST structs.Günther Deschner1-1/+20
Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: José A. Rivera <jarrpa@samba.org>
2015-07-17s4-torture: Make the backupkey test as a noop with MIT Kerberos.Andreas Schneider1-8/+9
The test is planned but will be skipped in the MIT case this way. We need to rewrite the test using a proper cryto/tls library. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>