]> git.ipfire.org Git - thirdparty/samba.git/log
thirdparty/samba.git
2 years agotorture3: Avoid unused variables
Volker Lendecke [Mon, 21 Aug 2023 10:45:52 +0000 (12:45 +0200)] 
torture3: Avoid unused variables

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbclient: Don't give up in allinfo if getting advanced info fails
Volker Lendecke [Mon, 21 Aug 2023 08:01:24 +0000 (10:01 +0200)] 
smbclient: Don't give up in allinfo if getting advanced info fails

Getting streams might fail, but further down getting reparse info
might succeed.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agolibsmb: Use cli_smb2_qpathinfo_basic() in cli_getatr()
Volker Lendecke [Fri, 18 Aug 2023 14:15:19 +0000 (16:15 +0200)] 
libsmb: Use cli_smb2_qpathinfo_basic() in cli_getatr()

cli_smb2_qpathinfo_basic() uses the smb_create_returns and avoids a
round-trip.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agolibsmb: Use cli_smb2_qpathinfo() in cli_qpathinfo2()
Volker Lendecke [Fri, 18 Aug 2023 14:07:56 +0000 (16:07 +0200)] 
libsmb: Use cli_smb2_qpathinfo() in cli_qpathinfo2()

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agolibsmb: Use cli_smb2_qpathinfo() for streams
Volker Lendecke [Fri, 18 Aug 2023 13:47:20 +0000 (15:47 +0200)] 
libsmb: Use cli_smb2_qpathinfo() for streams

Remove sync cli_smb2_qpathinfo_streams() wrapper.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agolibsmb: Add cli_smb2_qpathinfo_send/recv()
Volker Lendecke [Fri, 30 Jun 2023 20:43:43 +0000 (22:43 +0200)] 
libsmb: Add cli_smb2_qpathinfo_send/recv()

Wrap the create/qfileinfo/close, to be used in next patches

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agoselftest: Report time at which testsuite starts
Joseph Sutton [Thu, 17 Aug 2023 01:29:41 +0000 (13:29 +1200)] 
selftest: Report time at which testsuite starts

With no call to report_time() preceding it,
PlainFormatter.start_testsuite() would always claim that no time had
elapsed prior to the first testsuite starting to run. This gave a
misleading impression of the time spent running the first testsuite. Now
the time will be consistent with that reported for subsequent
testsuites, and will properly include any time that test environments
took to start up.

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 Aug 22 00:36:52 UTC 2023 on atb-devel-224

2 years agoselftest: Fix subunit reporting the time incorrectly
Joseph Sutton [Thu, 17 Aug 2023 00:46:17 +0000 (12:46 +1200)] 
selftest: Fix subunit reporting the time incorrectly

Although report_time() would output the time in UTC, it neglected to
specify the timezone offset. Thus subunithelper.parse_results() would
interpret the time string it was given as being in local time.
TestProtocolClient.time() then converted that *back* into UTC, giving an
incorrect result (unless UTC is your local timezone).

Fix this by having report_time() indicate that the time zone is UTC.

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

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2 years agoselftest: Remove leftover from debugging
Joseph Sutton [Thu, 17 Aug 2023 01:42:47 +0000 (13:42 +1200)] 
selftest: Remove leftover from debugging

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2 years agoselftest: Remove unused variable
Joseph Sutton [Wed, 16 Aug 2023 03:20:48 +0000 (15:20 +1200)] 
selftest: Remove unused variable

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2 years agoselftest: Remove semicolon
Joseph Sutton [Wed, 16 Aug 2023 03:19:05 +0000 (15:19 +1200)] 
selftest: Remove semicolon

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2 years agos4:torture: Fix code spelling
Joseph Sutton [Wed, 2 Aug 2023 02:52:13 +0000 (14:52 +1200)] 
s4:torture: Fix code spelling

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2 years agos4:smb_server: Fix code spelling
Joseph Sutton [Tue, 1 Aug 2023 03:52:07 +0000 (15:52 +1200)] 
s4:smb_server: Fix code spelling

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2 years agos4:kdc: Use smb_krb5_make_data()
Joseph Sutton [Wed, 16 Aug 2023 03:57:53 +0000 (15:57 +1200)] 
s4:kdc: Use smb_krb5_make_data()

smb_krb5_make_data() sets the magic field, which we were previously
ignoring. We should also not set krb5_data::length if krb5_data::data is
NULL.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2 years agos4:kdc: Use ‘krb5_error_code’ for return types
Joseph Sutton [Wed, 16 Aug 2023 03:57:00 +0000 (15:57 +1200)] 
s4:kdc: Use ‘krb5_error_code’ for return types

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2 years agos4:kdc: Set SAMBA_KDC_FLAG_PROTOCOL_TRANSITION flag for MIT Kerberos
Joseph Sutton [Tue, 15 Aug 2023 22:18:59 +0000 (10:18 +1200)] 
s4:kdc: Set SAMBA_KDC_FLAG_PROTOCOL_TRANSITION flag for MIT Kerberos

This flag was set in commit 461dc44e740aacad41bb0df0552560d1eb3c6ea8,
but only in mit_samba_reget_pac(); it was not set in the newer function,
mit_samba_update_pac(), used with MIT Kerberos 1.20 and above.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2 years agos4:kdc: Remove support code for older versions of MIT Kerberos
Joseph Sutton [Tue, 15 Aug 2023 03:16:57 +0000 (15:16 +1200)] 
s4:kdc: Remove support code for older versions of MIT Kerberos

The oldest version we now support is 1.21. For every supported version
we can be certain that KRB5_KDB_API_VERSION >= 10 and
KRB5_KDB_DAL_MAJOR_VERSION >= 9.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2 years agos4:kdc: Do not panic if authsam_logon_success_accounting() fails
Joseph Sutton [Sun, 13 Aug 2023 22:50:37 +0000 (10:50 +1200)] 
s4:kdc: Do not panic if authsam_logon_success_accounting() fails

In hdb_samba4_audit(), ERR_GENERIC signals an unexpected situation — if
we encounter that error code while running under selftest, we’ll panic.
In response to an expected event such as the failure of
authsam_logon_success_accounting(), it’s more appropriate to continue to
run.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2 years agos3:rpc_server: Remove unnecessary cast
Joseph Sutton [Wed, 9 Aug 2023 04:54:02 +0000 (16:54 +1200)] 
s3:rpc_server: Remove unnecessary cast

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2 years agos3:libnet: Fix reference to incorrect function names
Joseph Sutton [Tue, 15 Aug 2023 21:47:18 +0000 (09:47 +1200)] 
s3:libnet: Fix reference to incorrect function names

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2 years agos3:libnet: Remove unnecessary cast
Joseph Sutton [Wed, 9 Aug 2023 04:53:21 +0000 (16:53 +1200)] 
s3:libnet: Remove unnecessary cast

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2 years agopython:tests: Save files with intended contents
Joseph Sutton [Wed, 16 Aug 2023 23:13:50 +0000 (11:13 +1200)] 
python:tests: Save files with intended contents

We presumably here meant to use the variable ‘contents’, not
‘test_contents’.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2 years agopython:tests: Fix spelling
Joseph Sutton [Wed, 16 Aug 2023 23:07:27 +0000 (11:07 +1200)] 
python:tests: Fix spelling

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2 years agopython:tests: Reuse policies and silos created by setUp() across all tests
Joseph Sutton [Thu, 17 Aug 2023 01:29:49 +0000 (13:29 +1200)] 
python:tests: Reuse policies and silos created by setUp() across all tests

We now create the claims in setUp() only once, preserving them so as to
reuse them across all of the tests using this class. Then we finally
delete them all in tearDownClass().

addClassCleanup() could make this cleaner, but it’s available only in
Python 3.8 and above.

This change reduces the time taken by my machine to run
samba.tests.samba_tool.domain_auth_policy from two minutes to ten
seconds.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2 years agopython:tests: Reuse claims created by setUp() across all tests
Joseph Sutton [Wed, 16 Aug 2023 22:27:44 +0000 (10:27 +1200)] 
python:tests: Reuse claims created by setUp() across all tests

We now create the claims in setUp() only once, preserving them so as to
reuse them across all of the tests in this class. Then we finally delete
them all in tearDownClass().

addClassCleanup() could make this cleaner, but it’s available only in
Python 3.8 and above.

This change reduces the time taken by my machine to run these tests from
four minutes to twenty seconds.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2 years agopython:tests: Make getSamDB() a static method
Joseph Sutton [Wed, 16 Aug 2023 22:22:35 +0000 (10:22 +1200)] 
python:tests: Make getSamDB() a static method

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2 years agopython:subunit: Use ‘is’ to compare variables with singletons
Joseph Sutton [Thu, 17 Aug 2023 01:29:00 +0000 (13:29 +1200)] 
python:subunit: Use ‘is’ to compare variables with singletons

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2 years agopython:subunit: Fix docstring
Joseph Sutton [Thu, 17 Aug 2023 00:45:05 +0000 (12:45 +1200)] 
python:subunit: Fix docstring

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2 years agopython:netcmd: Remove semicolon
Joseph Sutton [Wed, 16 Aug 2023 23:06:01 +0000 (11:06 +1200)] 
python:netcmd: Remove semicolon

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2 years agopython:netcmd: Add missing newlines to error messages
Joseph Sutton [Sun, 6 Aug 2023 22:25:12 +0000 (10:25 +1200)] 
python:netcmd: Add missing newlines to error messages

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2 years agopidl: Use non-existent function dissect_ndr_int64()
Joseph Sutton [Tue, 15 Aug 2023 21:27:37 +0000 (09:27 +1200)] 
pidl: Use non-existent function dissect_ndr_int64()

This function does not exist yet, but Wireshark can implement it if they
ever choose to regenerate their NDR dissectors.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2 years agolibrpc:ndr: Use portable integer types
Joseph Sutton [Tue, 15 Aug 2023 00:37:55 +0000 (12:37 +1200)] 
librpc:ndr: Use portable integer types

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2 years agolibcli/auth: Remove unnecessary casts
Joseph Sutton [Wed, 9 Aug 2023 04:52:31 +0000 (16:52 +1200)] 
libcli/auth: Remove unnecessary casts

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2 years agolib:krb5_wrap: Fix references to incorrect function names
Joseph Sutton [Tue, 15 Aug 2023 21:46:49 +0000 (09:46 +1200)] 
lib:krb5_wrap: Fix references to incorrect function names

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2 years agolib:krb5_wrap: Fix code spelling
Joseph Sutton [Tue, 15 Aug 2023 21:46:18 +0000 (09:46 +1200)] 
lib:krb5_wrap: Fix code spelling

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agotests/krb5: Remove incorrect comments
Joseph Sutton [Tue, 15 Aug 2023 00:36:05 +0000 (12:36 +1200)] 
tests/krb5: Remove incorrect comments

Now that the INT64 claim IDL definition has been corrected, these tests
should pass against Windows.

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

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 Aug 15 19:41:50 UTC 2023 on atb-devel-224

3 years agoclaims.idl: Use ‘int64’ instead of ‘dlong’ for INT64 claims
Joseph Sutton [Tue, 15 Aug 2023 00:31:54 +0000 (12:31 +1200)] 
claims.idl: Use ‘int64’ instead of ‘dlong’ for INT64 claims

This field is supposed to be aligned to eight bytes, but the ‘dlong’
type is aligned to only four bytes. This discrepancy resulted in claims
being encoded and decoded incorrectly.

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

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agolibrpc:ndr: Add ‘int64’ type
Joseph Sutton [Tue, 15 Aug 2023 00:29:03 +0000 (12:29 +1200)] 
librpc:ndr: Add ‘int64’ type

This type behaves like a signed variant of ‘hyper’. Unlike the existing
‘dlong’ type, which has four byte alignment, ‘int64’ is aligned to eight
bytes.

Bump the NDR version to 3.0.1.

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

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agotests/krb5: Add a test decoding INT64 PAC claims issued by Windows
Joseph Sutton [Tue, 15 Aug 2023 00:21:30 +0000 (12:21 +1200)] 
tests/krb5: Add a test decoding INT64 PAC claims issued by Windows

Our NDR code currently handles INT64 claims incorrectly.

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

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agotests/krb5: Shorten long lines
Joseph Sutton [Tue, 15 Aug 2023 00:20:50 +0000 (12:20 +1200)] 
tests/krb5: Shorten long lines

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

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agotests/krb5: Remove unused import
Joseph Sutton [Tue, 15 Aug 2023 00:20:17 +0000 (12:20 +1200)] 
tests/krb5: Remove unused import

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

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agos3: smbd: Ensure init_smb1_request() zeros out what the incoming pointer points to.
Jeremy Allison [Sat, 12 Aug 2023 00:28:53 +0000 (17:28 -0700)] 
s3: smbd: Ensure init_smb1_request() zeros out what the incoming pointer points to.

Remove the now unneeded req->xxx = NULL assignments (and the
deliberately bogus req->session = (void *)0xDEADBEEF one
used to demonstrate the bug).

Remove knownfail.

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

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): Tue Aug 15 12:06:36 UTC 2023 on atb-devel-224

3 years agos3: torture: Add SMB1-NEGOTIATE-TCON that shows the SMB1 server crashes on the uninit...
Jeremy Allison [Sat, 12 Aug 2023 00:18:26 +0000 (17:18 -0700)] 
s3: torture: Add SMB1-NEGOTIATE-TCON that shows the SMB1 server crashes on the uninitialized req->session.

Found by Robert Morris <rtm@lcs.mit.edu>.

Adds knownfail.

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

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Noel Power <nopower@samba.org>
3 years agos3: smbd: init_smb1_request() isn't being passed zero'ed memory from any codepath.
Jeremy Allison [Sat, 12 Aug 2023 00:14:38 +0000 (17:14 -0700)] 
s3: smbd: init_smb1_request() isn't being passed zero'ed memory from any codepath.

If a client does a SMB1 NEGPROT followed by SMB1 TCON
then req->session is left uninitialized.

Show this causes a crash by deliberately initializing
req->session to an invalid pointer. This will be removed
once the test shows the crash, and the fix is added to
cause init_smb1_request() to zero the memory passed in.

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

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Noel Power <npower@samba.org>
3 years agoctdb-common: Set immediate mode for pcap capture
Martin Schwenke [Tue, 15 Aug 2023 02:34:20 +0000 (12:34 +1000)] 
ctdb-common: Set immediate mode for pcap capture

Fix a problem where ctdb_killtcp (almost always) fails to capture
packets with --enable-pcap and libpcap ≥ 1.9.1.  The problem is due to
a gradual change in libpcap semantics when using
pcap_get_selectable_fd(3PCAP) to get a file descriptor and then using
that file descriptor in non-blocking mode.

pcap_set_immediate_mode(3PCAP) says:

  pcap_set_immediate_mode() sets whether immediate mode should be set
  on a capture handle when the handle is activated.  In immediate
  mode, packets are always delivered as soon as they arrive, with no
  buffering.

and

  On Linux, with previous releases of libpcap, capture devices are
  always in immediate mode; however, in 1.5.0 and later, they are, by
  default, not in immediate mode, so if pcap_set_immediate_mode() is
  available, it should be used.

However, it wasn't until libpcap commit
2ade7676101366983bd4f86bc039ffd25da8c126 (before libpcap 1.9.1) that
it became a requirement to use pcap_set_immediate_mode(), even with a
timeout of 0.

More explanation in this libpcap issue comment:

  https://github.com/the-tcpdump-group/libpcap/issues/860#issuecomment-541204548

Do a configure check for pcap_set_immediate_mode() even though it has
existed for 10 years.  It is easy enough.

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

Signed-off-by: Martin Schwenke <mschwenke@ddn.com>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Autobuild-User(master): Amitay Isaacs <amitay@samba.org>
Autobuild-Date(master): Tue Aug 15 10:53:52 UTC 2023 on atb-devel-224

3 years agoctdb-common: Replace pcap_open_live() by lower level calls
Martin Schwenke [Tue, 15 Aug 2023 00:57:59 +0000 (10:57 +1000)] 
ctdb-common: Replace pcap_open_live() by lower level calls

A subsequent commit will insert an additional call before
pcap_activate().

This sequence of calls is taken from the source for pcap_open_live(),
so there should be no change in behaviour.

Given the defaults set by pcap_create_common(), it would be possible
to omit the calls to pcap_set_promisc() and pcap_set_timeout().
However, those defaults don't seem to be well documented, so continue
to explicitly set everything that was set before.

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

Signed-off-by: Martin Schwenke <mschwenke@ddn.com>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
3 years agoctdb-common: Improve error handling
Martin Schwenke [Tue, 15 Aug 2023 00:43:57 +0000 (10:43 +1000)] 
ctdb-common: Improve error handling

Factor out a failure label, which will get more use in subsequent
commits, and only set private_data when success is certain.

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

Signed-off-by: Martin Schwenke <mschwenke@ddn.com>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
3 years agogitlab-ci: Add running codespell
Andreas Schneider [Wed, 22 Mar 2023 09:15:54 +0000 (10:15 +0100)] 
gitlab-ci: Add running codespell

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Mon Aug 14 22:44:58 UTC 2023 on atb-devel-224

3 years agoscripts: Add codespell check
Andreas Schneider [Tue, 14 Mar 2023 07:51:03 +0000 (08:51 +0100)] 
scripts: Add codespell check

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agowintest: Fix code spelling
Andreas Schneider [Thu, 3 Aug 2023 13:50:30 +0000 (15:50 +0200)] 
wintest: Fix code spelling

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agotests: Fix code spelling
Andreas Schneider [Thu, 3 Aug 2023 13:50:07 +0000 (15:50 +0200)] 
tests: Fix code spelling

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agotestprogs: Fix code spelling
Andreas Schneider [Thu, 3 Aug 2023 13:49:45 +0000 (15:49 +0200)] 
testprogs: Fix code spelling

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agos4:wrepl_server: Fix code spelling
Andreas Schneider [Thu, 3 Aug 2023 13:48:16 +0000 (15:48 +0200)] 
s4:wrepl_server: Fix code spelling

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agos4:wrepl_server: Remove trailing white spaces
Andreas Schneider [Thu, 3 Aug 2023 13:49:06 +0000 (15:49 +0200)] 
s4:wrepl_server: Remove trailing white spaces

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agos4:torture: Fix code spelling
Andreas Schneider [Thu, 3 Aug 2023 13:46:43 +0000 (15:46 +0200)] 
s4:torture: Fix code spelling

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agos4:torture:smb2: Fix code spelling
Andreas Schneider [Thu, 3 Aug 2023 13:45:39 +0000 (15:45 +0200)] 
s4:torture:smb2: Fix code spelling

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agos4:torture:rpc: Fix code spelling
Andreas Schneider [Thu, 3 Aug 2023 13:45:20 +0000 (15:45 +0200)] 
s4:torture:rpc: Fix code spelling

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agos4:torture:raw: Fix code spelling
Andreas Schneider [Thu, 3 Aug 2023 13:45:05 +0000 (15:45 +0200)] 
s4:torture:raw: Fix code spelling

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agos4:torture:nbt: Fix code spelling
Andreas Schneider [Thu, 3 Aug 2023 13:44:41 +0000 (15:44 +0200)] 
s4:torture:nbt: Fix code spelling

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agos4:torture:nbench: Fix code spelling
Andreas Schneider [Thu, 3 Aug 2023 13:44:26 +0000 (15:44 +0200)] 
s4:torture:nbench: Fix code spelling

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agos4:torture:libnetapi: Fix code spelling
Andreas Schneider [Thu, 3 Aug 2023 13:44:01 +0000 (15:44 +0200)] 
s4:torture:libnetapi: Fix code spelling

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agos4:torture:ldb: Fix code spelling
Andreas Schneider [Thu, 3 Aug 2023 13:43:39 +0000 (15:43 +0200)] 
s4:torture:ldb: Fix code spelling

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agos4:torture:ldap: Fix code spelling
Andreas Schneider [Thu, 3 Aug 2023 13:43:00 +0000 (15:43 +0200)] 
s4:torture:ldap: Fix code spelling

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agos4:torture:ldap: Remove trailing white spaces
Andreas Schneider [Thu, 3 Aug 2023 13:59:51 +0000 (15:59 +0200)] 
s4:torture:ldap: Remove trailing white spaces

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agos4:torture:krb5: Fix code spelling
Andreas Schneider [Thu, 3 Aug 2023 13:42:18 +0000 (15:42 +0200)] 
s4:torture:krb5: Fix code spelling

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agos4:torture:dns: Fix code spelling
Andreas Schneider [Thu, 3 Aug 2023 13:41:49 +0000 (15:41 +0200)] 
s4:torture:dns: Fix code spelling

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agos4:torture:basic: Fix code spelling
Andreas Schneider [Thu, 3 Aug 2023 13:41:02 +0000 (15:41 +0200)] 
s4:torture:basic: Fix code spelling

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agos4:torture:drs: Fix code spelling
Andreas Schneider [Thu, 3 Aug 2023 13:40:42 +0000 (15:40 +0200)] 
s4:torture:drs: Fix code spelling

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agos4:torture:dfs: Fix code spelling
Andreas Schneider [Thu, 3 Aug 2023 13:40:20 +0000 (15:40 +0200)] 
s4:torture:dfs: Fix code spelling

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agos4:torture:auth: Fix code spelling
Andreas Schneider [Thu, 3 Aug 2023 13:39:59 +0000 (15:39 +0200)] 
s4:torture:auth: Fix code spelling

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agos4:smb_server: Fix code spelling
Andreas Schneider [Thu, 3 Aug 2023 13:35:35 +0000 (15:35 +0200)] 
s4:smb_server: Fix code spelling

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agos4:setup: Fix code spelling
Andreas Schneider [Thu, 3 Aug 2023 13:34:24 +0000 (15:34 +0200)] 
s4:setup: Fix code spelling

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agos3:ldap_server: Fix code spelling
Andreas Schneider [Thu, 3 Aug 2023 13:29:56 +0000 (15:29 +0200)] 
s3:ldap_server: Fix code spelling

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agos4:selftest: Fix code spelling
Andreas Schneider [Thu, 3 Aug 2023 13:28:06 +0000 (15:28 +0200)] 
s4:selftest: Fix code spelling

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agos4:scripting: Fix code spelling
Andreas Schneider [Thu, 3 Aug 2023 12:45:16 +0000 (14:45 +0200)] 
s4:scripting: Fix code spelling

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agos4:samba: Fix code spelling
Andreas Schneider [Thu, 3 Aug 2023 12:42:10 +0000 (14:42 +0200)] 
s4:samba: Fix code spelling

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agos4:rpc_server: Fix code spelling
Andreas Schneider [Thu, 3 Aug 2023 12:40:26 +0000 (14:40 +0200)] 
s4:rpc_server: Fix code spelling

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agos4:ntvfs: Fix code spelling
Andreas Schneider [Thu, 3 Aug 2023 12:40:03 +0000 (14:40 +0200)] 
s4:ntvfs: Fix code spelling

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agos4:librpc: Fix code spelling
Andreas Schneider [Thu, 3 Aug 2023 12:37:09 +0000 (14:37 +0200)] 
s4:librpc: Fix code spelling

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agos4:libnet: Fix code spelling
Andreas Schneider [Thu, 3 Aug 2023 12:36:50 +0000 (14:36 +0200)] 
s4:libnet: Fix code spelling

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agos4:libcli: Fix code spelling
Andreas Schneider [Thu, 3 Aug 2023 12:34:51 +0000 (14:34 +0200)] 
s4:libcli: Fix code spelling

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agos4:libcli: Remove tailing white spaces
Andreas Schneider [Fri, 4 Aug 2023 05:21:18 +0000 (07:21 +0200)] 
s4:libcli: Remove tailing white spaces

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agos4:lib: Fix code spelling
Andreas Schneider [Thu, 3 Aug 2023 12:32:27 +0000 (14:32 +0200)] 
s4:lib: Fix code spelling

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agoaudit_logging: Simplify json_add_stringn() with json_stringn()
Volker Lendecke [Thu, 10 Aug 2023 13:05:22 +0000 (15:05 +0200)] 
audit_logging: Simplify json_add_stringn() with json_stringn()

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 Aug 14 20:51:11 UTC 2023 on atb-devel-224

3 years agotevent: Fix a typo
Volker Lendecke [Wed, 9 Aug 2023 14:22:03 +0000 (16:22 +0200)] 
tevent: Fix a typo

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agolibsmb: A bit README.Coding for cli_qpathinfo2()
Volker Lendecke [Wed, 5 Jul 2023 09:58:39 +0000 (11:58 +0200)] 
libsmb: A bit README.Coding for cli_qpathinfo2()

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agosmbd: Pass down "dirfsp" to smb_unix_mknod()
Volker Lendecke [Wed, 5 Jul 2023 06:27:03 +0000 (08:27 +0200)] 
smbd: Pass down "dirfsp" to smb_unix_mknod()

Avoids a call to parent_pathref()

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agosmbd: Use "dirfsp" in smb_posix_unlink()
Volker Lendecke [Tue, 4 Jul 2023 15:21:32 +0000 (17:21 +0200)] 
smbd: Use "dirfsp" in smb_posix_unlink()

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agosmbd: Use "dirfsp" in smb_posix_open()
Volker Lendecke [Tue, 4 Jul 2023 15:19:40 +0000 (17:19 +0200)] 
smbd: Use "dirfsp" in smb_posix_open()

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agosmbstatus: Fix CID 1507865 Uninitialized pointer read
Volker Lendecke [Wed, 2 Aug 2023 16:39:20 +0000 (18:39 +0200)] 
smbstatus: Fix CID 1507865 Uninitialized pointer read

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agosmbstatus: Fix CID 1507870 Uninitialized pointer read
Volker Lendecke [Wed, 2 Aug 2023 16:38:22 +0000 (18:38 +0200)] 
smbstatus: Fix CID 1507870 Uninitialized pointer read

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agodbwrap: Simplify dbwrap_change_int32_atomic_action()
Volker Lendecke [Wed, 12 Jul 2023 23:19:43 +0000 (01:19 +0200)] 
dbwrap: Simplify dbwrap_change_int32_atomic_action()

Use dbwrap_do_locked()

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agodbwrap: Simplify dbwrap_change_uint32_atomic_action()
Volker Lendecke [Wed, 12 Jul 2023 23:03:14 +0000 (01:03 +0200)] 
dbwrap: Simplify dbwrap_change_uint32_atomic_action()

Use dbwrap_do_locked()

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agosmbd: Fix DBG macro
Volker Lendecke [Wed, 26 Jul 2023 22:47:23 +0000 (00:47 +0200)] 
smbd: Fix DBG macro

This augments 5c37615efa2, the DBG macros already prepend the the function name

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agosmbd: Use struct initialization
Volker Lendecke [Wed, 26 Jul 2023 14:49:24 +0000 (16:49 +0200)] 
smbd: Use struct initialization

Avoid an explicit ZERO_STRUCT

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agolib: Move few bytes of R/W data to R/O text
Volker Lendecke [Mon, 10 Jul 2023 16:17:36 +0000 (18:17 +0200)] 
lib: Move few bytes of R/W data to R/O text

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agoidmap:fix whitespace
Volker Lendecke [Tue, 24 Jan 2023 17:01:43 +0000 (18:01 +0100)] 
idmap:fix whitespace

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agoidmap_tdb: Remove a variable never used
Volker Lendecke [Tue, 24 Jan 2023 10:04:24 +0000 (11:04 +0100)] 
idmap_tdb: Remove a variable never used

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agoidmap: Fix whitespace
Volker Lendecke [Tue, 24 Jan 2023 10:03:28 +0000 (11:03 +0100)] 
idmap: Fix whitespace

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agopassdb: Fix a DBG statement
Volker Lendecke [Tue, 24 Jan 2023 09:28:26 +0000 (10:28 +0100)] 
passdb: Fix a DBG statement

This is not pdb_getsampwent()

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>