]> git.ipfire.org Git - thirdparty/samba.git/log
thirdparty/samba.git
3 years agos4:kdc: pass client_claims, device_info, device_claims into samba_make_krb5_pac()
Stefan Metzmacher [Thu, 24 Feb 2022 22:57:31 +0000 (23:57 +0100)] 
s4:kdc: pass client_claims, device_info, device_claims into samba_make_krb5_pac()

This allows us to add claims blobs to the PAC once we have the ability
to create them.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agos4-auth: Make PAC parameters const
Joseph Sutton [Tue, 1 Nov 2022 06:01:15 +0000 (19:01 +1300)] 
s4-auth: Make PAC parameters const

These functions have no need to modify the PACs passed in, and this
change permits us to operate on const PACs in the KDC.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agokrb5: Detect support for krb5_const_pac type
Joseph Sutton [Wed, 2 Nov 2022 01:56:34 +0000 (14:56 +1300)] 
krb5: Detect support for krb5_const_pac type

We can't unconditionally assume (as we did in
third_party/heimdal_build/wscript_configure) that Heimdal has this type,
since we may have an older system Heimdal that lacks it. We must also
check whether krb5_pac_get_buffer() is usable with krb5_const_pac, and
declare krb5_const_pac as a non-const typedef if not.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agowafsamba: Have CHECK_C_PROTOTYPE() pass through 'lib' into CHECK_CODE()
Joseph Sutton [Thu, 3 Nov 2022 04:35:58 +0000 (17:35 +1300)] 
wafsamba: Have CHECK_C_PROTOTYPE() pass through 'lib' into CHECK_CODE()

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agowscript: Correctly determine dependencies for system Heimdal build
Joseph Sutton [Thu, 3 Nov 2022 04:35:35 +0000 (17:35 +1300)] 
wscript: Correctly determine dependencies for system Heimdal build

Previously, the call to CHECK_BUNDLED_SYSTEM() in
check_system_heimdal_lib() could have us pick up MIT Kerberos headers
when we should only be using system Heimdal headers. Now, we just
perform an explicit check for the functions we require, which should
avoid any use of the MIT libraries.

We also remove some library checks for Heimdal components that we don't
use directly, restricting the checks to only the functions we need.

Finally, we no longer need to recurse into third_party/heimdal_build
when performing a system Heimdal build.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agobuild: Remove unused dependencies
Joseph Sutton [Thu, 3 Nov 2022 04:31:20 +0000 (17:31 +1300)] 
build: Remove unused dependencies

We don't need to include these any more, and removing them allows us to
simplify the build system for system Heimdal builds.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agosmbd: Don't hide directories with "hide new files timeout"
Volker Lendecke [Mon, 7 Nov 2022 14:08:51 +0000 (15:08 +0100)] 
smbd: Don't hide directories with "hide new files timeout"

The intention of this option was to hide *files*. Before this patch we
also hide directories where new files are dropped.

This is a change in behaviour, but I think this option is niche enough
to justify not adding another parameter that we then need to test. If
workflows break with this change and people depend on directories also
to be hidden, we can still add the additional option value required.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Mon Nov  7 22:58:33 UTC 2022 on sn-devel-184

3 years agotorture: Show that "hide new files timeout" also hides directories
Volker Lendecke [Mon, 7 Nov 2022 13:57:04 +0000 (14:57 +0100)] 
torture: Show that "hide new files timeout" also hides directories

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agotorture3: Run the "hidenewfiles" test against SMB2
Volker Lendecke [Mon, 7 Nov 2022 13:56:28 +0000 (14:56 +0100)] 
torture3: Run the "hidenewfiles" test against SMB2

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agotorture3: Fix a copy&paste error and a typo
Volker Lendecke [Mon, 7 Nov 2022 11:11:52 +0000 (12:11 +0100)] 
torture3: Fix a copy&paste error and a typo

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agogpo: GPME doesn't permit nesting of admx categories in builtin
David Mulder [Tue, 25 Oct 2022 14:28:22 +0000 (08:28 -0600)] 
gpo: GPME doesn't permit nesting of admx categories in builtin

The gnome settings were nested within a builtin
admx category, which GPME does not permit. This
was hiding the GNOME settings anytime windows
admx templates were present.

Signed-off-by: David Mulder <dmulder@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Fri Nov  4 19:09:09 UTC 2022 on sn-devel-184

3 years agogpo: Install the GNOME Settings admx templates
David Mulder [Fri, 21 Oct 2022 16:39:26 +0000 (10:39 -0600)] 
gpo: Install the GNOME Settings admx templates

Signed-off-by: David Mulder <dmulder@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agogp: Move GNOME admx templates
David Mulder [Wed, 2 Nov 2022 14:39:17 +0000 (08:39 -0600)] 
gp: Move GNOME admx templates

waf fails to install the templates if there is a
space in the name.

Signed-off-by: David Mulder <dmulder@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agos3:winbind: Avoid unnecessary locking in wb_parent_idmap_setup_send()
Pavel Filipenský [Tue, 21 Jun 2022 16:19:16 +0000 (18:19 +0200)] 
s3:winbind: Avoid unnecessary locking in wb_parent_idmap_setup_send()

A function in tevent environment can span over several context loop iterations.
Every iteration 'unschedules' the current code and a different functions can
access not yet fully initialized structures.

A locking is used to avoid this. In tevent, we use tevent queues as a locking
mechanism. Every function trying to access lock protected data, puts itself to
a queue. The function must remove itself from the queue only after the complete
work is done.

A good coding practise is to lock only the smallest code path and not to use the
locking if not needed.

wb_parent_idmap_setup_send() uses queue "wb_parent_idmap_config_queue" for:
- testing if the setup is ready
- setting up all idmap domains

But "testing if the setup is ready" can be coded as an atomic operation without
needing a lock.

Signed-off-by: Pavel Filipenský <pfilipen@redhat.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Fri Nov  4 10:06:28 UTC 2022 on sn-devel-184

3 years agosmbget: Adds a rate limiting option --limit-rate in KB/s
vporpo [Sat, 1 Oct 2022 21:45:18 +0000 (14:45 -0700)] 
smbget: Adds a rate limiting option --limit-rate in KB/s

This patch implements a very simple rate limiter. It works by pausing the main
download loop whenever the bytes transferred are more than what we would get
with if it were transferred at the rate set by the user.
Please note that this may reduce the blocksize if the limit is too small.

Signed-off-by: Vasileios Porpodas <v.porpodas@gmail.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed Nov  2 22:47:10 UTC 2022 on sn-devel-184

3 years agothird_party/heimdal_build: Update fallthrough macro for switch statements
Joseph Sutton [Wed, 28 Sep 2022 01:34:31 +0000 (14:34 +1300)] 
third_party/heimdal_build: Update fallthrough macro for switch statements

This is an adaptation to Heimdal:

commit 133f5174820b34e2a12c3f3412bf554cae2ee22f
Author: Daria Phoebe Brashear <dariaphoebe@auristor.com>
Date:   Fri Sep 16 09:57:24 2022 -0400

    rewrite fallthrough to HEIM_FALLTHROUGH to deal with new Apple SDKs

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Wed Nov  2 05:21:29 UTC 2022 on sn-devel-184

3 years agothird_party/heimdal: import lorikeet-heimdal-202210310104 (commit 0fc20ff4144973047e6...
Andrew Bartlett [Mon, 31 Oct 2022 01:33:09 +0000 (14:33 +1300)] 
third_party/heimdal: import lorikeet-heimdal-202210310104 (commit 0fc20ff4144973047e6aaaeb2fc8708bd75be222)

This commit won't compile on it's own, as we need to fix the build system
to cope in the next commit.

The purpose of this commit is to update to a new lorikeet-heimdal tree
that includes the previous two patches and is rebased on a current
Heimdal master snapshot.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Joseph Sutton <josephsutton@catalyst.net.nz>
3 years agoheimdal: Fix the 32-bit build on FreeBSD
Volker Lendecke [Fri, 22 Jul 2022 16:38:21 +0000 (18:38 +0200)] 
heimdal: Fix the 32-bit build on FreeBSD

REF: https://github.com/heimdal/heimdal/pull/1004
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15220

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agothird_party/heimdal: Introduce macro for common plugin structure elements
Joseph Sutton [Fri, 21 Oct 2022 21:11:53 +0000 (10:11 +1300)] 
third_party/heimdal: Introduce macro for common plugin structure elements

Heimdal's HDB plugin interface, and hence Samba's KDC that depends upon
it, doesn't work on 32-bit builds due to structure fields being arranged
in the wrong order. This problem presents itself in the form of
segmentation faults on 32-bit systems, but goes unnoticed on 64-bit
builds thanks to extra structure padding absorbing the errant fields.

This commit reorders the HDB plugin structure fields to prevent crashes
and introduces a common macro to ensure every plugin presents a
consistent interface.

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

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agoAdd Heimdal test file test_base.c to bi-directional encoding ignore list
Andrew Bartlett [Thu, 27 Oct 2022 00:07:34 +0000 (13:07 +1300)] 
Add Heimdal test file test_base.c to bi-directional encoding ignore list

Heimdal commit c6a46f0c96dde73ef4f3a247a1e904d4cf15aeb2 introduces test data
that triggers our LTR and RTL detection code.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Joseph Sutton <josephsutton@catalyst.net.nz>
3 years agos3: libsmbclient: Fix smbc_getxattr() to return 0 on success.
Jeremy Allison [Fri, 28 Oct 2022 22:31:39 +0000 (15:31 -0700)] 
s3: libsmbclient: Fix smbc_getxattr() to return 0 on success.

Remove knownfail.

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

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: David Mulder <dmulder@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Nov  1 18:31:22 UTC 2022 on sn-devel-184

3 years agos4: torture: Show return value for smbc_getxattr() is incorrect (returns >0 for succe...
Jeremy Allison [Fri, 28 Oct 2022 22:28:41 +0000 (15:28 -0700)] 
s4: torture: Show return value for smbc_getxattr() is incorrect (returns >0 for success, should return zero).

Add torture test to show smbc_getxattr() should return -1 on
failure, 0 on success.

Add knownfail.

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

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: David Mulder <dmulder@samba.org>
3 years agosmbd: Correct store_smb2_posix_info size check
David Mulder [Fri, 9 Sep 2022 14:14:44 +0000 (08:14 -0600)] 
smbd: Correct store_smb2_posix_info size check

Signed-off-by: David Mulder <dmulder@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Fri Oct 28 13:43:59 UTC 2022 on sn-devel-184

3 years agodocs-xml: ea support option restricted to user ns
Daniel Kobras [Fri, 21 Oct 2022 14:40:14 +0000 (16:40 +0200)] 
docs-xml: ea support option restricted to user ns

Update documentation to match current behavior.

Signed-off-by: Daniel Kobras <kobras@puzzle-itc.de>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Fri Oct 28 07:24:18 UTC 2022 on sn-devel-184

3 years agos3: smbd: Consistently map EAs to user namespace
Daniel Kobras [Mon, 26 Sep 2022 08:27:19 +0000 (10:27 +0200)] 
s3: smbd: Consistently map EAs to user namespace

Samba has always been mapping Windows EAs to the 'user' namespace on the
POSIX side. However, in the opposite direction, the mapping would also map
other user-readable POSIX EA namespaces to Windows EAs, only stripping the
'user' namespace prefix, and passing all other EA names verbatim.

This means any POSIX EA 'other.foo' collides with 'user.other.foo' on the
Windows side, hence the mapping of non-user namespaces is unreliable.
Also, copy operations via Windows would rename an existing POSIX EA
'other.foo' in the source file to 'user.other.foo' in the destination. The
'user' namespace, however, may not be enabled on the underlying filesystem,
leading to subtle failure modes like the ones reported in eg.
<https://bugzilla.samba.org/show_bug.cgi?id=15186>

Fix the issues by restricting the mapping to the 'user' POSIX EA namespace
consistently for either direction.

Link: https://lists.samba.org/archive/samba-technical/2022-September/137634.html
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15186

Signed-off-by: Daniel Kobras <kobras@puzzle-itc.de>
Reviewed-by: Michael Weiser <michael.weiser@atos.net>
Tested-by: Michael Weiser <michael.weiser@atos.net>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
3 years agotestprogs/blackbox: add 'net ads keytab delete' tests to test_net_ads.sh
Stefan Metzmacher [Thu, 27 Oct 2022 12:32:27 +0000 (14:32 +0200)] 
testprogs/blackbox: add 'net ads keytab delete' tests to test_net_ads.sh

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Oct 27 22:14:53 UTC 2022 on sn-devel-184

3 years agotestprogs/blackbox: fix prinicple => principal in test_net_ads.sh
Stefan Metzmacher [Thu, 27 Oct 2022 12:31:42 +0000 (14:31 +0200)] 
testprogs/blackbox: fix prinicple => principal in test_net_ads.sh

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agotestprogs/blackbox: let test_net_ads.sh consistently use the tmp WORKDIR
Stefan Metzmacher [Thu, 27 Oct 2022 12:30:48 +0000 (14:30 +0200)] 
testprogs/blackbox: let test_net_ads.sh consistently use the tmp WORKDIR

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agos3:util: add 'net ads keytab delete'
Stefan Metzmacher [Wed, 26 Oct 2022 09:36:44 +0000 (11:36 +0200)] 
s3:util: add 'net ads keytab delete'

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agos3:libads: add ads_keytab_delete_entry()
Stefan Metzmacher [Wed, 26 Oct 2022 09:36:01 +0000 (11:36 +0200)] 
s3:libads: add ads_keytab_delete_entry()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agolib/krb5_wrap: add explicit keep_old_kvno/enctype_only args to smb_krb5_kt_seek_and_d...
Stefan Metzmacher [Wed, 26 Oct 2022 09:03:34 +0000 (11:03 +0200)] 
lib/krb5_wrap: add explicit keep_old_kvno/enctype_only args to smb_krb5_kt_seek_and_delete_old_entries()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agos3:libads: ads_keytab_flush() doesn't need a valid kvno
Stefan Metzmacher [Wed, 26 Oct 2022 09:02:21 +0000 (11:02 +0200)] 
s3:libads: ads_keytab_flush() doesn't need a valid kvno

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agolib/krb5_wrap: document the enctype argument of smb_krb5_kt_seek_and_delete_old_entries()
Stefan Metzmacher [Wed, 26 Oct 2022 08:51:09 +0000 (10:51 +0200)] 
lib/krb5_wrap: document the enctype argument of smb_krb5_kt_seek_and_delete_old_entries()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agolib/krb5_wrap: remove unused keep_old_entries argument from smb_krb5_kt_seek_and_dele...
Stefan Metzmacher [Wed, 26 Oct 2022 08:34:47 +0000 (10:34 +0200)] 
lib/krb5_wrap: remove unused keep_old_entries argument from smb_krb5_kt_seek_and_delete_old_entries()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agolib/krb5_wrap: remove unused keep_old_entries argument from smb_krb5_kt_add_entry()
Stefan Metzmacher [Wed, 26 Oct 2022 08:34:47 +0000 (10:34 +0200)] 
lib/krb5_wrap: remove unused keep_old_entries argument from smb_krb5_kt_add_entry()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agobootstrap: Update to openSUSE 15.4
Samuel Cabrero [Thu, 27 Oct 2022 07:05:46 +0000 (09:05 +0200)] 
bootstrap: Update to openSUSE 15.4

Signed-off-by: Samuel Cabrero <scabrero@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agolib:replace: Require bool from C99
Andreas Schneider [Thu, 27 Oct 2022 06:32:20 +0000 (08:32 +0200)] 
lib:replace: Require bool from C99

https://fedoraproject.org/wiki/Changes/PortingToModernC

We define True to true from stdbool.h and the same for false. So we
don't have to do a cleanup now.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Oct 27 19:11:30 UTC 2022 on sn-devel-184

3 years agolib:replace: Fix trailing whitespace in wscript
Andreas Schneider [Thu, 27 Oct 2022 08:45:40 +0000 (10:45 +0200)] 
lib:replace: Fix trailing whitespace in wscript

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agowafsamba: Add -Werror=implicit-int
Andreas Schneider [Thu, 27 Oct 2022 06:27:13 +0000 (08:27 +0200)] 
wafsamba: Add -Werror=implicit-int

https://fedoraproject.org/wiki/Changes/PortingToModernC

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agowafsamba: Add -Werror=old-style-definition
Andreas Schneider [Thu, 27 Oct 2022 06:43:39 +0000 (08:43 +0200)] 
wafsamba: Add -Werror=old-style-definition

See https://fedoraproject.org/wiki/Changes/PortingToModernC

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agos3:utils: Fix old-style function definition
Andreas Schneider [Thu, 27 Oct 2022 06:47:32 +0000 (08:47 +0200)] 
s3:utils: Fix old-style function definition

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agos3:client: Fix old-style function definition
Andreas Schneider [Thu, 27 Oct 2022 06:46:39 +0000 (08:46 +0200)] 
s3:client: Fix old-style function definition

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agos3:param: Fix old-style function definition
Andreas Schneider [Thu, 27 Oct 2022 06:44:58 +0000 (08:44 +0200)] 
s3:param: Fix old-style function definition

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agopylibsmb: Simplify py_cli_create_returns()
Volker Lendecke [Wed, 26 Oct 2022 12:19:43 +0000 (14:19 +0200)] 
pylibsmb: Simplify py_cli_create_returns()

Py_BuildValue() can create dictionaries.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agopylibsmb: Simplify py_cli_create_contexts()
Volker Lendecke [Thu, 20 Oct 2022 14:46:18 +0000 (16:46 +0200)] 
pylibsmb: Simplify py_cli_create_contexts()

Py_BuildValue() can create tuples.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agosmbd: Apply some const to a variable that's never changed
Volker Lendecke [Fri, 7 Oct 2022 09:55:18 +0000 (11:55 +0200)] 
smbd: Apply some const to a variable that's never changed

Probably doesn't do much in compiled code, but looks cleaner to me

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agotests: Use samba.tests.libsmb.LibsmbTests in smb3unix.py
Volker Lendecke [Wed, 19 Oct 2022 09:38:36 +0000 (09:38 +0000)] 
tests: Use samba.tests.libsmb.LibsmbTests in smb3unix.py

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agotests: Use samba.tests.libsmb.LibsmbTests in libsmb-basic.py
Volker Lendecke [Wed, 19 Oct 2022 09:34:40 +0000 (11:34 +0200)] 
tests: Use samba.tests.libsmb.LibsmbTests in libsmb-basic.py

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agotests: Factor out libsmb environment setup
Volker Lendecke [Wed, 19 Oct 2022 09:32:22 +0000 (11:32 +0200)] 
tests: Factor out libsmb environment setup

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agotests: Rename python/samba/tests/libsmb.py
Volker Lendecke [Wed, 19 Oct 2022 08:59:17 +0000 (10:59 +0200)] 
tests: Rename python/samba/tests/libsmb.py

samba/libsmb.py will become a common file to do the library
initialization for our tests. We already have two copies in
smb3unix.py and libsmb.py, and there might be more soon.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agolib: Whitespace fixes
Volker Lendecke [Wed, 12 Oct 2022 19:16:34 +0000 (21:16 +0200)] 
lib: Whitespace fixes

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agontvfs: Remove orphans from 2006
Volker Lendecke [Thu, 17 Mar 2022 18:33:36 +0000 (19:33 +0100)] 
ntvfs: Remove orphans from 2006

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agorpc_server: Remove an unneeded #include
Volker Lendecke [Mon, 21 Mar 2022 12:31:49 +0000 (13:31 +0100)] 
rpc_server: Remove an unneeded #include

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agolib: Avoid an #include includes.h
Volker Lendecke [Thu, 17 Mar 2022 15:10:57 +0000 (16:10 +0100)] 
lib: Avoid an #include includes.h

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agolib: Avoid an #include includes.h
Volker Lendecke [Thu, 17 Mar 2022 15:19:39 +0000 (16:19 +0100)] 
lib: Avoid an #include includes.h

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agolibrpc: Avoid an else
Volker Lendecke [Thu, 17 Mar 2022 16:14:40 +0000 (17:14 +0100)] 
librpc: Avoid an else

With an early return; we don't need the "else"

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agolibrpc: Align integer types
Volker Lendecke [Sat, 19 Mar 2022 16:57:15 +0000 (17:57 +0100)] 
librpc: Align integer types

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agolibrpc: Fix a typo
Volker Lendecke [Sat, 19 Mar 2022 17:38:04 +0000 (18:38 +0100)] 
librpc: Fix a typo

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agolibrpc: Add a pair of {}
Volker Lendecke [Sun, 20 Mar 2022 07:43:34 +0000 (08:43 +0100)] 
librpc: Add a pair of {}

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agopyrpc4: Simplify py_ndr_syntax_id() with GUID_buf_string()
Volker Lendecke [Thu, 17 Mar 2022 16:18:21 +0000 (17:18 +0100)] 
pyrpc4: Simplify py_ndr_syntax_id() with GUID_buf_string()

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agolib: Avoid an includes.h
Volker Lendecke [Wed, 12 Oct 2022 19:22:42 +0000 (21:22 +0200)] 
lib: Avoid an includes.h

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agolib: Remove two unused macros
Volker Lendecke [Wed, 12 Oct 2022 19:27:32 +0000 (21:27 +0200)] 
lib: Remove two unused macros

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agogensec: Align an integer type
Volker Lendecke [Sun, 16 Oct 2022 14:02:31 +0000 (16:02 +0200)] 
gensec: Align an integer type

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agotorture3: Fix an error message
Volker Lendecke [Thu, 13 Oct 2022 09:08:06 +0000 (11:08 +0200)] 
torture3: Fix an error message

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agosmbd: Cut long lines
Volker Lendecke [Fri, 7 Oct 2022 11:53:39 +0000 (13:53 +0200)] 
smbd: Cut long lines

This is recent enough to justify just a README.Coding formatting change

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agosmbd: Remove "link_depth" parameter from non_widelink_open()
Volker Lendecke [Thu, 20 Oct 2022 15:08:40 +0000 (17:08 +0200)] 
smbd: Remove "link_depth" parameter from non_widelink_open()

We don't recurse anymore but loop inside.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agosmbd: Remove a comment left by copy&paste
Volker Lendecke [Mon, 24 Oct 2022 18:24:53 +0000 (20:24 +0200)] 
smbd: Remove a comment left by copy&paste

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agowinbind: Add smbconf fallback for gpupdate_callback
David Mulder [Thu, 27 Oct 2022 12:40:41 +0000 (06:40 -0600)] 
winbind: Add smbconf fallback for gpupdate_callback

We should use the configfile specified, but also
fallback if none is specified.

Signed-off-by: David Mulder <dmulder@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agowinbind: Fix user gpupdate called with NULL smb.conf
David Mulder [Wed, 26 Oct 2022 18:37:01 +0000 (12:37 -0600)] 
winbind: Fix user gpupdate called with NULL smb.conf

Signed-off-by: David Mulder <dmulder@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agos3-lib: restore truncating behavior of push_ascii_nstring()
Philipp Gesang [Mon, 17 Oct 2022 11:42:26 +0000 (13:42 +0200)] 
s3-lib: restore truncating behavior of push_ascii_nstring()

Some users of push_ascii_nstring() (notably name_to_unstring())
expect the output to be truncated if it would exceed the size of
an nstring after conversion. However this broke in 2011 due to
commit d546adeab5 ("Change convert_string_internal() and
convert_string_error() to bool return"). This patch restores the
old behavior.

The issue can be observed in syslog after setting the
``workgroup`` to a 16+ characters long string which triggers a
DEBUG() message:

    Oct 17 11:28:45 dev nmbd[11716]: name_to_nstring: workgroup name 0123456789ABCDEF0123456789ABCDEF is too long. Truncating to

Signed-off-by: Philipp Gesang <philipp.gesang@intra2net.com>
Reviewed-by: Noel Power <npower@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Noel Power <npower@samba.org>
Autobuild-Date(master): Tue Oct 25 16:25:40 UTC 2022 on sn-devel-184

3 years agogpo: Fix startup scripts to not fail w/out params
David Mulder [Mon, 24 Oct 2022 22:50:37 +0000 (16:50 -0600)] 
gpo: Fix startup scripts to not fail w/out params

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

Signed-off-by: David Mulder <dmulder@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): David Mulder <dmulder@samba.org>
Autobuild-Date(master): Tue Oct 25 15:21:08 UTC 2022 on sn-devel-184

3 years agogpo: Test to ensure startup scripts don't crash w/out params
David Mulder [Mon, 24 Oct 2022 22:49:21 +0000 (16:49 -0600)] 
gpo: Test to ensure startup scripts don't crash w/out params

Startup scripts were failing to execute when no
parameters were provided to the script.

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

Signed-off-by: David Mulder <dmulder@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agoCVE-2022-3592 smbd: Slightly simplify filename_convert_dirfsp()
Volker Lendecke [Sat, 15 Oct 2022 11:37:17 +0000 (13:37 +0200)] 
CVE-2022-3592 smbd: Slightly simplify filename_convert_dirfsp()

subdir_of() calculates the share-relative rest for us, don't do the
strlen(connectpath) calculation twice. subdir_of() also checks that
the target properly ends on a directory. With just strncmp a symlink
to x->/aa/etc would qualify as in share /a, so a "get x/passwd" leads to a
pretty unfortunate result. This is the proper fix for bug 15207, so we
need to change the expected error code to OBJECT_PATH_NOT_FOUND

Bug: https://bugzilla.samba.org/show_bug.cgi?id=15207
Signed-off-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Jule Anger <janger@samba.org>
Autobuild-Date(master): Tue Oct 25 11:27:02 UTC 2022 on sn-devel-184

3 years agoCVE-2022-3592 lib: Move subdir_of() to source3/lib/util_path.c
Volker Lendecke [Sat, 15 Oct 2022 11:29:14 +0000 (13:29 +0200)] 
CVE-2022-3592 lib: Move subdir_of() to source3/lib/util_path.c

Make it available for other components

Bug: https://bugzilla.samba.org/show_bug.cgi?id=15207
Signed-off-by: Volker Lendecke <vl@samba.org>
3 years agoCVE-2022-3592 lib: lib/util/fault.h requires _SAMBA_DEBUG_H for SMB_ASSERT()
Volker Lendecke [Sat, 15 Oct 2022 11:26:48 +0000 (13:26 +0200)] 
CVE-2022-3592 lib: lib/util/fault.h requires _SAMBA_DEBUG_H for SMB_ASSERT()

fault.h has:

which leads to SMB_ASSERT not being defined when you include
samba_util.h (and thus fault.h) before debug.h.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=15207
Signed-off-by: Volker Lendecke <vl@samba.org>
3 years agoCVE-2022-3592 torture3: Show that our symlink traversal checks are insecure
Volker Lendecke [Sat, 15 Oct 2022 12:09:55 +0000 (14:09 +0200)] 
CVE-2022-3592 torture3: Show that our symlink traversal checks are insecure

This test shows that we don't properly check whether symlink targets
are inside the exported share. Linking to <share-root>a/etc makes us
loop back into filename_convert_dirfsp_nosymlink() with /etc as a
directory name.

On Linux systems with openat2(RESOLVE_NO_SYMLINKS) we pass "/etc"
directly into that call after some checks for "."/".." as invalid file
name components. "/etc" is okay for openat2(), but this test must also
succeed on systems without RESOLVE_NO_SYMLINKS (sn-devel-184 for
example). On systems without RESOLVE_NO_SYMLINKS split up the path
"/etc" into path components, in this case "" and "etc". So we pass ""
down to openat(), which correctly fails with ENOENT.

Summary: Only with RESOLVE_NO_SYMLINKS we're hit by bug 15207, and
this test shows by expecting CONNECTION_DISCONNECTED that we violate
the internal assumption of empty path components with an unexpected
symlink target, making it testable on systems with and without
RESOLVE_NO_SYMLINKS.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=15207
Signed-off-by: Volker Lendecke <vl@samba.org>
3 years agoCVE-2022-3592 smbd: No empty path components in openat_pathref_dirfsp_nosymlink()
Volker Lendecke [Mon, 17 Oct 2022 16:06:02 +0000 (18:06 +0200)] 
CVE-2022-3592 smbd: No empty path components in openat_pathref_dirfsp_nosymlink()

Upper layers must have filtered this, everything else is a bug

Bug: https://bugzilla.samba.org/show_bug.cgi?id=15207
Signed-off-by: Volker Lendecke <vl@samba.org>
3 years agoCVE-2022-3437 third_party/heimdal: Pass correct length to _gssapi_verify_pad()
Joseph Sutton [Wed, 12 Oct 2022 00:57:33 +0000 (13:57 +1300)] 
CVE-2022-3437 third_party/heimdal: Pass correct length to _gssapi_verify_pad()

We later subtract 8 when calculating the length of the output message
buffer. If padlength is excessively high, this calculation can underflow
and result in a very large positive value.

Now we properly constrain the value of padlength so underflow shouldn't
be possible.

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

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agoCVE-2022-3437 third_party/heimdal: Check for overflow in _gsskrb5_get_mech()
Joseph Sutton [Mon, 10 Oct 2022 07:33:09 +0000 (20:33 +1300)] 
CVE-2022-3437 third_party/heimdal: Check for overflow in _gsskrb5_get_mech()

If len_len is equal to total_len - 1 (i.e. the input consists only of a
0x60 byte and a length), the expression 'total_len - 1 - len_len - 1',
used as the 'len' parameter to der_get_length(), will overflow to
SIZE_MAX. Then der_get_length() will proceed to read, unconstrained,
whatever data follows in memory. Add a check to ensure that doesn't
happen.

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

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agoCVE-2022-3437 third_party/heimdal: Check buffer length against overflow for DES{...
Joseph Sutton [Mon, 15 Aug 2022 04:54:23 +0000 (16:54 +1200)] 
CVE-2022-3437 third_party/heimdal: Check buffer length against overflow for DES{,3} unwrap

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

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agoCVE-2022-3437 third_party/heimdal: Check the result of _gsskrb5_get_mech()
Joseph Sutton [Mon, 15 Aug 2022 04:53:55 +0000 (16:53 +1200)] 
CVE-2022-3437 third_party/heimdal: Check the result of _gsskrb5_get_mech()

We should make sure that the result of 'total_len - mech_len' won't
overflow, and that we don't memcmp() past the end of the buffer.

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

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agoCVE-2022-3437 third_party/heimdal: Avoid undefined behaviour in _gssapi_verify_pad()
Joseph Sutton [Mon, 15 Aug 2022 04:53:45 +0000 (16:53 +1200)] 
CVE-2022-3437 third_party/heimdal: Avoid undefined behaviour in _gssapi_verify_pad()

By decrementing 'pad' only when we know it's safe, we ensure we can't
stray backwards past the start of a buffer, which would be undefined
behaviour.

In the previous version of the loop, 'i' is the number of bytes left to
check, and 'pad' is the current byte we're checking. 'pad' was
decremented at the end of each loop iteration. If 'i' was 1 (so we
checked the final byte), 'pad' could potentially be pointing to the
first byte of the input buffer, and the decrement would put it one
byte behind the buffer.

That would be undefined behaviour.

The patch changes it so that 'pad' is the byte we previously checked,
which allows us to ensure that we only decrement it when we know we
have a byte to check.

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

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agoCVE-2022-3437 third_party/heimdal: Don't pass NULL pointers to memcpy() in DES unwrap
Joseph Sutton [Wed, 12 Oct 2022 00:57:42 +0000 (13:57 +1300)] 
CVE-2022-3437 third_party/heimdal: Don't pass NULL pointers to memcpy() in DES unwrap

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

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agoCVE-2022-3437 third_party/heimdal: Use constant-time memcmp() in unwrap_des3()
Joseph Sutton [Wed, 12 Oct 2022 00:57:55 +0000 (13:57 +1300)] 
CVE-2022-3437 third_party/heimdal: Use constant-time memcmp() in unwrap_des3()

The surrounding checks all use ct_memcmp(), so this one was presumably
meant to as well.

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

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agoCVE-2022-3437 third_party/heimdal: Use constant-time memcmp() for arcfour unwrap
Joseph Sutton [Wed, 12 Oct 2022 00:57:13 +0000 (13:57 +1300)] 
CVE-2022-3437 third_party/heimdal: Use constant-time memcmp() for arcfour unwrap

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

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agoCVE-2022-3437 s4/auth/tests: Add unit tests for unwrap_des3()
Joseph Sutton [Wed, 12 Oct 2022 00:55:39 +0000 (13:55 +1300)] 
CVE-2022-3437 s4/auth/tests: Add unit tests for unwrap_des3()

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

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agoCVE-2022-3437 third_party/heimdal_build: Add gssapi-subsystem subsystem
Joseph Sutton [Wed, 12 Oct 2022 00:55:51 +0000 (13:55 +1300)] 
CVE-2022-3437 third_party/heimdal_build: Add gssapi-subsystem subsystem

This allows us to access (and so test) functions internal to GSSAPI by
depending on this subsystem.

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

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agoCVE-2022-3437 third_party/heimdal: Remove __func__ compatibility workaround
Joseph Sutton [Wed, 12 Oct 2022 00:56:08 +0000 (13:56 +1300)] 
CVE-2022-3437 third_party/heimdal: Remove __func__ compatibility workaround

As described by the C standard, __func__ is a variable, not a macro.
Hence this #ifndef check does not work as intended, and only serves to
unconditionally disable __func__. A nonoperating __func__ prevents
cmocka operating correctly, so remove this definition.

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

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agopython/samba/tests: fix samba.tests.auth_log_pass_change for later gnutls
Noel Power [Fri, 21 Oct 2022 16:14:44 +0000 (17:14 +0100)] 
python/samba/tests: fix samba.tests.auth_log_pass_change for later gnutls

later gnutls that support GNUTLS_PBKDF2 currently fail,
we need to conditionally switch test data to reflect use of
'samr_ChangePasswordUser3' or 'samr_ChangePasswordUser4'
depending on whether GNUTLS_PBKDF2 is supported or not

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Tue Oct 25 10:30:59 UTC 2022 on sn-devel-184

3 years agos4/rpc_server/sambr: don't mutate the return of samdb_set_password_aes
Noel Power [Fri, 21 Oct 2022 16:40:36 +0000 (17:40 +0100)] 
s4/rpc_server/sambr: don't mutate the return of samdb_set_password_aes

prior to this commit return of samdb_set_password_aes was set to
NT_STATUS_WRONG_PASSWORD on failure. Useful status that should be
returned such as NT_STATUS_PASSWORD_RESTRICTION are swallowed here
otherwise (and in this case can be partially responsible for failures
in test samba.tests.auth_log_pass_change (with later gnutls)

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
3 years agos4:libnet: If we successfully changed the password we are done
Andreas Schneider [Mon, 17 Oct 2022 07:02:28 +0000 (09:02 +0200)] 
s4:libnet: If we successfully changed the password we are done

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

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Noel Power <noel.power@suse.com>
3 years agos3:rpcclient: Pass salt down to init_samr_CryptPasswordAES()
Andreas Schneider [Fri, 7 Oct 2022 12:35:15 +0000 (14:35 +0200)] 
s3:rpcclient: Pass salt down to init_samr_CryptPasswordAES()

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

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Noel Power <noel.power@suse.com>
3 years agos3:librpc: Improve GSE error message
Andreas Schneider [Mon, 10 Oct 2022 13:15:20 +0000 (15:15 +0200)] 
s3:librpc: Improve GSE error message

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

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Noel Power <noel.power@suse.com>
3 years agovfs_gpfs: Remove documentation for removed gpfs:refuse_dacl_protected option
Christof Schmitt [Sun, 23 Oct 2022 23:04:36 +0000 (16:04 -0700)] 
vfs_gpfs: Remove documentation for removed gpfs:refuse_dacl_protected option

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

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Bjoern Jacke <bjacke@samba.org>
Autobuild-User(master): Björn Jacke <bjacke@samba.org>
Autobuild-Date(master): Mon Oct 24 16:41:03 UTC 2022 on sn-devel-184

3 years agovfs_gpfs: Remove support for old GPFS without DACL_PROTECTED support
Christof Schmitt [Sun, 23 Oct 2022 23:01:41 +0000 (16:01 -0700)] 
vfs_gpfs: Remove support for old GPFS without DACL_PROTECTED support

GPFS 3.5 introduced support for storing the DACL_PROTECTED flag as part
of the ACL. That version has long been superceded. Remove this now
unused codepath.

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

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Bjoern Jacke <bjacke@samba.org>
3 years agowinbind: Enforce user group policy when enabled
David Mulder [Fri, 14 Oct 2022 15:00:45 +0000 (09:00 -0600)] 
winbind: Enforce user group policy when enabled

This only enforces user group policy at logon.
We should also enforce this policy every 90 to
120 minutes, but a logoff will need to cancel the
timer and we cannot have multiple timers if there
are multiple sessions for the same user.

Signed-off-by: David Mulder <dmulder@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Fri Oct 21 18:48:18 UTC 2022 on sn-devel-184

3 years agowinbind: Fix potential memory leak in winbind gpupdate
David Mulder [Fri, 21 Oct 2022 17:01:41 +0000 (11:01 -0600)] 
winbind: Fix potential memory leak in winbind gpupdate

Signed-off-by: David Mulder <dmulder@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agodocs-xml: Fix outdated comment in documentation
Joseph Sutton [Thu, 13 Oct 2022 01:48:07 +0000 (14:48 +1300)] 
docs-xml: Fix outdated comment in documentation

This was written prior to the release of Windows Vista and later
versions.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Autobuild-User(master): Douglas Bagnall <dbagnall@samba.org>
Autobuild-Date(master): Fri Oct 21 04:53:47 UTC 2022 on sn-devel-184

3 years agos4:gensec Avoid memory leak in error case in gensec_gssapi
Joseph Sutton [Wed, 12 Oct 2022 00:56:55 +0000 (13:56 +1300)] 
s4:gensec Avoid memory leak in error case in gensec_gssapi

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
3 years agopython: Remove unused imports in auth_log tests
Joseph Sutton [Wed, 12 Oct 2022 00:56:42 +0000 (13:56 +1300)] 
python: Remove unused imports in auth_log tests

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>