gd/samba-autobuild/.git
4 years agosmbtree: Align integer types
Volker Lendecke [Sun, 5 Apr 2020 11:02:12 +0000 (13:02 +0200)]
smbtree: Align integer types

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Wed Apr  8 16:22:17 UTC 2020 on sn-devel-184

4 years agolibsmb: Move get_ipc_connect_master_ip_bcast() to smbtree.c
Volker Lendecke [Sun, 5 Apr 2020 11:01:07 +0000 (13:01 +0200)]
libsmb: Move get_ipc_connect_master_ip_bcast() to smbtree.c

... the only user

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agolibsmb: Remove unused cli_NetWkstaUserLogon()
Volker Lendecke [Sun, 5 Apr 2020 10:38:01 +0000 (12:38 +0200)]
libsmb: Remove unused cli_NetWkstaUserLogon()

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agosmbclient: Simplify browse_host()
Volker Lendecke [Sun, 5 Apr 2020 10:31:24 +0000 (12:31 +0200)]
smbclient: Simplify browse_host()

We now have the check of the real connection's prootocol, so the
smb.conf's "client min protocol" does not really matter here

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agolibsmb: Respect the full timeval for smbc_utimes()
Volker Lendecke [Mon, 30 Mar 2020 19:43:51 +0000 (21:43 +0200)]
libsmb: Respect the full timeval for smbc_utimes()

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agotorture: Test smbc_utimes()
Volker Lendecke [Mon, 30 Mar 2020 20:08:40 +0000 (22:08 +0200)]
torture: Test smbc_utimes()

Prove that smbc_utimes throws away the tv_nsec field

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agolibsmbclient: Don't throw away nsec fields in stat()
Volker Lendecke [Tue, 31 Mar 2020 09:10:55 +0000 (11:10 +0200)]
libsmbclient: Don't throw away nsec fields in stat()

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agolibsmb: Remove unused cli_setpathinfo_basic()
Volker Lendecke [Thu, 26 Mar 2020 13:46:32 +0000 (14:46 +0100)]
libsmb: Remove unused cli_setpathinfo_basic()

We got beyond 1-sec timestamp resolution a while ago...

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agolibsmb: Call cli_setpathinfo_ext() instead of .._basic()
Volker Lendecke [Thu, 26 Mar 2020 13:42:39 +0000 (14:42 +0100)]
libsmb: Call cli_setpathinfo_ext() instead of .._basic()

Yes, the formatting is not according to README.Coding, but that's a
patch for another day.

Also, this is no functional change: All callers so far either set
.tv_sec only or set .tv_nsec to SAMBA_UTIME_OMIT.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agolibsmb: Pass "struct timespec" to SMBC_setatr()
Volker Lendecke [Thu, 26 Mar 2020 11:29:13 +0000 (12:29 +0100)]
libsmb: Pass "struct timespec" to SMBC_setatr()

Prepare to set higher-precision timestamps. No change in behaviour so
far: The {.tv_nsec=SAMBA_UTIME_OMIT} implicitly sets .tv_sec=0, and
SMBC_setatr() only looks at .tv_sec

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agosmbtorture3: Call cli_setpathinfo_ext() instead of .._basic()
Volker Lendecke [Thu, 26 Mar 2020 13:38:45 +0000 (14:38 +0100)]
smbtorture3: Call cli_setpathinfo_ext() instead of .._basic()

The timestamps were never looked at

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agolibsmb: Make cli_setpathinfo_ext() take structs instead of pointers
Volker Lendecke [Thu, 26 Mar 2020 13:33:58 +0000 (14:33 +0100)]
libsmb: Make cli_setpathinfo_ext() take structs instead of pointers

This simplifies the next commit: With direct (small) structs on the
stack we don't need declared variables in the callers

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agolibsmb: Use cli_setfileinfo_send() in cli_ftruncate_send()
Volker Lendecke [Mon, 30 Mar 2020 13:19:34 +0000 (15:19 +0200)]
libsmb: Use cli_setfileinfo_send() in cli_ftruncate_send()

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agolibsmb: Use cli_setfilefinfo_send() in cli_nt_delete_on_close_send()
Volker Lendecke [Mon, 30 Mar 2020 13:16:02 +0000 (15:16 +0200)]
libsmb: Use cli_setfilefinfo_send() in cli_nt_delete_on_close_send()

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agolibsmb: Add cli_setfileinfo_send/recv()
Volker Lendecke [Mon, 30 Mar 2020 13:12:48 +0000 (15:12 +0200)]
libsmb: Add cli_setfileinfo_send/recv()

Encapsulate TRANSACT2_SETFILEINFO like cli_setpathinfo_send() does for
TRANSACT2_SETPATHINFO.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agosmbclient: Remove function set_remote_times()
Volker Lendecke [Thu, 26 Mar 2020 13:24:14 +0000 (14:24 +0100)]
smbclient: Remove function set_remote_times()

This was just a wrapper around cli_setpathinfo_ext() with just one
caller

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agosmbclient: Remove some unnecessary declarations
Volker Lendecke [Thu, 26 Mar 2020 13:21:15 +0000 (14:21 +0100)]
smbclient: Remove some unnecessary declarations

"cmd_ptr" is a global variable in this file anyway

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agotorture4: Allow DBG output in libsmbclient tests
Volker Lendecke [Tue, 31 Mar 2020 06:32:10 +0000 (08:32 +0200)]
torture4: Allow DBG output in libsmbclient tests

smbc_new_context() overwrites the global DEBUGLEVEL to 0.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agolib: Avoid casts in ctdb_packet_dump()
Volker Lendecke [Fri, 20 Mar 2020 12:27:43 +0000 (13:27 +0100)]
lib: Avoid casts in ctdb_packet_dump()

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agolibsmb: Remove a typedef
Volker Lendecke [Wed, 25 Mar 2020 21:06:37 +0000 (22:06 +0100)]
libsmb: Remove a typedef

No API change, this is not used publically

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agolib: Fix a signed/unsigned warning
Volker Lendecke [Thu, 12 Mar 2020 12:34:43 +0000 (13:34 +0100)]
lib: Fix a signed/unsigned warning

The types are deliberately distinct, but nwritten is >0 or ==-1, so
this should be okay.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agogitlab-ci: Add runner for fips compliance testing
Andreas Schneider [Fri, 3 Apr 2020 09:19:17 +0000 (11:19 +0200)]
gitlab-ci: Add runner for fips compliance testing

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Wed Apr  8 14:45:18 UTC 2020 on sn-devel-184

4 years agoselftest: Force fips mode for openssl in ad_dc_fips
Andreas Schneider [Mon, 16 Mar 2020 08:39:48 +0000 (09:39 +0100)]
selftest: Force fips mode for openssl in ad_dc_fips

This allows us to test MIT KRB5 and OpenLDAP in FIPS mode.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
4 years agotests: Add test to check the server doesn't allow NTLM
Andreas Schneider [Fri, 13 Mar 2020 15:15:52 +0000 (16:15 +0100)]
tests: Add test to check the server doesn't allow NTLM

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
4 years agoselftest: Start ad_dc_fips with forced fips mode
Andreas Schneider [Fri, 13 Mar 2020 13:36:18 +0000 (14:36 +0100)]
selftest: Start ad_dc_fips with forced fips mode

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
4 years agoselftest: Pass force_fips_mode to provision_raw_prepare()
Andreas Schneider [Fri, 13 Mar 2020 13:33:08 +0000 (14:33 +0100)]
selftest: Pass force_fips_mode to provision_raw_prepare()

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
4 years agoselftest: Pass force_fips to provision()
Andreas Schneider [Fri, 13 Mar 2020 13:29:48 +0000 (14:29 +0100)]
selftest: Pass force_fips to provision()

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
4 years agoselftest: Pass force_fips_mode to provision_ad_dc()
Andreas Schneider [Fri, 13 Mar 2020 13:26:33 +0000 (14:26 +0100)]
selftest: Pass force_fips_mode to provision_ad_dc()

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
4 years agoselftest: Pass extra_provision_options to provision_raw_prepare()
Andreas Schneider [Fri, 13 Mar 2020 12:58:57 +0000 (13:58 +0100)]
selftest: Pass extra_provision_options to provision_raw_prepare()

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
4 years agoselftest: Add an ad_dc_fips environment
Andreas Schneider [Fri, 13 Mar 2020 11:39:54 +0000 (12:39 +0100)]
selftest: Add an ad_dc_fips environment

This is not FIPS ready yet.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
4 years agos4:tls: Fix generating TLS RSA certs with FIPS140-2
Andreas Schneider [Fri, 13 Mar 2020 14:32:27 +0000 (15:32 +0100)]
s4:tls: Fix generating TLS RSA certs with FIPS140-2

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
4 years agos4:samdb: Do not create WDdigests for HTTP if weak crypto is disabled
Andreas Schneider [Wed, 15 May 2019 06:46:56 +0000 (08:46 +0200)]
s4:samdb: Do not create WDdigests for HTTP if weak crypto is disabled

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
4 years agolib ldb: lmdb init var before calling mdb_reader_check
Gary Lockyer [Tue, 31 Mar 2020 19:22:08 +0000 (08:22 +1300)]
lib ldb: lmdb init var before calling mdb_reader_check

Initilalise "stale" to zero before passing a pointer to it to
mdb_reader_check.

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Tue Apr  7 12:29:00 UTC 2020 on sn-devel-184

4 years agoctdb-vacuum: Reschedule vacuum event if VacuumInterval has increased
Martin Schwenke [Thu, 2 Apr 2020 03:42:21 +0000 (14:42 +1100)]
ctdb-vacuum: Reschedule vacuum event if VacuumInterval has increased

The vacuuming integration tests set VacuumInterval to a very high
number to avoid vacuuming collisions.  This is done after the cluster
is healthy, so Samba will have already been started and vacuuming will
already be scheduled *at the default interval* for databases attached
by Samba.  This means that vacuuming controls used by vacuuming tests
can still collide with the scheduled vacuuming events.

Add some logic to reschedule a vacuuming event that has fired but
where VacuumInterval has increased since it was originally scheduled.
The increase in VacuumInterval is used as the time offset for
rescheduling the event.

Although this changes production behaviour for the convenience of
testing, the new behaviour is completely reasonable and obeys the
principle of least surprise.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Autobuild-User(master): Amitay Isaacs <amitay@samba.org>
Autobuild-Date(master): Tue Apr  7 03:04:57 UTC 2020 on sn-devel-184

4 years agoctdb-vacuum: Store value of VacuumInterval in ctdb_vacuum_handle
Martin Schwenke [Fri, 27 Mar 2020 03:38:09 +0000 (14:38 +1100)]
ctdb-vacuum: Store value of VacuumInterval in ctdb_vacuum_handle

No behaviour change.  This is final staging to make the next change
completely obvious.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
4 years agoctdb-vacuum: Use vacuum_handle local variables
Martin Schwenke [Thu, 2 Apr 2020 03:18:33 +0000 (14:18 +1100)]
ctdb-vacuum: Use vacuum_handle local variables

No behaviour change.  This just makes future changes clearer by
avoiding reformatting (or introducing local variables).

Clean up error handling while touching a relevant line.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
4 years agotestprogs: Add 'net ads join createupn' test also verifying the keytab
Andreas Schneider [Fri, 3 Apr 2020 13:40:48 +0000 (15:40 +0200)]
testprogs: Add 'net ads join createupn' test also verifying the keytab

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14336

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Mon Apr  6 19:09:53 UTC 2020 on sn-devel-184

4 years agos3:libads: Fix ads_get_upn()
Andreas Schneider [Fri, 3 Apr 2020 13:58:28 +0000 (15:58 +0200)]
s3:libads: Fix ads_get_upn()

This adds the userPrincipalName to ads_find_machine_acct() which
fetches the data for us.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14336

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
4 years agothird_party: Update nss_wrapper to version 1.1.11
Andreas Schneider [Thu, 2 Apr 2020 11:43:44 +0000 (13:43 +0200)]
third_party: Update nss_wrapper to version 1.1.11

This fixes strict aliasing which leads to segfaults on certain
architectures, e.g. armv7hl.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Samuel Cabrero <scabrero@samba.org>
Autobuild-User(master): Samuel Cabrero <scabrero@samba.org>
Autobuild-Date(master): Mon Apr  6 17:34:53 UTC 2020 on sn-devel-184

4 years agoselftest: add two more nbt.dgram flapping tests
Ralph Boehme [Mon, 6 Apr 2020 09:03:13 +0000 (11:03 +0200)]
selftest: add two more nbt.dgram flapping tests

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Noel Power <noel.power@suse.com>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Mon Apr  6 10:43:18 UTC 2020 on sn-devel-184

4 years agoselftest: remove unnecessary .* from flapping enty
Ralph Boehme [Mon, 6 Apr 2020 09:02:14 +0000 (11:02 +0200)]
selftest: remove unnecessary .* from flapping enty

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Noel Power <noel.power@suse.com>
4 years agogitlab-ci: Add coverity scan runner
Andreas Schneider [Mon, 30 Mar 2020 09:52:05 +0000 (11:52 +0200)]
gitlab-ci: Add coverity scan runner

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agoselftest/flapping: mark samba3.nbt.dgram.netlogon.* as flapping
Noel Power [Fri, 3 Apr 2020 15:05:37 +0000 (16:05 +0100)]
selftest/flapping: mark samba3.nbt.dgram.netlogon.* as flapping

Post SMB1/SMB2 test env split to help in removing smb1
samba3.nbt.dgram.netlogon* fails randomly. It is unrelated as far
as we can see to the changes but must be a side affect of runtime
order or some such.

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Noel Power <npower@samba.org>
Autobuild-Date(master): Sat Apr  4 01:12:05 UTC 2020 on sn-devel-184

4 years agosmbd: move files_struct.lock_failure_seen to a bitfield
Ralph Boehme [Fri, 3 Apr 2020 07:48:58 +0000 (09:48 +0200)]
smbd: move files_struct.lock_failure_seen to a bitfield

Updated comment in vfs.h explaining ABI change.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Fri Apr  3 20:41:34 UTC 2020 on sn-devel-184

4 years agosmbd: move files_struct.closing to a bitfield
Ralph Boehme [Fri, 3 Apr 2020 06:06:27 +0000 (08:06 +0200)]
smbd: move files_struct.closing to a bitfield

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
4 years agosmbd: move files_struct.use_ofd_locks to a bitfield
Ralph Boehme [Fri, 3 Apr 2020 06:02:23 +0000 (08:02 +0200)]
smbd: move files_struct.use_ofd_locks to a bitfield

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
4 years agosmbd: move files_struct.backup_intent to a bitfield
Ralph Boehme [Fri, 3 Apr 2020 06:01:45 +0000 (08:01 +0200)]
smbd: move files_struct.backup_intent to a bitfield

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
4 years agosmbd: move files_struct.is_sparse to a bitfield
Ralph Boehme [Fri, 3 Apr 2020 05:52:10 +0000 (07:52 +0200)]
smbd: move files_struct.is_sparse to a bitfield

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
4 years agosmbd: move files_struct.delete_on_close to a bitfield
Ralph Boehme [Fri, 3 Apr 2020 05:48:08 +0000 (07:48 +0200)]
smbd: move files_struct.delete_on_close to a bitfield

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
4 years agosmbd: move files_struct.initial_delete_on_close to a bitfield
Ralph Boehme [Fri, 3 Apr 2020 05:43:38 +0000 (07:43 +0200)]
smbd: move files_struct.initial_delete_on_close to a bitfield

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
4 years agosmbd: move files_struct.aio_write_behind to a bitfield
Ralph Boehme [Fri, 3 Apr 2020 05:39:34 +0000 (07:39 +0200)]
smbd: move files_struct.aio_write_behind to a bitfield

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
4 years agosmbd: move files_struct.is_directory to a bitfield
Ralph Boehme [Thu, 2 Apr 2020 16:21:11 +0000 (18:21 +0200)]
smbd: move files_struct.is_directory to a bitfield

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
4 years agosmbd: move files_struct.modified to a bitfield
Ralph Boehme [Thu, 2 Apr 2020 15:37:02 +0000 (17:37 +0200)]
smbd: move files_struct.modified to a bitfield

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
4 years agosmbd: move files_struct.can_write to a bitfield
Ralph Boehme [Thu, 2 Apr 2020 15:28:32 +0000 (17:28 +0200)]
smbd: move files_struct.can_write to a bitfield

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
4 years agosmbd: move files_struct.can_read to a bitfield
Ralph Boehme [Thu, 2 Apr 2020 15:18:43 +0000 (17:18 +0200)]
smbd: move files_struct.can_read to a bitfield

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
4 years agosmbd: move files_struct.can_lock to a bitfield
Ralph Boehme [Thu, 2 Apr 2020 15:09:36 +0000 (17:09 +0200)]
smbd: move files_struct.can_lock to a bitfield

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
4 years agosmbd: move files_struct.write_time_forced to a bitfield
Ralph Boehme [Thu, 2 Apr 2020 13:39:32 +0000 (15:39 +0200)]
smbd: move files_struct.write_time_forced to a bitfield

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
4 years agosmbd: move files_struct.update_write_time_on_close to a bitfield
Ralph Boehme [Thu, 2 Apr 2020 13:37:15 +0000 (15:37 +0200)]
smbd: move files_struct.update_write_time_on_close to a bitfield

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
4 years agosmbd: move files_struct.update_write_time_triggered to a bitfield
Ralph Boehme [Thu, 2 Apr 2020 13:31:10 +0000 (15:31 +0200)]
smbd: move files_struct.update_write_time_triggered to a bitfield

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
4 years agosmbd: move files_struct.kernel_share_modes_taken to a bitfield
Ralph Boehme [Wed, 1 Apr 2020 09:59:10 +0000 (11:59 +0200)]
smbd: move files_struct.kernel_share_modes_taken to a bitfield

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
4 years agosmbd: reindent if expression in real_write_file()
Ralph Boehme [Thu, 2 Apr 2020 08:29:15 +0000 (10:29 +0200)]
smbd: reindent if expression in real_write_file()

No change in behaviour.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
4 years agosmbd: fix if expression that checks when to call vfs_fill_sparse()
Ralph Boehme [Thu, 2 Apr 2020 08:27:21 +0000 (10:27 +0200)]
smbd: fix if expression that checks when to call vfs_fill_sparse()

Noone complained so far, skip bugreport.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
4 years agosmbd: reformat an if expression in smbd_smb2_close()
Ralph Boehme [Thu, 2 Apr 2020 07:56:46 +0000 (09:56 +0200)]
smbd: reformat an if expression in smbd_smb2_close()

No change in behavour.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
4 years agosmbd: reformat a function call in rename_internals_fsp()
Ralph Boehme [Thu, 2 Apr 2020 07:23:22 +0000 (09:23 +0200)]
smbd: reformat a function call in rename_internals_fsp()

No change in behaviour.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
4 years agosmbd: reformat an if expression in reply_readbraw()
Ralph Boehme [Thu, 2 Apr 2020 07:13:56 +0000 (09:13 +0200)]
smbd: reformat an if expression in reply_readbraw()

No change in behaviour.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
4 years agosmbd: reformat calling ensure_canon_entry_valid_on_set() in unpack_canon_ace()
Ralph Boehme [Thu, 2 Apr 2020 06:16:33 +0000 (08:16 +0200)]
smbd: reformat calling ensure_canon_entry_valid_on_set() in unpack_canon_ace()

No change in behaviour.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
4 years agosmbd: CHECK_WRITE macro reformatting
Ralph Boehme [Wed, 1 Apr 2020 13:19:51 +0000 (15:19 +0200)]
smbd: CHECK_WRITE macro reformatting

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
4 years agosmbd: CHECK_READ_IOCTL macro reformatting
Ralph Boehme [Wed, 1 Apr 2020 13:08:50 +0000 (15:08 +0200)]
smbd: CHECK_READ_IOCTL macro reformatting

A subsequent commit will replace can_read with something much longer.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
4 years agosmbd: CHECK_READ_SMB2 macro reformatting
Ralph Boehme [Wed, 1 Apr 2020 13:08:50 +0000 (15:08 +0200)]
smbd: CHECK_READ_SMB2 macro reformatting

A subsequent commit will replace can_read with something much longer.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
4 years agosmbd: CHECK_READ macro reformatting
Ralph Boehme [Wed, 1 Apr 2020 13:08:50 +0000 (15:08 +0200)]
smbd: CHECK_READ macro reformatting

A subsequent commit will replace can_read with something much longer.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
4 years agoselftest: Add list of tests to be ported
Noel Power [Thu, 5 Mar 2020 11:46:37 +0000 (11:46 +0000)]
selftest: Add list of tests to be ported

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Fri Apr  3 16:45:48 UTC 2020 on sn-devel-184

4 years agoselftest: Don't skip smb1 tests and remove associate skip file
Noel Power [Tue, 10 Dec 2019 16:10:20 +0000 (16:10 +0000)]
selftest: Don't skip smb1 tests and remove associate skip file

remove the skip file and the code to use it from the build as
all tests now run in either specific smb1 enabled envs or normal
(non smb1) envs

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agoselftest: Create instructions for generating skip file entries
Noel Power [Fri, 6 Dec 2019 07:50:24 +0000 (07:50 +0000)]
selftest: Create instructions for generating skip file entries

create_smb1_fail_skipfile.txt provides both
  + instructions
  + patch to perform the pre-requisite steps to be able to
    modify the environment and parse test output

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agoselftest/knownfail.d: samba3.blackbox.smbclient_basic.NT1.smbclient
Noel Power [Fri, 20 Dec 2019 12:49:08 +0000 (12:49 +0000)]
selftest/knownfail.d: samba3.blackbox.smbclient_basic.NT1.smbclient

Add known fail for samba3.blackbox.smbclient_basic.NT1.smbclient
which fails against nt4_schannel (because it doesn't support
SMB1)

Additionally since we don't have plans to create a nt4_schannel_smb1
test env provide additional coverage by running this test against
nt4_dc_smb1 (which still support SMB1)

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agoselftest/knownfail.d: Add samba4.blackbox.smbclient
Noel Power [Thu, 19 Dec 2019 18:39:09 +0000 (18:39 +0000)]
selftest/knownfail.d: Add samba4.blackbox.smbclient

This test fails for admember & chgdcpass test envs because they
don't support SMB1

Note: There is some coverage for this test with other test envs e.g.
      s4member, ad_dc_ntvfs & others

Additionally IIUC this test seems to be for testing smbclient4
(if this assumption is incorrect then we could substitute with
smbclient(s3)) However, for the moment it seems best to disable this
test as smbclient4 doesn't support SMB1 and we have sufficient coverage
with other SMB1 supporting envs

Also remove associated entries from skip_smb1_fail

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agoselftest/knownfail.d: Add samba4.smb.signing disabled
Noel Power [Thu, 19 Dec 2019 18:37:28 +0000 (18:37 +0000)]
selftest/knownfail.d: Add samba4.smb.signing disabled

Add know fail for these tests that run against ad_member
which won't succeed because SMB1 isn't supported

However we do have some coverage with s4member (which depends on
ad_dc_ntvfs) which still supports SMB1.

Additionally remove the associated entries from skip_smb1_fail

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agoselftest/knownfail.d: Add entries for samba3.unix.whoami
Noel Power [Thu, 19 Dec 2019 18:10:02 +0000 (18:10 +0000)]
selftest/knownfail.d: Add entries for samba3.unix.whoami

samba3.unix.whoami depends of posix extensions which
currently only work with SMB1. These tests fail with
environments nt4_member & ad_member. We currently don't
have plans to provide '_smb1' variants of these environments.

So in addition to adding the knownfail we add some
coverage by running this test with test env ad_dc_smb1.

Also we remove the associated entries from skip_smb1_fail

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agoselftest/knownfail.d: Add samba3.blackbox.smbclient_s3.NT1
Noel Power [Thu, 19 Dec 2019 16:39:00 +0000 (16:39 +0000)]
selftest/knownfail.d: Add samba3.blackbox.smbclient_s3.NT1

samba3.blackbox.smbclient_s3.NT1.plain &
samba3.blackbox.smbclient_s3.NT1.sign tests will fail running against
test envs ad_member & nt4_member (because those envs don't support SMB1)

However we do have some coverage with nt4_dc_smb1_done

We could maybe just delete these tests for those environments for
the moment just create specific knownfail entries and remove associated
entries from skip_smb1_fail

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agoselftest/knownfail.d knownfail samba3.blackbox.smbclient_auth.plain
Noel Power [Thu, 19 Dec 2019 17:43:10 +0000 (17:43 +0000)]
selftest/knownfail.d knownfail samba3.blackbox.smbclient_auth.plain

samba3.blackbox.smbclient_auth.plain will fail against
ad_member & nt4_member (because these envs don't
support SMB1) so we don't run these tests where either
'LANMAN2' or 'NT1' are in the options, in these cases
to get coverage so we use nt4_dc_smb1

Creating new envs for such a small amount of strictly SMB1 tests anyway
seems overkill. For the moment just create specific knownfail entries
and remove the associated entries from skip_smb1_fail

Signed-off-by: Noel Power <npower@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agoselftest/knownfail.d Add samba3.blackbox.smbclient_ntlm.plain (NT1)
Noel Power [Thu, 19 Dec 2019 15:55:22 +0000 (15:55 +0000)]
selftest/knownfail.d Add samba3.blackbox.smbclient_ntlm.plain (NT1)

NT1 flavour of samba3.blackbox.smbclient_ntlm.plain tests will
fail against ad_member, maptoguest, fl2000dc & nt4_member
(because these envs don't support SMB1)

We do however have some coverage with test envs
nt4_dc_smb1_done & ad_dc_ntvfs.

We could maybe just delete these tests for these environments,
creating new envs for such a small amount of strictly SMB1 tests anyway
seem overkill. For the moment just create specific knownfail entries

associated entries from skip_smb1_fail have also been deleted

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos4/selftest: Move samba4.rpc.join tests to ad_dc_default_smb1
Noel Power [Mon, 16 Dec 2019 18:08:47 +0000 (18:08 +0000)]
s4/selftest: Move samba4.rpc.join tests to ad_dc_default_smb1

The following tests which fail when run against a test env that
doesn't support SMB1

samba4.rpc.join on ncacn_ip_tcp with bigendian(ad_dc_default)
samba4.rpc.join on ncacn_ip_tcp with seal,padcheck(ad_dc_default)
samba4.rpc.join on ncacn_ip_tcp with validate(ad_dc_default)
samba4.rpc.join on ncacn_np with bigendian(ad_dc_default)
samba4.rpc.join on ncacn_np with seal,padcheck(ad_dc_default)
samba4.rpc.join on ncacn_np with validate(ad_dc_default)
samba4.rpc.join on ncalrpc with bigendian(ad_dc_default:local)
samba4.rpc.join on ncalrpc with seal,padcheck(ad_dc_default:local)
samba4.rpc.join on ncalrpc with validate(ad_dc_default:local)

have been moved to ad_dc_default_smb1

results verified with

VALIDATE="validate" python3 source4/selftest/tests.py | grep "^samba4.rpc.join" | grep ad_dc_default | sort

corrosponding entries have been removed from skip_smb1_fail

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos4/selftest: Move samba4.ldap.passwordsettings to ad_dc_default_smb1
Noel Power [Mon, 16 Dec 2019 17:43:58 +0000 (17:43 +0000)]
s4/selftest: Move samba4.ldap.passwordsettings to ad_dc_default_smb1

Test samba4.ldap.passwordsettings fails when run against test env that
doesn't support SMB1 so move to ad_dc_default_smb1

Note: no skip entries to be removed as tests are known failures

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos4/selftest: Move samba4.ldap.nested-search to ad_dc_default_smb1
Noel Power [Mon, 16 Dec 2019 17:42:54 +0000 (17:42 +0000)]
s4/selftest: Move samba4.ldap.nested-search to ad_dc_default_smb1

Test samba4.ldap.nested-search fails when run against test env
that doesn't support SMB1 so move to ad_dc_default_smb1

Also remove entry from skip_smb1_fail

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos4/selftest: Modify samba4.blackbox.chgdcpass to use smbclient(s3)
Noel Power [Mon, 16 Dec 2019 17:08:35 +0000 (17:08 +0000)]
s4/selftest: Modify samba4.blackbox.chgdcpass to use smbclient(s3)

Test was using smbclient4 but this fails when used in environments that
don't support SMB1. We use smbclient(s3) instead. There remains one
failure due to behaviour differences between the smbclients.

The behavioural changes are related not to SMB1/SMB2 but
commits d4ea637eb869e0c3540140b7ae04c2b483f7693c &
fce66b22ea312abb252fb9dc748b3adc6fbab49f

Perhaps we need to modify s3 smbclient in a similar way? This is however
something that deserves further discussion.

Move this failing part to a knownfail for the moment.

Also the corrosponding entry in skip_smb1_fail has been removed

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/selftest: Move samba3.smbtorture_s3.vfs_aio* to fileserver_smb1
Noel Power [Mon, 16 Dec 2019 16:51:22 +0000 (16:51 +0000)]
s3/selftest: Move samba3.smbtorture_s3.vfs_aio* to fileserver_smb1

move all failing tests to fileserver_smb1 (exception is the SMB2-BASIC
test) doesn't need to move
Additionally remove the associated entries from skip_smb1_file

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agoselftest: Modify fileserver_smb1 with vfs_aio params
Noel Power [Tue, 7 Jan 2020 10:55:19 +0000 (10:55 +0000)]
selftest: Modify fileserver_smb1 with vfs_aio params

To support running tests samba3.smbtorture_s3.vfs_aio* in
test env fileserver_smb1 we need to add some params to
fileserver_smb1 config files.

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/selftest: Move samba3.smbtorture_s3.hidenewfiles to fileserver_smb1
Noel Power [Mon, 16 Dec 2019 16:26:04 +0000 (16:26 +0000)]
s3/selftest: Move samba3.smbtorture_s3.hidenewfiles to fileserver_smb1

Test samba3.smbtorture_s3.hidenewfiles fails when run against test
environments that don't support SMB1. Move this test to fileserver_smb1
and remove entry from skip_smb1_fail

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agoselftest: Add 'hide new files timeout' related data to fileserver_smb1
Noel Power [Mon, 16 Dec 2019 16:20:07 +0000 (16:20 +0000)]
selftest: Add 'hide new files timeout' related data to fileserver_smb1

In order to support samba3.smbtorture_s3.hidenewfiles (and moving
the test to fileserver_smb1) we need to ensure we have some supporting
config

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/selftest: Move tests raw.samba3hide, raw.samba3checkfsp & raw.samba3closeerr
Noel Power [Mon, 16 Dec 2019 16:07:34 +0000 (16:07 +0000)]
s3/selftest: Move tests raw.samba3hide, raw.samba3checkfsp & raw.samba3closeerr

Move tests raw.samba3hide, raw.samba3checkfsp & raw.samba3closeerr from
ad_dc to ad_dc_smb1. Also update flapping and knownfail entries to cater
for the new env.

no entries in skip files to be removed as flapping & knownfail negate
the need for this.

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/selftest: Move tests raw.samba3hide, raw.samba3checkfsp & raw.samba3closeerr
Noel Power [Mon, 16 Dec 2019 16:01:33 +0000 (16:01 +0000)]
s3/selftest: Move tests raw.samba3hide, raw.samba3checkfsp & raw.samba3closeerr

Move tests raw.samba3hide, raw.samba3checkfsp & raw.samba3closeerr from
simpleserver to fileserver. Also need a knownfail for raw.samba3closeerr
which fails in envs that NT ACLs enabled. We will get extra coverage
from ad_dc_smb1 when the same tests are moved there.

Remove the associated entries from skip_smb1_fail

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/selftest Move samba3.smbtorture_s3.plain.RENAME-ACCESS to nt4_dc_smb1
Noel Power [Fri, 13 Dec 2019 18:27:25 +0000 (18:27 +0000)]
s3/selftest Move samba3.smbtorture_s3.plain.RENAME-ACCESS to nt4_dc_smb1

Also remove associated entry from skip_smb1_fail

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos4/selftest: Move samba.tests.libsmb to nt4_dc_smb1
Noel Power [Fri, 13 Dec 2019 14:17:02 +0000 (14:17 +0000)]
s4/selftest: Move samba.tests.libsmb to nt4_dc_smb1

Also remove associated entry from skip_smb1_fail

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/selftest: Move samba3.unix.whoami to nt4_dc_smb1
Noel Power [Fri, 13 Dec 2019 14:15:51 +0000 (14:15 +0000)]
s3/selftest: Move samba3.unix.whoami to nt4_dc_smb1

Also remove the associated entry from skip_smb1_fail

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/selftest Move samba3.smbtorture_s3.plain.MANGLE-ILLEGAL to ad_dc_smb1
Noel Power [Fri, 13 Dec 2019 14:15:12 +0000 (14:15 +0000)]
s3/selftest Move samba3.smbtorture_s3.plain.MANGLE-ILLEGAL to ad_dc_smb1

Also remove the associated entry from skip_smb1_fail

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/selftest: Move samba3.smbtorture_s3.plain.POSIX* to nt4_dc_smb1
Noel Power [Fri, 13 Dec 2019 14:10:50 +0000 (14:10 +0000)]
s3/selftest: Move samba3.smbtorture_s3.plain.POSIX* to nt4_dc_smb1

    The tests menioned below all fail when run against environments that
    don't support SMB1 so we move them to nt4_dc_smb1

    python3 source3/selftest/tests.py | grep "^samba3.smbtorture_s3.crypt\." | grep nt4_dc_smb1 | cut -f1 -d\( | sort -u

    samba3.smbtorture_s3.plain.POSIX
    samba3.smbtorture_s3.plain.POSIX-ACL-OPLOCK
    samba3.smbtorture_s3.plain.POSIX-ACL-SHAREROOT
    samba3.smbtorture_s3.plain.POSIX-APPEND
    samba3.smbtorture_s3.plain.POSIX-BLOCKING-LOCK
    samba3.smbtorture_s3.plain.POSIX-MKDIR
    samba3.smbtorture_s3.plain.POSIX-OFD-LOCK
    samba3.smbtorture_s3.plain.POSIX-STREAM-DELETE
    samba3.smbtorture_s3.plain.POSIX-SYMLINK-ACL
    samba3.smbtorture_s3.plain.POSIX-SYMLINK-EA
    samba3.smbtorture_s3.plain.WINDOWS-BAD-SYMLINK (this is a posix
test)

Also remove entries from skip_smb1_fail

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/selftest: Move samba3.smbtorture_s3.crypt.POSIX* to nt4_dc_smb1
Noel Power [Fri, 13 Dec 2019 14:07:54 +0000 (14:07 +0000)]
s3/selftest: Move samba3.smbtorture_s3.crypt.POSIX* to nt4_dc_smb1

The tests menioned below all fail when run against environments that
don't support SMB1 so we move them to nt4_dc_smb1

python3 source3/selftest/tests.py | grep "^samba3.smbtorture_s3.crypt\." | grep nt4_dc_smb1 | cut -f1 -d\( | sort -u

samba3.smbtorture_s3.crypt.POSIX
samba3.smbtorture_s3.crypt.POSIX-ACL-OPLOCK
samba3.smbtorture_s3.crypt.POSIX-ACL-SHAREROOT
samba3.smbtorture_s3.crypt.POSIX-APPEND
samba3.smbtorture_s3.crypt.POSIX-BLOCKING-LOCK
samba3.smbtorture_s3.crypt.POSIX-MKDIR
samba3.smbtorture_s3.crypt.POSIX-OFD-LOCK
samba3.smbtorture_s3.crypt.POSIX-STREAM-DELETE
samba3.smbtorture_s3.crypt.POSIX-SYMLINK-ACL
samba3.smbtorture_s3.crypt.POSIX-SYMLINK-EA
samba3.smbtorture_s3.crypt.WINDOWS-BAD-SYMLINK (this is a posix test)

also remove these entries from skip_smb1_fail

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/selftest: Move samba3.smbtorture_s3.crypt_server.TORTURE to nt4_dc_smb1
Noel Power [Tue, 3 Mar 2020 17:25:30 +0000 (17:25 +0000)]
s3/selftest: Move samba3.smbtorture_s3.crypt_server.TORTURE to nt4_dc_smb1

Test fails to negotiation SMB1 in environments that require SMB1 so
move to nt4_dc_smb1 env.

entry also removed from skip_smb1_fail

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/selftest: Move samba3.smbtorture_s3.crypt_client.* to nt4_dc_smb1
Noel Power [Fri, 13 Dec 2019 13:43:32 +0000 (13:43 +0000)]
s3/selftest: Move samba3.smbtorture_s3.crypt_client.* to nt4_dc_smb1

Move samba3.smbtorture_s3.crypt_client.* tests which fail against
environments that don't support SMB1.

The following tests have been moved from nt4_dc -> nt4_dc_smb1

samba3.smbtorture_s3.crypt_client.ATTR
samba3.smbtorture_s3.crypt_client.BROWSE
samba3.smbtorture_s3.crypt_client.CASE-INSENSITIVE-CREATE
samba3.smbtorture_s3.crypt_client.CHAIN1
samba3.smbtorture_s3.crypt_client.CHAIN2
samba3.smbtorture_s3.crypt_client.CHAIN3
samba3.smbtorture_s3.crypt_client.CHKPATH
samba3.smbtorture_s3.crypt_client.CLEANUP1
samba3.smbtorture_s3.crypt_client.CLEANUP2
samba3.smbtorture_s3.crypt_client.CLEANUP4
samba3.smbtorture_s3.crypt_client.CLI_SPLICE
samba3.smbtorture_s3.crypt_client.DELETE
samba3.smbtorture_s3.crypt_client.DELETE-LN
samba3.smbtorture_s3.crypt_client.DELETE-STREAM
samba3.smbtorture_s3.crypt_client.DIR
samba3.smbtorture_s3.crypt_client.DIR-CREATETIME
samba3.smbtorture_s3.crypt_client.FDPASS
samba3.smbtorture_s3.crypt_client.FDSESS
samba3.smbtorture_s3.crypt_client.IOCTL
samba3.smbtorture_s3.crypt_client.LARGE_READX
samba3.smbtorture_s3.crypt_client.LOCK1
samba3.smbtorture_s3.crypt_client.LOCK10
samba3.smbtorture_s3.crypt_client.LOCK11
samba3.smbtorture_s3.crypt_client.LOCK13
samba3.smbtorture_s3.crypt_client.LOCK2
samba3.smbtorture_s3.crypt_client.LOCK3
samba3.smbtorture_s3.crypt_client.LOCK4
samba3.smbtorture_s3.crypt_client.LOCK5
samba3.smbtorture_s3.crypt_client.LOCK6
samba3.smbtorture_s3.crypt_client.LOCK7
samba3.smbtorture_s3.crypt_client.LOCK9A
samba3.smbtorture_s3.crypt_client.LOCK9B
samba3.smbtorture_s3.crypt_client.NTTRANS-FSCTL
samba3.smbtorture_s3.crypt_client.OPEN
samba3.smbtorture_s3.crypt_client.OPLOCK1
samba3.smbtorture_s3.crypt_client.OPLOCK2
samba3.smbtorture_s3.crypt_client.OWNER-RIGHTS
samba3.smbtorture_s3.crypt_client.PIDHIGH
samba3.smbtorture_s3.crypt_client.PROPERTIES
samba3.smbtorture_s3.crypt_client.RENAME
samba3.smbtorture_s3.crypt_client.RENAME-ACCESS
samba3.smbtorture_s3.crypt_client.RW1
samba3.smbtorture_s3.crypt_client.RW2
samba3.smbtorture_s3.crypt_client.RW3
samba3.smbtorture_s3.crypt_client.RW-SIGNING
samba3.smbtorture_s3.crypt_client.SHORTNAME-TEST
samba3.smbtorture_s3.crypt_client.STREAMERROR
samba3.smbtorture_s3.crypt_client.TCON
samba3.smbtorture_s3.crypt_client.TCON2
samba3.smbtorture_s3.crypt_client.TCONDEV
samba3.smbtorture_s3.crypt_client.TORTURE
samba3.smbtorture_s3.crypt_client.TRANS2
samba3.smbtorture_s3.crypt_client.UID-REGRESSION-TEST
samba3.smbtorture_s3.crypt_client.UNLINK
samba3.smbtorture_s3.crypt_client.W2K
samba3.smbtorture_s3.crypt_client.WILDDELETE
samba3.smbtorture_s3.crypt_client.XCOPY

and have been removed from skip_smb1_fail

list of tests modified has been verified with

python3 source3/selftest/tests.py | grep "^samba3.smbtorture_s3." | grep nt4_dc_smb1 | cut -f1 -d\( | sort -u

addionally any knownfail entries have been updated as appropriate.

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/selftest: Move rpc.samba3.netlogon & rpc.samba3.sessionkey to nt4_dc_smb1
Noel Power [Fri, 13 Dec 2019 13:32:22 +0000 (13:32 +0000)]
s3/selftest: Move rpc.samba3.netlogon & rpc.samba3.sessionkey to nt4_dc_smb1

Move test samba3.rpc.samba3.netlogon & ^samba3.rpc.samba3.sessionkey
to nt4_dc_smb1 as these tests will fail when run against an environment
that doesn't support SMB1 and remove the entries from skip_smb1_fail

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/selftest: Move samba3.rpc.lsa.lookupsids to nt4_dc_smb1
Noel Power [Fri, 13 Dec 2019 13:21:13 +0000 (13:21 +0000)]
s3/selftest: Move samba3.rpc.lsa.lookupsids to nt4_dc_smb1

Test samba3.rpc.lsa.lookupsids when run with protocol options specifying
smb1 will of course fail when run against environments the don't support
SMB1 so move such tests to nt4_dc_smb1

Additionally remove those entries from the skip file as porting is
not needed.

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>