]> git.ipfire.org Git - thirdparty/samba.git/log
thirdparty/samba.git
3 years agonsswitch: Fix pam_set_data()/pam_get_data() to use pointers to a time_t, not try...
Jeremy Allison [Wed, 9 Nov 2022 00:16:07 +0000 (16:16 -0800)] 
nsswitch: Fix pam_set_data()/pam_get_data() to use pointers to a time_t, not try and embedd it directly.

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

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Noel Power <npower@samba.org>
Autobuild-User(master): Noel Power <npower@samba.org>
Autobuild-Date(master): Wed Nov 16 15:09:45 UTC 2022 on sn-devel-184

3 years agos4:lib:tls: Don't negotiate session resumption with session tickets
Noel Power [Fri, 4 Nov 2022 16:56:49 +0000 (16:56 +0000)] 
s4:lib:tls: Don't negotiate session resumption with session tickets

tls_tstream can't properly handle 'New Session Ticket' messages
sent 'after' the client sends the 'Finished' message.

This is needed because some servers (at least elasticsearch) wait till
they get 'Finished' messgage from the client before sending the
"New Ticket" message.

Without this patch what typcially happens is when the application code
sends data it then tries to read the response, but, instead of the
response to the request it actually recieves the "New Session Ticket"
instead. The "New Session Ticket" message gets processed by the upper layer
logic e.g.
   tstream_tls_readv_send
       ->tstream_tls_readv_crypt_next
           ->tstream_tls_retry_read
               ->gnutls_record_recv

instead of the core gnutls routines.

This results in the response processing failing due to the
currently 'unexpected' New Ticket message.

In order to avoid this scenario we can ensure the client doesn't
negotiate resumption with session tickets.

Signed-off-by: Noel Power <noel.power@suse.com>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Wed Nov 16 09:58:45 UTC 2022 on sn-devel-184

3 years agos3: smbd: In synthetic_pathref() change DBG_ERR -> DBG_NOTICE to avoid spamming the...
Jeremy Allison [Tue, 15 Nov 2022 21:29:46 +0000 (13:29 -0800)] 
s3: smbd: In synthetic_pathref() change DBG_ERR -> DBG_NOTICE to avoid spamming the logs.

Can easily be seen by doing make test TESTS=fruit
and looking in st/nt4_dc/smbd_test.log.

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

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Wed Nov 16 06:00:56 UTC 2022 on sn-devel-184

3 years agoCVE-2022-42898 third_party/heimdal: PAC parse integer overflows
Joseph Sutton [Fri, 14 Oct 2022 03:45:37 +0000 (16:45 +1300)] 
CVE-2022-42898 third_party/heimdal: PAC parse integer overflows

Catch overflows that result from adding PAC_INFO_BUFFER_SIZE.

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

Heavily edited by committer Nico Williams <nico@twosigma.com>, original by
Joseph Sutton <josephsutton@catalyst.net.nz>.

Signed-off-by: Nico Williams <nico@twosigma.com>
[jsutton@samba.org Zero-initialised header_size in krb5_pac_parse() to
 avoid a maybe-uninitialized error; added a missing check for ret == 0]

Autobuild-User(master): Jule Anger <janger@samba.org>
Autobuild-Date(master): Tue Nov 15 17:02:52 UTC 2022 on sn-devel-184

3 years agogp: Fix startup scripts add not always set runonce
David Mulder [Mon, 14 Nov 2022 17:50:28 +0000 (10:50 -0700)] 
gp: Fix startup scripts add not always set runonce

The runonce is always being set because neither
True nor False is ever None.

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): Tue Nov 15 02:09:45 UTC 2022 on sn-devel-184

3 years agogp: Fix startup scripts list not fail with empty args
David Mulder [Mon, 14 Nov 2022 16:49:18 +0000 (09:49 -0700)] 
gp: Fix startup scripts list not fail with empty args

This fixes the startup scripts list command to
not fail when the parameters variable is empty.

Signed-off-by: David Mulder <dmulder@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agogp: startup scripts list enclude newline in output
David Mulder [Mon, 14 Nov 2022 16:35:31 +0000 (09:35 -0700)] 
gp: startup scripts list enclude newline in output

The output for listing startup scripts wasn't
clear because there was no newline between
entries.

Signed-off-by: David Mulder <dmulder@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agogp: startup scripts add clarify 'args' option
David Mulder [Mon, 14 Nov 2022 16:34:35 +0000 (09:34 -0700)] 
gp: startup scripts add clarify 'args' option

Make sure it is clear how to specify args for the
command, and that multiple args can be passed
wrapped in quotes.

Signed-off-by: David Mulder <dmulder@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agogp: Fix startup scripts add args
David Mulder [Mon, 14 Nov 2022 16:31:41 +0000 (09:31 -0700)] 
gp: Fix startup scripts add args

The args for the command could not be parsed
because samba-tool detects the '-' and thinks its
part of the samba-tool command.

Signed-off-by: David Mulder <dmulder@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agos3: smbd: Always use metadata_fsp() when processing fsctls.
Jeremy Allison [Thu, 10 Nov 2022 22:43:15 +0000 (14:43 -0800)] 
s3: smbd: Always use metadata_fsp() when processing fsctls.

Currently all fsctls we implement need the base fsp, not
an alternate data stream fsp. We may revisit this later
if we implement fsctls that operate on an ADS.

Remove knownfail.

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

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andrew Walker <awalker@ixsystems.com>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Mon Nov 14 18:13:31 UTC 2022 on sn-devel-184

3 years agos3: smbd: Add test to show smbd crashes when doing an FSCTL on a named stream handle.
Jeremy Allison [Thu, 10 Nov 2022 22:41:15 +0000 (14:41 -0800)] 
s3: smbd: Add test to show smbd crashes when doing an FSCTL on a named stream handle.

Add knownfail.

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

Signed-off-by: Andrew Walker <awalker@ixsystems.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agogp: Test that Password and Kerberos policies fail on unknown key
David Mulder [Fri, 11 Nov 2022 17:04:44 +0000 (10:04 -0700)] 
gp: Test that Password and Kerberos policies fail on unknown key

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): Sat Nov 12 01:34:17 UTC 2022 on sn-devel-184

3 years agogp: Password and Kerberos policies fail on unknown key
David Mulder [Fri, 11 Nov 2022 16:41:52 +0000 (09:41 -0700)] 
gp: Password and Kerberos policies fail on unknown key

If unrecognized keys are set in the GptTmpl.inf,
the extensions would fail to apply.

Signed-off-by: David Mulder <dmulder@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agotorture: Test the "server addresses" parameter
Volker Lendecke [Mon, 7 Nov 2022 19:34:57 +0000 (20:34 +0100)] 
torture: Test the "server addresses" parameter

Thanks to Metze for the hint that all file servers already listen on 2
addressess -- V4 and V6 :-)

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Thu Nov 10 08:23:14 UTC 2022 on sn-devel-184

3 years agotestprogs: Fix testit_expect_failure_grep()
Volker Lendecke [Wed, 9 Nov 2022 13:09:34 +0000 (14:09 +0100)] 
testprogs: Fix testit_expect_failure_grep()

Callers expect success (i.e. retval==0) if grep failed with non-zero
error status.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
3 years agotestprogs: Add testit_grep_count() helper
Volker Lendecke [Wed, 9 Nov 2022 13:04:23 +0000 (14:04 +0100)] 
testprogs: Add testit_grep_count() helper

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
3 years agosrvsvc: Only list shares in "server addresses"
Volker Lendecke [Fri, 21 Oct 2022 15:02:07 +0000 (17:02 +0200)] 
srvsvc: Only list shares in "server addresses"

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
3 years agosmbd: Implement "server addresses" for tree connect
Volker Lendecke [Fri, 21 Oct 2022 14:58:36 +0000 (16:58 +0200)] 
smbd: Implement "server addresses" for tree connect

Only allow share connections if the server address matches

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
3 years agolib: Add lp_allow_local_address()
Volker Lendecke [Fri, 21 Oct 2022 14:45:35 +0000 (16:45 +0200)] 
lib: Add lp_allow_local_address()

Helper function for listing and accessing shares

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
3 years agosmbd: Add "server addresses" parameter
Volker Lendecke [Fri, 21 Oct 2022 15:01:21 +0000 (17:01 +0200)] 
smbd: Add "server addresses" parameter

This is a per-share parameter to limit share visibility and
accessibility to specific server IP addresses.

This can be used to limit the visibility and accessibility of shares
on different subnets offered by the server.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
3 years agosmbd: Some whitespace fixes
Volker Lendecke [Fri, 21 Oct 2022 07:17:42 +0000 (09:17 +0200)] 
smbd: Some whitespace fixes

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
3 years agothird_party: Update nss_wrapper to version 1.1.13
Andreas Schneider [Tue, 8 Nov 2022 10:01:44 +0000 (11:01 +0100)] 
third_party: Update nss_wrapper to version 1.1.13

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Wed Nov  9 23:15:07 UTC 2022 on sn-devel-184

3 years agos4: libcli: Ignore errors when getting A records after fetching AAAA records.
Jeremy Allison [Tue, 8 Nov 2022 18:13:18 +0000 (10:13 -0800)] 
s4: libcli: Ignore errors when getting A records after fetching AAAA records.

The target may only be available over IPv6.

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

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed Nov  9 20:34:07 UTC 2022 on sn-devel-184

3 years agolib/replace: fix memory leak in snprintf replacements
Stefan Metzmacher [Mon, 31 Oct 2022 12:16:25 +0000 (13:16 +0100)] 
lib/replace: fix memory leak in snprintf replacements

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

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Wed Nov  9 11:18:02 UTC 2022 on sn-devel-184

3 years agogp: Ignore crontab -l error, since it means empty
David Mulder [Tue, 8 Nov 2022 18:03:36 +0000 (11:03 -0700)] 
gp: Ignore crontab -l error, since it means empty

We should not fail when crontab -l errors, this
just means the crontab is empty.

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): Tue Nov  8 22:33:37 UTC 2022 on sn-devel-184

3 years agotests/krb5: Add tests of PAC group handling
Joseph Sutton [Thu, 3 Nov 2022 01:49:17 +0000 (14:49 +1300)] 
tests/krb5: Add tests of PAC group handling

In which we make AS and TGS requests and verify the SIDs we expect are
returned in the PAC.

Example command to test against Windows Server 2019 functional level
2016 with FAST enabled:

ADMIN_USERNAME=Administrator ADMIN_PASSWORD=locDCpass1 \
CLAIMS_SUPPORT=1 COMPOUND_ID_SUPPORT=1 DC_SERVER=ADDC.EXAMPLE.COM \
DOMAIN=EXAMPLE EXPECT_PAC=1 FAST_SUPPORT=1 KRB5_CONFIG=krb5.conf \
PYTHONPATH=bin/python REALM=EXAMPLE.COM SERVER=ADDC.EXAMPLE.COM \
SKIP_INVALID=1 SMB_CONF_PATH=smb.conf STRICT_CHECKING=1 \
TKT_SIG_SUPPORT=1 python3 python/samba/tests/krb5/group_tests.py

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): Tue Nov  8 03:37:37 UTC 2022 on sn-devel-184

3 years agotests/krb5: Allow checking domain SID in PAC
Joseph Sutton [Thu, 3 Nov 2022 01:55:36 +0000 (14:55 +1300)] 
tests/krb5: Allow checking domain SID in PAC

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agotests/krb5: Overhaul PAC logon info group checking
Joseph Sutton [Thu, 3 Nov 2022 01:54:23 +0000 (14:54 +1300)] 
tests/krb5: Overhaul PAC logon info group checking

We can now verify attributes of SIDs and the PAC locations in which SIDs
are placed. We also gain the ability to assert that no SIDs are present
in the PAC other than the ones we expect.

We lighten somewhat the requirement that no duplicates are present among
the SIDs, as such a situation may arise even with Windows, especially if
group types are changed. For example, if a Universal group containing a
user is changed to a Domain-Local group in between an AS-REQ and a
TGS-REQ, the group's SID will be added to the PAC once for each request.
We only verify that there are no exact duplicates (SID, attributes, and
PAC location all being identical).

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agotests/krb5: Add (un)expected group parameters to get_service_ticket() and get_tgt()
Joseph Sutton [Thu, 3 Nov 2022 01:51:26 +0000 (14:51 +1300)] 
tests/krb5: Add (un)expected group parameters to get_service_ticket() and get_tgt()

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agotests/krb5: Allow creating accounts without Resource SID compression support
Joseph Sutton [Thu, 3 Nov 2022 01:48:09 +0000 (14:48 +1300)] 
tests/krb5: Allow creating accounts without Resource SID compression support

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agotests/krb5: Allow adding multiple members to a group
Joseph Sutton [Thu, 3 Nov 2022 01:47:51 +0000 (14:47 +1300)] 
tests/krb5: Allow adding multiple members to a group

As well as passing in a single 'str', we can now choose to pass a
collection of member DN strings.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agotests/krb5: Allow creating groups with a specified type
Joseph Sutton [Thu, 3 Nov 2022 01:46:53 +0000 (14:46 +1300)] 
tests/krb5: Allow creating groups with a specified type

This will be useful for testing the handling of Domain-Local groups.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agotests/krb5: Fix bits_to_etypes() to not fail on Resource SID compression bit
Joseph Sutton [Thu, 3 Nov 2022 01:46:38 +0000 (14:46 +1300)] 
tests/krb5: Fix bits_to_etypes() to not fail on Resource SID compression bit

It's not an encryption type bit, so we should ignore it here.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agotests/krb5: Remember to pass in expected_groups parameter
Joseph Sutton [Wed, 2 Nov 2022 04:27:12 +0000 (17:27 +1300)] 
tests/krb5: Remember to pass in expected_groups parameter

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agotests/krb5: Remove unused copy-and-paste remnant
Joseph Sutton [Thu, 3 Nov 2022 01:48:48 +0000 (14:48 +1300)] 
tests/krb5: Remove unused copy-and-paste remnant

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agos4:kdc: add initial support for compound claims
Stefan Metzmacher [Thu, 24 Feb 2022 23:28:01 +0000 (00:28 +0100)] 
s4:kdc: add initial support for compound claims

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:kdc: fetch client_claims_blob from samba_kdc_get_pac_blobs()
Stefan Metzmacher [Thu, 24 Feb 2022 23:19:06 +0000 (00:19 +0100)] 
s4:kdc: fetch client_claims_blob from samba_kdc_get_pac_blobs()

The blob will be empty until we properly support claims.

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: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>