]> git.ipfire.org Git - thirdparty/samba.git/log
thirdparty/samba.git
4 years agoauth4: Make auth_sam pseudo-async
Volker Lendecke [Thu, 15 Apr 2021 08:04:21 +0000 (10:04 +0200)] 
auth4: Make auth_sam pseudo-async

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
4 years agoauth4: Make auth_unix pseudo-async
Volker Lendecke [Wed, 14 Apr 2021 19:59:55 +0000 (21:59 +0200)] 
auth4: Make auth_unix pseudo-async

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
4 years agoauth4: Make auth_developer pseudo-async
Volker Lendecke [Wed, 14 Apr 2021 20:22:18 +0000 (22:22 +0200)] 
auth4: Make auth_developer pseudo-async

This is a simpler approach to really just wrap the code.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
4 years agoauth4: Make auth_anonymous pseudo-async
Volker Lendecke [Wed, 14 Apr 2021 19:48:32 +0000 (21:48 +0200)] 
auth4: Make auth_anonymous pseudo-async

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
4 years agowaf: Check correctly if gnutls has been compiled with fips mode support
Andreas Schneider [Tue, 13 Apr 2021 15:48:21 +0000 (17:48 +0200)] 
waf: Check correctly if gnutls has been compiled with fips mode support

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Tue Apr 13 19:17:56 UTC 2021 on sn-devel-184

4 years agoadd .gitlab-ci-coverage.yml for a scheduled build
Stefan Metzmacher [Tue, 29 Dec 2020 14:15:13 +0000 (15:15 +0100)] 
add .gitlab-ci-coverage.yml for a scheduled build

This will be used by the https://gitlab.com/samba-team/samba
configuration, while https://gitlab.com/samba-team/devel/samba
will still use .gitlab-ci.yml (via the legacy .gitlab-ci-private.yml).

The key point is the usage of the more powerful n1-standard-2
runners for testing.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Tue Apr 13 09:33:14 UTC 2021 on sn-devel-184

4 years agoscript/autobuild.py: split samba-ad-dc-4* tests into two
Stefan Metzmacher [Wed, 30 Dec 2020 01:01:30 +0000 (02:01 +0100)] 
script/autobuild.py: split samba-ad-dc-4* tests into two

As single job they used more than 1h.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
4 years agoscript/autobuild.py: split samba-nopython out of samba-minimal-smbd again
Stefan Metzmacher [Wed, 30 Dec 2020 00:58:48 +0000 (01:58 +0100)] 
script/autobuild.py: split samba-nopython out of samba-minimal-smbd again

This was using more than 1h as a single job.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
4 years agoscript/autobuild.py: split samba-no-opath into two tests
Stefan Metzmacher [Wed, 30 Dec 2020 00:33:00 +0000 (01:33 +0100)] 
script/autobuild.py: split samba-no-opath into two tests

This was is basically a combination of 'samba-nt4' and
'samba-fileserver'.

As a single job it used more than 1h only for testing,
while the samba-no-nopath-build uses ~ 10mins (with a filled ccache).
Now we have two test jobs with ~ 30mins.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
4 years agoscript/autobuild.py: skip lcov step for samba-fips
Stefan Metzmacher [Wed, 30 Dec 2020 11:11:55 +0000 (12:11 +0100)] 
script/autobuild.py: skip lcov step for samba-fips

This doesn't really work and only generates an empty samba-fips.info
file.

Someone familiar with gcov/lcov should look at this and fix it.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
4 years ago.gitlab-ci-main.yml: specify the image only by SAMBA_CI_JOB_IMAGE
Stefan Metzmacher [Thu, 8 Apr 2021 22:14:36 +0000 (00:14 +0200)] 
.gitlab-ci-main.yml: specify the image only by SAMBA_CI_JOB_IMAGE

That way we can construct the url just in one place,
we can also add SAMBA_CI_JOB_IMAGE to the ccache identifier.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
4 years ago.gitlab-ci*.yml: only use gitlab.org shared runners if possible
Stefan Metzmacher [Tue, 29 Dec 2020 09:21:51 +0000 (10:21 +0100)] 
.gitlab-ci*.yml: only use gitlab.org shared runners if possible

We no longer fallback to our private runner, lets see how that works
out...

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
4 years agobootstrap/.gitlab-ci.yml: make sure we force gitlab.com runners for now
Stefan Metzmacher [Thu, 8 Apr 2021 21:12:39 +0000 (23:12 +0200)] 
bootstrap/.gitlab-ci.yml: make sure we force gitlab.com runners for now

We've just added our own runners with 'docker' and 'gce'.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
4 years ago.gitlab-ci-main.yml: build coverity using --with-cluster-support
Stefan Metzmacher [Wed, 30 Dec 2020 11:02:05 +0000 (12:02 +0100)] 
.gitlab-ci-main.yml: build coverity using --with-cluster-support

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
4 years ago.gitlab-ci.yml: move the content to .gitlab-ci-main.yml
Stefan Metzmacher [Tue, 29 Dec 2020 13:45:55 +0000 (14:45 +0100)] 
.gitlab-ci.yml: move the content to .gitlab-ci-main.yml

We introduce an indirection from
gitlab-ci.yml via .gitlab-ci-default.yml to .gitlab-ci-main.yml

We do that in order to introduce a .gitlab-ci-coverage.yml later
as that will have to use different settings in future.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
4 years ago.gitlab-ci.yml: move samba-ad-back{1,2} and samba-schemaupgrade to shared runners
Stefan Metzmacher [Tue, 29 Dec 2020 00:19:31 +0000 (01:19 +0100)] 
.gitlab-ci.yml: move samba-ad-back{1,2} and samba-schemaupgrade to shared runners

This seems to work quite reliable now.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
4 years agoscript/autobuild.py: split samba-ad-dc-backup into samba-ad-back{1,2}
Stefan Metzmacher [Mon, 28 Dec 2020 14:56:57 +0000 (15:56 +0100)] 
script/autobuild.py: split samba-ad-dc-backup into samba-ad-back{1,2}

This will make it possible to run them in parallel (hopefully on shared
gitlab runners).

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
4 years agoscript/autobuild.py: move ad_dc_backup to samba-ad-dc-6
Stefan Metzmacher [Mon, 28 Dec 2020 14:38:52 +0000 (15:38 +0100)] 
script/autobuild.py: move ad_dc_backup to samba-ad-dc-6

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
4 years ago.gitlab-ci.yml: let private runners also make use of pre-builds
Stefan Metzmacher [Mon, 28 Dec 2020 14:47:27 +0000 (15:47 +0100)] 
.gitlab-ci.yml: let private runners also make use of pre-builds

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
4 years agoscript/autobuild.py: split out samba-{nt4,h5l,no-opath}-build
Stefan Metzmacher [Mon, 28 Dec 2020 16:12:39 +0000 (17:12 +0100)] 
script/autobuild.py: split out samba-{nt4,h5l,no-opath}-build

These will be used to move the build stages from private gitlab runner
jobs to shared runners.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
4 years ago.gitlab-ci.yml: be more resilient to intrastructure failures
Stefan Metzmacher [Wed, 23 Dec 2020 15:49:19 +0000 (16:49 +0100)] 
.gitlab-ci.yml: be more resilient to intrastructure failures

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
4 years ago.gitlab-ci.yml: specify explicit job timeouts
Stefan Metzmacher [Wed, 23 Dec 2020 15:40:43 +0000 (16:40 +0100)] 
.gitlab-ci.yml: specify explicit job timeouts

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
4 years ago.gitlab-ci.yml: split out samba-{def,mit}-build into the build_first stage
Stefan Metzmacher [Fri, 20 Nov 2020 11:25:33 +0000 (12:25 +0100)] 
.gitlab-ci.yml: split out samba-{def,mit}-build into the build_first stage

It's enough to have 2 jobs in build_first, so we can move 'samba-fips'
out of it again.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
4 years ago.gitlab-ci.yml: print out information of the available cpus
Stefan Metzmacher [Fri, 20 Nov 2020 22:20:25 +0000 (23:20 +0100)] 
.gitlab-ci.yml: print out information of the available cpus

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
4 years agoscript/autobuild.py: split out "samba-{def,mit}-build"
Stefan Metzmacher [Thu, 19 Nov 2020 14:23:00 +0000 (15:23 +0100)] 
script/autobuild.py: split out "samba-{def,mit}-build"

This means we avoid a lot of cpu usage for the build.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
4 years agoscript/autobuild.py: add support for dependencies
Stefan Metzmacher [Thu, 17 Dec 2020 10:53:21 +0000 (11:53 +0100)] 
script/autobuild.py: add support for dependencies

This will make it possible to split build and test stages
in the next steps.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
4 years agoscript/autobuild.py: store the directory for the running builder in self.builder_dir
Stefan Metzmacher [Thu, 17 Dec 2020 10:53:21 +0000 (11:53 +0100)] 
script/autobuild.py: store the directory for the running builder in self.builder_dir

For now it keeps being the same as self.test_source_dir, but that will
change soon.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
4 years agoscript/autobuild.py: defer cp and git clone
Stefan Metzmacher [Thu, 19 Nov 2020 14:11:39 +0000 (15:11 +0100)] 
script/autobuild.py: defer cp and git clone

This will make further reconstruction easier.

Use 'git show -w' to see the minimal diff.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
4 years agoscript/autobuild.py: pass --with-selftest-prefix via make instead of configure
Stefan Metzmacher [Thu, 19 Nov 2020 14:01:04 +0000 (15:01 +0100)] 
script/autobuild.py: pass --with-selftest-prefix via make instead of configure

We do start for almost all jobs, just samba-ctdb keeps passing it via
configure in order to have a regression test for it.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
4 years agoscript/autobuild.py: split out a CLEAN_SOURCE_TREE_CMD
Stefan Metzmacher [Thu, 19 Nov 2020 13:41:16 +0000 (14:41 +0100)] 
script/autobuild.py: split out a CLEAN_SOURCE_TREE_CMD

This works for all cases even if the builder runs in a subdirectory.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
4 years agoscript/autobuild.py: change the task definitions into an dictionary
Stefan Metzmacher [Thu, 19 Nov 2020 10:49:25 +0000 (11:49 +0100)] 
script/autobuild.py: change the task definitions into an dictionary

The will make it easier to add more meta data properties to task
definitions.

Use 'git show -w' to see the minimal diff.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
4 years agotestprogs:blackbox: create temporary files under $PREFIX/SELFTEST_TMPDIR
Stefan Metzmacher [Sun, 22 Nov 2020 19:20:56 +0000 (20:20 +0100)] 
testprogs:blackbox: create temporary files under $PREFIX/SELFTEST_TMPDIR

Tests should not create files in the build nor the source directory!

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
4 years agos4:client:tests: create temporary files under $PREFIX/SELFTEST_TMPDIR
Stefan Metzmacher [Mon, 23 Nov 2020 08:58:30 +0000 (09:58 +0100)] 
s4:client:tests: create temporary files under $PREFIX/SELFTEST_TMPDIR

Tests should not create files in the build nor the source directory!

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
4 years agopython:tests:samba_tool: create temporary files under $SELFTEST_TMPDIR
Stefan Metzmacher [Sun, 22 Nov 2020 19:14:19 +0000 (20:14 +0100)] 
python:tests:samba_tool: create temporary files under $SELFTEST_TMPDIR

Tests should not create files in the build nor the source directory!

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
4 years agos3:script:tests: create temporary files under $PREFIX/SELFTEST_TMPDIR
Stefan Metzmacher [Thu, 19 Nov 2020 17:10:02 +0000 (17:10 +0000)] 
s3:script:tests: create temporary files under $PREFIX/SELFTEST_TMPDIR

Tests should not create files in the build nor the source directory!
They should cope with read only access to them.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
4 years agolib/audit_logging/test: fix typos
Philipp Gesang [Mon, 8 Oct 2018 12:59:50 +0000 (14:59 +0200)] 
lib/audit_logging/test: fix typos

Signed-off-by: Philipp Gesang <philipp.gesang@intra2net.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Mon Apr 12 20:07:47 UTC 2021 on sn-devel-184

4 years agoVFS: Update status of SMB_VFS_CHMOD
Noel Power [Mon, 12 Apr 2021 09:48:34 +0000 (10:48 +0100)] 
VFS: Update status of SMB_VFS_CHMOD

Missed when SMB_VFS_CHMOD() was removed.

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): Mon Apr 12 11:11:06 UTC 2021 on sn-devel-184

4 years agotests python krb5: MS-KILE client principal look-up
Gary Lockyer [Tue, 16 Feb 2021 23:15:50 +0000 (12:15 +1300)] 
tests python krb5: MS-KILE client principal look-up

Tests of [MS-KILE]: Kerberos Protocol Extensions
                    section 3.3.5.6.1 Client Principal Lookup

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Isaac Boukris <iboukris@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Mon Apr 12 00:38:26 UTC 2021 on sn-devel-184

4 years agoVFS: Remove SMB_VFS_CHMOD, no longer used
Noel Power [Thu, 8 Apr 2021 12:03:57 +0000 (13:03 +0100)] 
VFS: Remove SMB_VFS_CHMOD, no longer used

                               ---------------
                              /               \
                             /      REST       \
                            /        IN         \
                           /        PEACE        \
                          /                       \
                          |                       |
                          |     SMB_VFS_CHMOD     |
                          |                       |
                          |                       |
                          |       08 April        |
                          |         2021          |
                          |                       |
                          |                       |
                         *|     *  *  *           | *
                _________)/\\_//(\/(/\)/\//\/\////|_)_______

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): Sun Apr 11 23:25:31 UTC 2021 on sn-devel-184

4 years agos3/modules: VFS: unityed_media: Remove um_chmod function
Noel Power [Thu, 8 Apr 2021 12:01:06 +0000 (13:01 +0100)] 
s3/modules: VFS: unityed_media: Remove um_chmod function

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/modules: VFS: time_audit: Remove smb_time_audit_chmod
Noel Power [Thu, 8 Apr 2021 12:00:36 +0000 (13:00 +0100)] 
s3/modules: VFS: time_audit: Remove smb_time_audit_chmod

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/modules: VFS: snapper: Remove snapper_gmt_chmod
Noel Power [Fri, 9 Apr 2021 13:59:06 +0000 (15:59 +0200)] 
s3/modules: VFS: snapper: Remove snapper_gmt_chmod

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/modules: VFS: shadow_copy2: Remove shadow_copy2_chmod
Noel Power [Fri, 9 Apr 2021 13:58:42 +0000 (15:58 +0200)] 
s3/modules: VFS: shadow_copy2: Remove shadow_copy2_chmod

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/modules: VFS: media_harmony: Remove mh_chmod
Noel Power [Thu, 8 Apr 2021 11:52:18 +0000 (12:52 +0100)] 
s3/modules: VFS: media_harmony: Remove mh_chmod

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/modules: VFS: gpfs: Remove vfs_gpfs_chmod() function
Noel Power [Thu, 8 Apr 2021 11:51:36 +0000 (12:51 +0100)] 
s3/modules: VFS: gpfs: Remove vfs_gpfs_chmod() function

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/modules: VFS: Remove vfs_gluster_chmod() function
Noel Power [Thu, 8 Apr 2021 11:50:53 +0000 (12:50 +0100)] 
s3/modules: VFS: Remove vfs_gluster_chmod() function

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/modules: VFS: full_audit: Remove smb_full_audit_chmod() function
Noel Power [Thu, 8 Apr 2021 11:50:16 +0000 (12:50 +0100)] 
s3/modules: VFS: full_audit: Remove smb_full_audit_chmod() function

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/modules: VFS: fruit: Remove fruit_chmod
Noel Power [Fri, 9 Apr 2021 13:58:20 +0000 (15:58 +0200)] 
s3/modules: VFS: fruit: Remove fruit_chmod

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/modules: VFS: fake_acls: Remove fake_acls_chmod() function
Noel Power [Thu, 8 Apr 2021 11:47:33 +0000 (12:47 +0100)] 
s3/modules: VFS: fake_acls: Remove fake_acls_chmod() function

Also remove fake_acls_sys_acl_set_file() which is no longer called

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/modules: VFS: extd_audit: Remove audit_chmod() function
Noel Power [Thu, 8 Apr 2021 11:46:27 +0000 (12:46 +0100)] 
s3/modules: VFS: extd_audit: Remove audit_chmod() function

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/modules: VFS: cep_snapshots: remove ceph_snap_gmt_chmod() function
Noel Power [Thu, 8 Apr 2021 11:42:56 +0000 (12:42 +0100)] 
s3/modules: VFS: cep_snapshots: remove ceph_snap_gmt_chmod() function

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/modules: VFS: ceph: Remove cephwrap_chmod() function
Noel Power [Thu, 8 Apr 2021 11:42:01 +0000 (12:42 +0100)] 
s3/modules: VFS: ceph: Remove cephwrap_chmod() function

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/modules: VFS: catia: Remove catia_chmod() function
Noel Power [Thu, 8 Apr 2021 11:41:15 +0000 (12:41 +0100)] 
s3/modules: VFS: catia: Remove catia_chmod() function

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/modules: VFS: cap: remove cap_chmod
Noel Power [Thu, 8 Apr 2021 11:39:48 +0000 (12:39 +0100)] 
s3/modules: VFS: cap: remove cap_chmod

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/modules: VFS: audit: Remove audit_chmod
Noel Power [Thu, 8 Apr 2021 11:35:56 +0000 (12:35 +0100)] 
s3/modules: VFS: audit: Remove audit_chmod

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/modules: VFS: acl_common: Remove chmod_acl_module_common() function
Noel Power [Thu, 8 Apr 2021 11:34:39 +0000 (12:34 +0100)] 
s3/modules: VFS: acl_common: Remove chmod_acl_module_common() function

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/modules: VFS: acl_xattr: Remove call to chmod_acl_module_common()
Noel Power [Thu, 8 Apr 2021 11:34:02 +0000 (12:34 +0100)] 
s3/modules: VFS: acl_xattr: Remove call to chmod_acl_module_common()

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/modules: VFS: acl_tdb: Remove call to chmod_acl_module_common()
Noel Power [Thu, 8 Apr 2021 11:32:14 +0000 (12:32 +0100)] 
s3/modules: VFS: acl_tdb: Remove call to chmod_acl_module_common()

Signed-off-by: Noel Power <noel.power@suse.com>
4 years agos3/torture: Make cmd_chmod now use SMB_VFS_FCHMOD
Noel Power [Thu, 8 Apr 2021 12:02:09 +0000 (13:02 +0100)] 
s3/torture: Make cmd_chmod now use SMB_VFS_FCHMOD

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/modules: linux_xfs_sgid_mkdirat() SMB_VFS_NEXT_FCHMOD => SMB_VFS_NEXT_CHMOD
Noel Power [Thu, 8 Apr 2021 10:24:04 +0000 (11:24 +0100)] 
s3/modules: linux_xfs_sgid_mkdirat() SMB_VFS_NEXT_FCHMOD => SMB_VFS_NEXT_CHMOD

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/modules: nfs4acl_xattr_fset_nt_acl VFS_SMB_NEXT_CHMOD => VFS_SMB_NEXT_FCHMOD
Noel Power [Thu, 8 Apr 2021 10:10:54 +0000 (11:10 +0100)] 
s3/modules: nfs4acl_xattr_fset_nt_acl VFS_SMB_NEXT_CHMOD => VFS_SMB_NEXT_FCHMOD

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/smbd: file_set_dosmode SMB_VFS_CHMOD => SMB_VFS_FCHMOD
Noel Power [Thu, 8 Apr 2021 09:20:37 +0000 (10:20 +0100)] 
s3/smbd: file_set_dosmode SMB_VFS_CHMOD => SMB_VFS_FCHMOD

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/smbd: SMB_VFS_CHMOD -> SMB_VFS_FCHMOD
Noel Power [Tue, 6 Apr 2021 16:11:48 +0000 (17:11 +0100)] 
s3/smbd: SMB_VFS_CHMOD -> SMB_VFS_FCHMOD

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/modules: VFS: snapper: Add new fchmod_fn implementation
Noel Power [Fri, 9 Apr 2021 13:57:08 +0000 (15:57 +0200)] 
s3/modules: VFS: snapper: Add new fchmod_fn implementation

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/modules: VFS: shadow_copy2: Add new fchmod_fn implementation
Noel Power [Fri, 9 Apr 2021 13:54:44 +0000 (15:54 +0200)] 
s3/modules: VFS: shadow_copy2: Add new fchmod_fn implementation

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/modules: VFS: fruit: Add new fchmod_fn implementation
Noel Power [Fri, 9 Apr 2021 13:53:20 +0000 (15:53 +0200)] 
s3/modules: VFS: fruit: Add new fchmod_fn implementation

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/modules: VFS: ceph_snapshots: Add new fchmod_fn implementation
Noel Power [Fri, 9 Apr 2021 13:49:15 +0000 (15:49 +0200)] 
s3/modules: VFS: ceph_snapshots: Add new fchmod_fn implementation

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/modules: make chmod_acl_module_common less strict so fchmod can run
Noel Power [Wed, 7 Apr 2021 15:02:15 +0000 (16:02 +0100)] 
s3/modules: make chmod_acl_module_common less strict so fchmod can run

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agoVFS: ceph: Allow cephwrap_fchmod() to cope with pathref fsps.
Noel Power [Tue, 6 Apr 2021 16:10:35 +0000 (17:10 +0100)] 
VFS: ceph: Allow cephwrap_fchmod() to cope with pathref fsps.

Ensure it only uses an io fd for a handle based call.

Otherwise fall back to pathname based.

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agoVFS: gluster: Allow vfs_gluster_fchmod() to cope with pathref fsps.
Noel Power [Tue, 6 Apr 2021 16:08:50 +0000 (17:08 +0100)] 
VFS: gluster: Allow vfs_gluster_fchmod() to cope with pathref fsps.

Ensure it only uses an io fd for a handle based call.

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/modules: fchmod: fallback to path based chmod if pathref
Ralph Boehme [Fri, 9 Apr 2021 12:58:34 +0000 (14:58 +0200)] 
s3/modules: fchmod: fallback to path based chmod if pathref

Signed-off-by: Noel Power <noel.power@suse.com>
Signed-off-by: Ralph Boehme <slow@samba.org>
4 years agovfs_default: require fchmod()
Ralph Boehme [Fri, 9 Apr 2021 12:55:06 +0000 (14:55 +0200)] 
vfs_default: require fchmod()

This has been part of POSIX for long enough in 2021.

Signed-off-by: Ralph Boehme <slow@samba.org>
4 years agoVFS: Fix version SMB_VFS_GET_DOS_ATTRIBUTES was removed in
Noel Power [Fri, 9 Apr 2021 11:08:35 +0000 (12:08 +0100)] 
VFS: Fix version SMB_VFS_GET_DOS_ATTRIBUTES was removed in

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3: VFS: streams_xattr: Now we know we will never be doing ACL operations on streams...
Jeremy Allison [Fri, 9 Apr 2021 16:54:13 +0000 (09:54 -0700)] 
s3: VFS: streams_xattr: Now we know we will never be doing ACL operations on streams, delete the now unneeded code.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Böhme <slow@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Fri Apr  9 20:48:17 UTC 2021 on sn-devel-184

4 years agos3-iremotewinspool: set the per-request memory context
Samuel Cabrero [Thu, 8 Apr 2021 16:45:38 +0000 (18:45 +0200)] 
s3-iremotewinspool: set the per-request memory context

The iremotewinspool service is not using the pidl autogenerated code.
Set the per-request memory context following the changes made is commit
5a7e9ade9a4cdfa68900c6a64b639f53c0da47ad.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14675
CI: https://gitlab.com/samba-team/samba/-/merge_requests/1890

Signed-off-by: Samuel Cabrero <scabrero@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Fri Apr  9 15:20:02 UTC 2021 on sn-devel-184

4 years agos4:torture: Use cli_credentials_init_server()
Andreas Schneider [Tue, 6 Apr 2021 13:22:20 +0000 (15:22 +0200)] 
s4:torture: Use cli_credentials_init_server()

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): Fri Apr  9 11:48:00 UTC 2021 on sn-devel-184

4 years agos4:rpc_server: Use cli_credentials_init_server()
Andreas Schneider [Tue, 6 Apr 2021 13:22:03 +0000 (15:22 +0200)] 
s4:rpc_server: Use cli_credentials_init_server()

This also removes dcerpc_remote:domain option for the machine account case.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
4 years agos4:ntvfs: Use cli_credentials_init_server()
Andreas Schneider [Tue, 6 Apr 2021 13:21:38 +0000 (15:21 +0200)] 
s4:ntvfs: Use cli_credentials_init_server()

This also removes cifs:domain option for the machine account case.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
4 years agos4:ntvfs: Use cli_credentials_init_server()
Andreas Schneider [Tue, 6 Apr 2021 13:21:38 +0000 (15:21 +0200)] 
s4:ntvfs: Use cli_credentials_init_server()

This also removes cifs:domain option for the machine account case.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
4 years agos4:ldap_server: Use cli_credentials_init_server()
Andreas Schneider [Tue, 6 Apr 2021 13:21:00 +0000 (15:21 +0200)] 
s4:ldap_server: Use cli_credentials_init_server()

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
4 years agos3:auth: Use cli_credentials_init_server()
Andreas Schneider [Tue, 6 Apr 2021 13:19:43 +0000 (15:19 +0200)] 
s3:auth: Use cli_credentials_init_server()

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
4 years agopytests/dns_forwarder: remove unused import
Douglas Bagnall [Wed, 7 Apr 2021 03:34:52 +0000 (15:34 +1200)] 
pytests/dns_forwarder: remove unused import

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Douglas Bagnall <dbagnall@samba.org>
Autobuild-Date(master): Thu Apr  8 23:03:52 UTC 2021 on sn-devel-184

4 years agosamba-tool dns: use dnsserver.flag_from_string()
Douglas Bagnall [Fri, 26 Mar 2021 07:52:20 +0000 (20:52 +1300)] 
samba-tool dns: use dnsserver.flag_from_string()

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andreas Schneider <asn@samba.org>
4 years agosamba-tool dns: use dnsserver.record_from_string
Douglas Bagnall [Fri, 26 Mar 2021 07:41:29 +0000 (20:41 +1300)] 
samba-tool dns: use dnsserver.record_from_string

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andreas Schneider <asn@samba.org>
4 years agopytests/dns: use dnsserver.record_from_string
Douglas Bagnall [Wed, 7 Apr 2021 03:28:11 +0000 (15:28 +1200)] 
pytests/dns: use dnsserver.record_from_string

not netcmd.dns.data_to_dns_record, which is a UI function.

The only practical difference is it will raise DNSParseError, not CommandError.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andreas Schneider <asn@samba.org>
4 years agopytests/dns: import dnsserver.TXTRecord directly
Douglas Bagnall [Wed, 7 Apr 2021 03:16:58 +0000 (15:16 +1200)] 
pytests/dns: import dnsserver.TXTRecord directly

Not through samba-tool, which should not be used as a library.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andreas Schneider <asn@samba.org>
4 years agopytest/dcerpc/dnsserver.py: use dnsserver.flag_from_string
Douglas Bagnall [Fri, 26 Mar 2021 08:04:20 +0000 (21:04 +1300)] 
pytest/dcerpc/dnsserver.py: use dnsserver.flag_from_string

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andreas Schneider <asn@samba.org>
4 years agopytest/dcerpcdnsserver: use record_from_string helper
Douglas Bagnall [Sat, 27 Mar 2021 02:41:10 +0000 (15:41 +1300)] 
pytest/dcerpcdnsserver: use record_from_string helper

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andreas Schneider <asn@samba.org>
4 years agopy/dnsserver add flag from string function
Douglas Bagnall [Thu, 1 Apr 2021 02:29:32 +0000 (15:29 +1300)] 
py/dnsserver add flag from string function

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andreas Schneider <asn@samba.org>
4 years agopy/dnsserver: add record_from_string helper function
Douglas Bagnall [Thu, 1 Apr 2021 02:28:49 +0000 (15:28 +1300)] 
py/dnsserver: add record_from_string helper function

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andreas Schneider <asn@samba.org>
4 years agopy/dnsserver: add .from_string() methods
Douglas Bagnall [Wed, 7 Apr 2021 01:34:50 +0000 (13:34 +1200)] 
py/dnsserver: add .from_string() methods

The logic to parse DNS value strings (e.g. "example.com 10" for an MX,
which needs to be split on the space) is repeated at least in
samba-tool dns and tests/dcerpc/dnsserver.py. Here we bring it
together so we can do it once.

The sep= keyword allows callers to separate on all runs of
whitespace (the default, as samba-tool dns does) or, using sep='', to
separate on true spaces only.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andreas Schneider <asn@samba.org>
4 years agopy/dnsserver: remove workaround of fixed bug
Douglas Bagnall [Thu, 1 Apr 2021 02:26:01 +0000 (15:26 +1300)] 
py/dnsserver: remove workaround of fixed bug

We used to do something wrong with the refcounts, but we don't anymore,
so we don't need this confusing nonsense.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andreas Schneider <asn@samba.org>
4 years agopy/provision/sambadns: Add a comment about DNS types
Douglas Bagnall [Thu, 1 Apr 2021 02:23:48 +0000 (15:23 +1300)] 
py/provision/sambadns: Add a comment about DNS types

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andreas Schneider <asn@samba.org>
4 years agopy/provision/sambadns: rename CNameRecord -> CNAMERecord
Douglas Bagnall [Sat, 27 Mar 2021 02:55:03 +0000 (15:55 +1300)] 
py/provision/sambadns: rename CNameRecord -> CNAMERecord

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andreas Schneider <asn@samba.org>
4 years agopy/dnsserver: replace obsolete comments with useful ones
Douglas Bagnall [Fri, 26 Mar 2021 07:42:49 +0000 (20:42 +1300)] 
py/dnsserver: replace obsolete comments with useful ones

The replaced comment was about a long fixed Python reference counting bug.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andreas Schneider <asn@samba.org>
4 years agopydns: rename s/CNameRecord/CNAMERecord/ for consistency
Douglas Bagnall [Fri, 26 Mar 2021 05:22:17 +0000 (18:22 +1300)] 
pydns: rename s/CNameRecord/CNAMERecord/ for consistency

Everything else is TXTRecord, SRVRrcord, SOARecord.

Making CNAME the same allows easier lookups.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andreas Schneider <asn@samba.org>
4 years agoVFS: Remove SMB_VFS_SET_DOS_ATTRIBUTE, no longer used
Noel Power [Wed, 3 Mar 2021 10:26:39 +0000 (10:26 +0000)] 
VFS: Remove SMB_VFS_SET_DOS_ATTRIBUTE, no longer used

                              -------------------
                             /                   \
                            /        REST         \
                           /          IN           \
                          /          PEACE          \
                         /                           \
                         |                           |
                         | SMB_VFS_SET_DOS_ATTRIBUTE |
                         |                           |
                         |                           |
                         |         3 March           |
                         |           2021            |
                         |                           |
                         |                           |
                        *|      *  *  *        * *   | *
                _________)/\\_//(\/(/\)/\//\/\////\\/|_)_______
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Apr  8 18:38:40 UTC 2021 on sn-devel-184

4 years agos3/smbd: SMB_VFS_SET_DOS_ATTRIBUTES -> SMB_VFS_FSET_DOS_ATTRIBUTES
Noel Power [Tue, 2 Mar 2021 10:30:40 +0000 (10:30 +0000)] 
s3/smbd: SMB_VFS_SET_DOS_ATTRIBUTES -> SMB_VFS_FSET_DOS_ATTRIBUTES

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
4 years agos3/smbd: VFS Fix incorrect VFS_FIND
Noel Power [Wed, 3 Mar 2021 11:29:43 +0000 (11:29 +0000)] 
s3/smbd: VFS Fix incorrect VFS_FIND

smb_vfs_call_fset_dos_attributes is looking for the wrong function

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
4 years agosmbd: SMB2 Compound related chain handling when generation of FileId has failed
Ralph Boehme [Thu, 8 Apr 2021 10:17:22 +0000 (12:17 +0200)] 
smbd: SMB2 Compound related chain handling when generation of FileId has failed

Issue:
We have a scenario where an application sends a Compound Related chain
consisting of:
SMB2_CREATE
SMB2_IOCTL
SMB2_SET_INFO
SMB2_CLOSE

SMB2_CREATE failed with NT_STATUS_ACCESS_DENIED and subsequent
requests all fail. In Samba they return NT_STATUS_FILE_CLOSED.

When I tried the same against a Win2k12 server, I noticed that all the
failed requests of the chain would return NT_STATUS_ACCESS_DENIED.

I believe this behaviour is also mentioned in the [MS-SMB2] Specs
3.3.5.2.7.2: Handling Compounded Related Requests

"When the current operation requires a FileId and the previous
operation either contains or generates a FileId, if the previous
operation fails with an error, the server SHOULD<223> fail the current
operation with the same error code returned by the previous
operation."

Fix:
Save NTATUS of a failed Create request. When we process subsequent
requests of the chain we check if the previous Create has failed. In
case of a Create failure we returned the saved NTSTATUS.

Signed-off-by: Anubhav Rakshit <anubhav.rakshit@gmail.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Apr  8 17:30:50 UTC 2021 on sn-devel-184