]> git.ipfire.org Git - thirdparty/samba.git/log
thirdparty/samba.git
5 months agopython:tdb_util: "samba-tool domain backup offline" hangs
Andrea Venturoli [Wed, 19 Feb 2025 07:51:16 +0000 (08:51 +0100)] 
python:tdb_util: "samba-tool domain backup offline" hangs

GNU getopt(3) is by default non-POSIX compliant and accepts options after
positional arguments (unless forced with POSIXLY_CORRECT). This is not portable,
e..g., on FreeBSD. Put options first and then positional arguments.

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

Signed-off-by: Andrea Venturoli <ml@netfence.it>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Jennifer Sutton <jennifersutton@catalyst.net.nz>
(cherry picked from commit 7e083a6b3a12933b79ef19ccbd4c13bfa0203498)

Autobuild-User(v4-22-test): Jule Anger <janger@samba.org>
Autobuild-Date(v4-22-test): Tue Mar  4 14:57:29 UTC 2025 on atb-devel-224

5 months agoVERSION: Bump version up to Samba 4.22.0rc5...
Jule Anger [Thu, 27 Feb 2025 12:32:05 +0000 (13:32 +0100)] 
VERSION: Bump version up to Samba 4.22.0rc5...

and re-enable GIT_SNAPSHOT.

Signed-off-by: Jule Anger <janger@samba.org>
5 months agoVERSION: Disable GIT_SNAPSHOT for the 4.22.0rc4 release. samba-4.22.0rc4
Jule Anger [Thu, 27 Feb 2025 12:31:39 +0000 (13:31 +0100)] 
VERSION: Disable GIT_SNAPSHOT for the 4.22.0rc4 release.

Signed-off-by: Jule Anger <janger@samba.org>
5 months agoWHATSNEW: Add release notes for Samba 4.22.0rc4.
Jule Anger [Thu, 27 Feb 2025 12:30:58 +0000 (13:30 +0100)] 
WHATSNEW: Add release notes for Samba 4.22.0rc4.

Signed-off-by: Jule Anger <janger@samba.org>
5 months agoWHATSNEW: add himmelblaud
Jule Anger [Thu, 27 Feb 2025 12:23:55 +0000 (13:23 +0100)] 
WHATSNEW: add himmelblaud

Signed-off-by: David Mulder <dmulder@samba.org>
5 months agoWHATSNEW: add krb5 netlogon smb.conf options
Stefan Metzmacher [Sat, 22 Feb 2025 15:54:42 +0000 (16:54 +0100)] 
WHATSNEW: add krb5 netlogon smb.conf options

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

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(v4-22-test): Jule Anger <janger@samba.org>
Autobuild-Date(v4-22-test): Wed Feb 26 10:09:36 UTC 2025 on atb-devel-224

5 months agos3:testparm: make it clear that 'client use krb5 netlogon' is experimental
Stefan Metzmacher [Sat, 22 Feb 2025 14:58:51 +0000 (15:58 +0100)] 
s3:testparm: make it clear that 'client use krb5 netlogon' is experimental

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

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): Mon Feb 24 08:43:55 UTC 2025 on atb-devel-224

(cherry picked from commit 154875244c5a349e04605cad1f66cb26aeaf86d7)

5 months agosamba-tool/testparm: make it clear that 'client use krb5 netlogon' is experimental
Stefan Metzmacher [Sat, 22 Feb 2025 14:58:51 +0000 (15:58 +0100)] 
samba-tool/testparm: make it clear that 'client use krb5 netlogon' is experimental

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

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
(cherry picked from commit 5fc5f90dee13ab5168c22fd53b89c582f3d582e9)

5 months agodocs-xml/smbdotconf: make it clear that 'client use krb5 netlogon' is experimental
Stefan Metzmacher [Sat, 22 Feb 2025 14:58:51 +0000 (15:58 +0100)] 
docs-xml/smbdotconf: make it clear that 'client use krb5 netlogon' is experimental

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

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
(cherry picked from commit 54514ad809ef2e70b772906a815b27a0950a5341)

5 months agoVERSION: Bump version up to Samba 4.22.0rc4...
Jule Anger [Thu, 20 Feb 2025 12:56:38 +0000 (13:56 +0100)] 
VERSION: Bump version up to Samba 4.22.0rc4...

and re-enable GIT_SNAPSHOT.

Signed-off-by: Jule Anger <janger@samba.org>
5 months agoVERSION: Disable GIT_SNAPSHOT for the 4.22.0rc3 release. samba-4.22.0rc3
Jule Anger [Thu, 20 Feb 2025 12:56:12 +0000 (13:56 +0100)] 
VERSION: Disable GIT_SNAPSHOT for the 4.22.0rc3 release.

Signed-off-by: Jule Anger <janger@samba.org>
5 months agoWHATSNEW: Add release notes for Samba 4.22.0rc3.
Jule Anger [Thu, 20 Feb 2025 12:55:35 +0000 (13:55 +0100)] 
WHATSNEW: Add release notes for Samba 4.22.0rc3.

Signed-off-by: Jule Anger <janger@samba.org>
5 months agopython:lsa_utils: Fix fallback to OpenPolicy2
Stefan Metzmacher [Wed, 17 Jul 2024 16:12:31 +0000 (18:12 +0200)] 
python:lsa_utils: Fix fallback to OpenPolicy2

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

Pair-Programmed-With: Andreas Schneider <asn@samba.org>
Signed-off-by: Andreas Schneider <asn@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Mon Feb 17 18:33:15 UTC 2025 on atb-devel-224

(cherry picked from commit a814f5d90a3fb85a94c9516dba224037e8fd76f1)

Autobuild-User(v4-22-test): Jule Anger <janger@samba.org>
Autobuild-Date(v4-22-test): Thu Feb 20 11:22:18 UTC 2025 on atb-devel-224

5 months agopython:lsa_utils: Don't use optional arguments for OpenPolicyFallback()
Andreas Schneider [Thu, 13 Feb 2025 09:31:49 +0000 (10:31 +0100)] 
python:lsa_utils: Don't use optional arguments for OpenPolicyFallback()

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

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit f9a3fc19f1e212c54351c3f94978e66fceeb8835)

5 months agopidl: Update documentation for DCERPC interface connections
Andreas Schneider [Mon, 17 Feb 2025 14:41:06 +0000 (15:41 +0100)] 
pidl: Update documentation for DCERPC interface connections

https://realpython.com/documenting-python-code/

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

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit 73ce15e7d5b7ea867849f1aa4fa5390830660f11)

5 months agolibrpc:pyrpc: Allow new authenticated rpc connection on the same transport as the...
Stefan Metzmacher [Wed, 17 Jul 2024 16:11:49 +0000 (18:11 +0200)] 
librpc:pyrpc: Allow new authenticated rpc connection on the same transport as the basis_connection

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

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
(cherry picked from commit 2c171fb1b8c88034a98c3aaf052e99ba5dbbafd9)

5 months agodcesrv_core: Make dcesrv_call_disconnect_after() public
Stefan Metzmacher [Wed, 17 Jul 2024 15:39:24 +0000 (17:39 +0200)] 
dcesrv_core: Make dcesrv_call_disconnect_after() public

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

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
(cherry picked from commit a094a29e426cc79e23bb4d866334d7735159fb41)

5 months agos3:rpc_client: Use cli_rpc_pipe_reopen_np_noauth() for OpenPolicy fallback
Stefan Metzmacher [Wed, 12 Feb 2025 11:45:19 +0000 (12:45 +0100)] 
s3:rpc_client: Use cli_rpc_pipe_reopen_np_noauth() for OpenPolicy fallback

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

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
(cherry picked from commit 3bbe35d42c4d4a0ce663580dfb035b6beb329ebb)

5 months agos3:rpc_cerver: Use dcerpc_lsa_open_policy3() for internal RPC
Stefan Metzmacher [Wed, 12 Feb 2025 13:17:30 +0000 (14:17 +0100)] 
s3:rpc_cerver: Use dcerpc_lsa_open_policy3() for internal RPC

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

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
(cherry picked from commit 0c68d9bc0cd5873f7b59be0fe93d64d6d47b5a57)

5 months agos3:rpc_client: Add cli_rpc_pipe_reopen_np_noauth()
Stefan Metzmacher [Wed, 12 Feb 2025 11:35:20 +0000 (12:35 +0100)] 
s3:rpc_client: Add cli_rpc_pipe_reopen_np_noauth()

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

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
(cherry picked from commit d2ac6221db48b93581d7ce48d31f8851c88b77bc)

5 months agopytests: test pysmbd with relative path names via samba-tool ntacl
Björn Baumbach [Thu, 13 Feb 2025 17:05:44 +0000 (18:05 +0100)] 
pytests: test pysmbd with relative path names via samba-tool ntacl

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

Signed-off-by: Björn Baumbach <bb@sernet.de>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Autobuild-User(master): Björn Baumbach <bb@sernet.de>
Autobuild-Date(master): Fri Feb 14 16:18:19 UTC 2025 on atb-devel-224

(cherry picked from commit 3e1c19c2c3f8b0bdf21301431bc886757fd4b3ce)

5 months agopysmbd: Fix interactive samba-tool use after 0bb35e246141
Volker Lendecke [Wed, 12 Feb 2025 12:45:42 +0000 (13:45 +0100)] 
pysmbd: Fix interactive samba-tool use after 0bb35e246141

samba-tool ntacl also calls into pysmbd, and 0bb35e246141 broke
relative path names. Thanks to Björn Baumbach <bb@sernet.de> for
testing interactively!!

Bug: https://bugzilla.samba.org/show_bug.cgi?id=15806
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
(cherry picked from commit 26705d047cb885957a49939370e03047429351b6)

5 months agopytests: test pysmbd with non-existent file
Björn Baumbach [Wed, 12 Feb 2025 16:15:37 +0000 (17:15 +0100)] 
pytests: test pysmbd with non-existent file

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

Signed-off-by: Björn Baumbach <bb@sernet.de>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
(cherry picked from commit 334f621e4b74e9cda735982e223aefc7eefb4631)

5 months agopysmbd: Init mangle_fns
Volker Lendecke [Mon, 13 Jan 2025 10:45:06 +0000 (11:45 +0100)] 
pysmbd: Init mangle_fns

openat_pathref_fsp() eventually calls mangling functions, so we have
to initialize them.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=15807
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
(cherry picked from commit 0a9946258eb4587f5c132805d7c44062c377f375)

5 months agomdssvc: support a few more attributes
Ralph Boehme [Wed, 29 Jan 2025 14:11:16 +0000 (15:11 +0100)] 
mdssvc: support a few more attributes

This adds support for the following Spotlight Metadata Attributes:

  _kMDItemFileName (another alias for kMDItemFSName and kMDItemDisplayName)
  kMDItemLastUsedDate
  kMDItemContentCreationDate
  kMDItemLogicalSize (another alias for kMDItemFSSize)

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

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit 0ba1a8d77694182058d1c01b54a8759bdf0e28a6)

Autobuild-User(v4-22-test): Jule Anger <janger@samba.org>
Autobuild-Date(v4-22-test): Mon Feb 17 17:21:35 UTC 2025 on atb-devel-224

5 months agondr: fix coda logic around in ndr_pull_security_ace()
Douglas Bagnall [Thu, 9 Jan 2025 03:14:05 +0000 (16:14 +1300)] 
ndr: fix coda logic around in ndr_pull_security_ace()

Sometimes an access allowed object ACE has unneeded trailing bytes,
like this:

                      aces: struct security_ace
                          type                     : SEC_ACE_TYPE_ACCESS_ALLOWED_OBJECT (5)
                          flags                    : 0x00 (0)
                                 0: SEC_ACE_FLAG_OBJECT_INHERIT
                                 0: SEC_ACE_FLAG_CONTAINER_INHERIT
                                 0: SEC_ACE_FLAG_NO_PROPAGATE_INHERIT
                                 0: SEC_ACE_FLAG_INHERIT_ONLY
                                 0: SEC_ACE_FLAG_INHERITED_ACE
                              0x00: SEC_ACE_FLAG_VALID_INHERIT (0)
                                 0: SEC_ACE_FLAG_SUCCESSFUL_ACCESS
                                 0: SEC_ACE_FLAG_FAILED_ACCESS
                          size                     : 0x0048 (72)
                          access_mask              : 0x00000100 (256)
                          object                   : union security_ace_object_ctr(case 1)
                          object: struct security_ace_object
                              flags                    : 0x00000001 (1)
                                     1: SEC_ACE_OBJECT_TYPE_PRESENT
                                     0: SEC_ACE_INHERITED_OBJECT_TYPE_PRESENT
                              type                     : union security_ace_object_type(case 1)
                              type                     : edacfd8f-ffb3-11d1-b41d-00a0c968f939
                              inherited_type           : union security_ace_object_inherited_type(case 0)
                          trustee                  : S-1-3-0
                          coda                     : union security_ace_coda(case 5)
                          ignored                  : DATA_BLOB length=32
  [0000] 00 00 00 00 00 00 00 00   00 00 00 00 00 00 00 00   ........ ........
  [0010] 00 00 00 00 00 00 00 00   00 00 00 00 00 00 00 00   ........ ........

which we need to pull in order to ignore.

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

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Thu Feb 13 15:15:40 UTC 2025 on atb-devel-224

(cherry picked from commit 67b09b481b06080d3f46878d60095f188ff18fb8)
[bugzilla link added in backport]

5 months agopytest: add ndr packing tests for security descriptors
Douglas Bagnall [Wed, 12 Feb 2025 02:29:28 +0000 (15:29 +1300)] 
pytest: add ndr packing tests for security descriptors

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

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Volker Lendecke <vl@samba.org>
(cherry picked from commit 455a0558c89312061f3b9ccaa577a4a60df7ee77)
[bugzilla link added in backport]

5 months agodocs: Update documentation for 'sync machine password to keytab'
Pavel Filipenský [Fri, 14 Feb 2025 16:27:26 +0000 (17:27 +0100)] 
docs: Update documentation for 'sync machine password to keytab'

Use specifier 'spn_prefixes=host' instead of 'host'

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

Signed-off-by: Pavel Filipenský <pfilipensky@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Pavel Filipensky <pfilipensky@samba.org>
Autobuild-Date(master): Sat Feb 15 19:21:56 UTC 2025 on atb-devel-224

(cherry picked from commit 7cae7aad1ca6dcd5e0a3a102f36af74fa49a2c2b)

5 months agos3:libads: Remove specifier for 'host' principal from 'sync machine password to keytab'
Pavel Filipenský [Fri, 14 Feb 2025 16:28:54 +0000 (17:28 +0100)] 
s3:libads: Remove specifier for 'host' principal from 'sync machine password to keytab'

Use specifier 'spn_prefixes=host' instead of 'host'

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

Signed-off-by: Pavel Filipenský <pfilipensky@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit ccc3b2b2fba7b5d223c79bffc0f655490aed19cf)

5 months agodocs-xml:smbdotconf: Document new options for 'sync machinepassword to keytab'
Pavel Filipenský [Tue, 14 Jan 2025 10:29:54 +0000 (11:29 +0100)] 
docs-xml:smbdotconf: Document new options for 'sync machinepassword to keytab'

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

Signed-off-by: Pavel Filipenský <pfilipensky@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
Autobuild-User(master): Pavel Filipensky <pfilipensky@samba.org>
Autobuild-Date(master): Thu Feb 13 18:45:21 UTC 2025 on atb-devel-224

(cherry picked from commit 7a662e097be5e0d3f7779fa544486968b8f57063)

5 months agos3: Add new keytab specifiers
Pavel Filipenský [Mon, 20 Jan 2025 15:00:51 +0000 (16:00 +0100)] 
s3: Add new keytab specifiers

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

Signed-off-by: Pavel Filipenský <pfilipensky@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
(cherry picked from commit 15e191736d3eaba83b2fb4b901e1df2214526b64)

5 months agovfs_ceph_new:minor logging improvement
Shweta Sodani [Wed, 5 Feb 2025 05:51:37 +0000 (11:21 +0530)] 
vfs_ceph_new:minor logging improvement

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

Signed-off-by: Shweta Sodani <ssodani@redhat.com>
Reviewed-by: Anoop C S <anoopcs@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
Autobuild-User(master): Günther Deschner <gd@samba.org>
Autobuild-Date(master): Fri Feb 14 10:57:50 UTC 2025 on atb-devel-224

(cherry picked from commit 6430e0a9fb7e9c368a3170f9cddd688a49aedb23)

5 months agoVERSION: Bump version up to Samba 4.22.0rc3...
Jule Anger [Thu, 13 Feb 2025 12:28:25 +0000 (13:28 +0100)] 
VERSION: Bump version up to Samba 4.22.0rc3...

and re-enable GIT_SNAPSHOT.

Signed-off-by: Jule Anger <janger@samba.org>
5 months agoVERSION: Disable GIT_SNAPSHOT for the 4.22.0rc2 release. samba-4.22.0rc2
Jule Anger [Thu, 13 Feb 2025 12:28:08 +0000 (13:28 +0100)] 
VERSION: Disable GIT_SNAPSHOT for the 4.22.0rc2 release.

Signed-off-by: Jule Anger <janger@samba.org>
5 months agoWHATSNEW: Add release notes for Samba 4.22.0rc2.
Jule Anger [Thu, 13 Feb 2025 12:27:24 +0000 (13:27 +0100)] 
WHATSNEW: Add release notes for Samba 4.22.0rc2.

Signed-off-by: Jule Anger <janger@samba.org>
5 months agolibnet4: free tevent request even on error
Björn Baumbach [Mon, 10 Feb 2025 16:42:12 +0000 (17:42 +0100)] 
libnet4: free tevent request even on error

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

Signed-off-by: Björn Baumbach <bb@sernet.de>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Björn Baumbach <bb@sernet.de>
Autobuild-Date(master): Tue Feb 11 11:05:37 UTC 2025 on atb-devel-224

(cherry picked from commit 8f72b5673e6a26c5a6a69dbc56e91027d0dabe37)

Autobuild-User(v4-22-test): Jule Anger <janger@samba.org>
Autobuild-Date(v4-22-test): Wed Feb 12 11:37:37 UTC 2025 on atb-devel-224

5 months agolibnet4: check return value of DC lookup
Björn Baumbach [Fri, 7 Feb 2025 11:03:18 +0000 (12:03 +0100)] 
libnet4: check return value of DC lookup

Avoids possible segmentation fault when the lookup fails.

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

Pair-programmed-with: Volker Lendecke <vl@samba.org>
Signed-off-by: Volker Lendecke <vl@samba.org>
Signed-off-by: Björn Baumbach <bb@sernet.de>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Autobuild-User(master): Douglas Bagnall <dbagnall@samba.org>
Autobuild-Date(master): Sat Feb  8 03:30:27 UTC 2025 on atb-devel-224

(cherry picked from commit c5511056708fb1be3c2e1b2ad61af6643f92051c)

6 months agoVERSION: Bump version up to Samba 4.22.0rc2...
Jule Anger [Thu, 6 Feb 2025 12:40:26 +0000 (13:40 +0100)] 
VERSION: Bump version up to Samba 4.22.0rc2...

and re-enable GIT_SNAPSHOT.

Signed-off-by: Jule Anger <janger@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
6 months agoVERSION: Disable GIT_SNAPSHOT for the Samba 4.22.0rc1 release. samba-4.22.0rc1
Jule Anger [Thu, 6 Feb 2025 09:48:47 +0000 (10:48 +0100)] 
VERSION: Disable GIT_SNAPSHOT for the Samba 4.22.0rc1 release.

Signed-off-by: Jule Anger <janger@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
6 months agoWHATSNEW: Up to Samba 4.22.0rc1.
Jule Anger [Thu, 6 Feb 2025 09:59:11 +0000 (10:59 +0100)] 
WHATSNEW: Up to Samba 4.22.0rc1.

Signed-off-by: Jule Anger <janger@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
6 months agotevent: version 0.16.2 tevent-0.16.2
Jule Anger [Thu, 6 Feb 2025 10:18:30 +0000 (11:18 +0100)] 
tevent: version 0.16.2

* Documentation fixes
* Add LGPLv3 LICENSE file

Signed-off-by: Jule Anger <janger@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
6 months agotalloc: version 2.4.3 talloc-2.4.3
Jule Anger [Thu, 6 Feb 2025 10:16:38 +0000 (11:16 +0100)] 
talloc: version 2.4.3

* Testsuite and documenation fixes
* Add LGPLv3 LICENSE file

Signed-off-by: Jule Anger <janger@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
6 months agotdb: version 1.4.13 tdb-1.4.13
Jule Anger [Thu, 6 Feb 2025 10:14:44 +0000 (11:14 +0100)] 
tdb: version 1.4.13

* Add LGPLv3 LICENSE file

Signed-off-by: Jule Anger <janger@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
6 months agovfs_gpfs: Remove one whitespace
Christof Schmitt [Wed, 5 Feb 2025 21:21:55 +0000 (14:21 -0700)] 
vfs_gpfs: Remove one whitespace

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
6 months agogpfswrap: Remove unused gpfs_set_winattrs_path
Christof Schmitt [Tue, 4 Feb 2025 22:09:56 +0000 (15:09 -0700)] 
gpfswrap: Remove unused gpfs_set_winattrs_path

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
6 months agogpfswrap: Remove unused gpfs_fstat_x
Christof Schmitt [Tue, 4 Feb 2025 22:07:52 +0000 (15:07 -0700)] 
gpfswrap: Remove unused gpfs_fstat_x

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
6 months agogpfswrap: Remove unused gpfs_stat_x wrapper
Christof Schmitt [Tue, 4 Feb 2025 21:57:28 +0000 (14:57 -0700)] 
gpfswrap: Remove unused gpfs_stat_x wrapper

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
6 months agovfs_gpfs: Remove winattr calls from vfs_gpfs_fntimes
Christof Schmitt [Tue, 4 Feb 2025 21:05:58 +0000 (14:05 -0700)] 
vfs_gpfs: Remove winattr calls from vfs_gpfs_fntimes

The call to the default function for fntimes already calls back into
fset_dos_attributes to set the create time. It is not necessary to
repeat the code in vfs_gpfs_fntimes.

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
6 months agovfs_gpfs: Set creation time from vfs_gpfs_fset_dos_attributes
Christof Schmitt [Tue, 4 Feb 2025 21:40:34 +0000 (14:40 -0700)] 
vfs_gpfs: Set creation time from vfs_gpfs_fset_dos_attributes

This matches the default behavior of fset_dos_attributes and allows
removing the fallback case from vfs_gpfs_fntimes.

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
6 months agovfs_gpfs: Simplify vfs_gpfs_fset_dos_attributes
Christof Schmitt [Tue, 4 Feb 2025 20:35:29 +0000 (13:35 -0700)] 
vfs_gpfs: Simplify vfs_gpfs_fset_dos_attributes

The gpfs_set_winattrs API call accepts O_PATH descriptors since GPFS
5.1.2, so switch to fsp_get_pathref_fd and remove the fallback logic.

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
6 months agovfs_gpfs: Use gpfs_get_winattrs instead of gpfs_fstat_x
Christof Schmitt [Tue, 4 Feb 2025 20:18:21 +0000 (13:18 -0700)] 
vfs_gpfs: Use gpfs_get_winattrs instead of gpfs_fstat_x

gpfs_fstat_x had been introduced for querying additional inode
attributes for fileids. With the fileid code being removed, the simpler
gpfs_get_winattrs call can be used. gpfs_get_winattrs also accepts
O_PATH descriptors since GPFS 5.1.2.

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
6 months agovfs_gpfs: Remove pathref test
Christof Schmitt [Tue, 4 Feb 2025 20:10:22 +0000 (13:10 -0700)] 
vfs_gpfs: Remove pathref test

The gpfs_stat_x call O_PATH descriptors since GPFS 5.1.2.0 and will also
be replaced with a simpler API call that also accepts O_PATH
descriptors. Remove the pathref test that is no longer needed.

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
6 months agovfs_gpfs: Remove gpfs_stat_x fallback
Christof Schmitt [Tue, 4 Feb 2025 20:09:11 +0000 (13:09 -0700)] 
vfs_gpfs: Remove gpfs_stat_x fallback

Since GPFS 5.1.2 gpfs_stat_x accepts O_PATH descriptors so the fallback
case is no longer used and can be removed.

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
6 months agolibrpc/ndr: apply some const to ndr_push_union_blob()
Stefan Metzmacher [Wed, 5 Feb 2025 13:40:43 +0000 (14:40 +0100)] 
librpc/ndr: apply some const to ndr_push_union_blob()

Keep libndr at 6.0.0, this has not been released yet.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Thu Feb  6 10:45:52 UTC 2025 on atb-devel-224

6 months agovfs_gpfs: add gpfs:clamp_invalid_times
Ralph Boehme [Wed, 22 Jan 2025 11:34:31 +0000 (12:34 +0100)] 
vfs_gpfs: add gpfs:clamp_invalid_times

The timestamp validation added as part of the fix for bug 15151 causes hard
failures for certain clients that seem to use a temporary timestamp initially
when creating files, changing in a later step.

Clamp invalid timestamps to the allowed range 0..UINT32_MAX if
"gpfs:clamp_invalid_times = yes" is set.

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

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Christof Schmitt <cs@samba.org>
Autobuild-User(master): Christof Schmitt <cs@samba.org>
Autobuild-Date(master): Wed Feb  5 23:42:15 UTC 2025 on atb-devel-224

6 months agontvfs: Simplify rap_netshareenum()
Volker Lendecke [Thu, 17 Mar 2022 18:31:44 +0000 (19:31 +0100)] 
ntvfs: Simplify rap_netshareenum()

I know, unused. But the whole point of strlcpy is that we don't need
this kind of calculation, and we should not leave this as a bad
example code in our tree.

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): Wed Feb  5 01:05:08 UTC 2025 on atb-devel-224

6 months agotalloc: Add a comment explaining talloc_asprintf_addbuf()
Volker Lendecke [Fri, 24 Jan 2025 07:30:56 +0000 (08:30 +0100)] 
talloc: Add a comment explaining talloc_asprintf_addbuf()

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
6 months agosmbd: Remove an unnecessary call to SMB_VFS_STAT()
Volker Lendecke [Fri, 24 Jan 2025 12:45:31 +0000 (13:45 +0100)] 
smbd: Remove an unnecessary call to SMB_VFS_STAT()

smb_fname came out of filename_convert_dirfsp(), which already stat'ed
if the file exists. !VALID_STAT means new file.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
6 months agolib: Shrink .text a bit
Volker Lendecke [Sat, 1 Feb 2025 15:05:06 +0000 (16:05 +0100)] 
lib: Shrink .text a bit

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
6 months agovfs: Slightly simplify ad_get_meta_fsp()
Volker Lendecke [Sat, 1 Feb 2025 10:26:00 +0000 (11:26 +0100)] 
vfs: Slightly simplify ad_get_meta_fsp()

Use cp_smb_filename_nostream()

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
6 months agovfs: Add some const
Volker Lendecke [Tue, 28 Jan 2025 17:37:54 +0000 (18:37 +0100)] 
vfs: Add some const

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
6 months agovfs: Align a few integer types
Volker Lendecke [Fri, 24 Jan 2025 15:04:16 +0000 (16:04 +0100)] 
vfs: Align a few integer types

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
6 months agosmbd: Remove vfs_file_exist()
Volker Lendecke [Fri, 24 Jan 2025 11:58:22 +0000 (12:58 +0100)] 
smbd: Remove vfs_file_exist()

Both callers followed this with SMB_VFS_CREATE_FILE which can be given
FILE_NON_DIRECTORY_FILE as an option to achieve the same.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
6 months agolib: Remove a pointer from R/W .data
Volker Lendecke [Tue, 28 Jan 2025 05:04:39 +0000 (06:04 +0100)] 
lib: Remove a pointer from R/W .data

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
6 months agolib: Move a pointer from .data to stack
Volker Lendecke [Tue, 28 Jan 2025 05:09:28 +0000 (06:09 +0100)] 
lib: Move a pointer from .data to stack

Why was this declared static? ...

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
6 months agovfs: Remove a few calls to map_errno_from_nt_status()
Volker Lendecke [Tue, 28 Jan 2025 11:28:04 +0000 (12:28 +0100)] 
vfs: Remove a few calls to map_errno_from_nt_status()

That call always "feels" lossy to me, the other way around is better
defined.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
6 months agovfs: Slightly simplify catia_translate_name()
Volker Lendecke [Tue, 28 Jan 2025 11:12:33 +0000 (12:12 +0100)] 
vfs: Slightly simplify catia_translate_name()

We have returned if !NT_STATUS_OK(status) a few lines above.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
6 months agolib: Convert string_replace_allocate() to return 0/errno
Volker Lendecke [Tue, 28 Jan 2025 10:51:41 +0000 (11:51 +0100)] 
lib: Convert string_replace_allocate() to return 0/errno

This is only used in the VFS, which is still in large parts
errno-based.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
6 months agovfs: Fix some whitespace
Volker Lendecke [Tue, 28 Jan 2025 17:38:56 +0000 (18:38 +0100)] 
vfs: Fix some whitespace

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
6 months agovfs: Fix some error path memleaks
Volker Lendecke [Sat, 1 Feb 2025 09:41:40 +0000 (10:41 +0100)] 
vfs: Fix some error path memleaks

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
6 months agolibsmb: Save some bytes in .text code
Volker Lendecke [Sat, 1 Feb 2025 09:48:16 +0000 (10:48 +0100)] 
libsmb: Save some bytes in .text code

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
6 months agolib: Fix typos
Volker Lendecke [Sat, 1 Feb 2025 16:05:01 +0000 (17:05 +0100)] 
lib: Fix typos

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
6 months agolib: Move 968 bytes from R/W data to R/O text
Volker Lendecke [Mon, 3 Feb 2025 16:30:03 +0000 (17:30 +0100)] 
lib: Move 968 bytes from R/W data to R/O text

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
6 months agolib: Simplify ad_get_internal()
Volker Lendecke [Mon, 3 Feb 2025 17:33:46 +0000 (18:33 +0100)] 
lib: Simplify ad_get_internal()

Remove an unnecessary variable

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
6 months agoprovision: always use a large transaction index cache
Douglas Bagnall [Thu, 30 Jan 2025 21:31:32 +0000 (10:31 +1300)] 
provision: always use a large transaction index cache

A larger cache costs more per transaction, but makes a large number
of operations within a transaction faster. We expect to be dealing
with the latter case here, regardless of the batch_mode parameter
and the database size. 200000 is chosen because it is also used in
join and schemaupgrade, and should be sufficient in most cases.

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

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Douglas Bagnall <dbagnall@samba.org>
Autobuild-Date(master): Tue Feb  4 22:47:35 UTC 2025 on atb-devel-224

6 months agonetcmd: Increase the transaction_index_cache_size to 200k for schemaupgrade
Andréas Leroux [Thu, 2 May 2024 08:29:52 +0000 (10:29 +0200)] 
netcmd: Increase the transaction_index_cache_size to 200k for schemaupgrade

Increasing this value greatly improve the performances of schema
upgrade for large domains (>200k entries).

The value 200000 is chosen because it is already used in join.py, and
should be sufficient for known domains.

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

Signed-off-by: Andréas Leroux <aleroux@tranquil.it>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
6 months agos3:utils: Fix 'Usage:' for 'net ads enctypes'
Pavel Filipenský [Fri, 31 Jan 2025 11:17:28 +0000 (12:17 +0100)] 
s3:utils: Fix 'Usage:' for 'net ads enctypes'

Signed-off-by: Pavel Filipenský <pfilipensky@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Pavel Filipensky <pfilipensky@samba.org>
Autobuild-Date(master): Tue Feb  4 09:35:58 UTC 2025 on atb-devel-224

6 months agos3:utils: Fix 'Usage:' for 'net ads setspn'
Pavel Filipenský [Fri, 31 Jan 2025 10:14:07 +0000 (11:14 +0100)] 
s3:utils: Fix 'Usage:' for 'net ads setspn'

Signed-off-by: Pavel Filipenský <pfilipensky@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
6 months agodocs-xml:manpages: Fix doc for 'net ads setspn'
Pavel Filipenský [Fri, 31 Jan 2025 10:22:24 +0000 (11:22 +0100)] 
docs-xml:manpages: Fix doc for 'net ads setspn'

Signed-off-by: Pavel Filipenský <pfilipensky@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
6 months agodocs-xml:manpages: Fix doc for 'net ads enctypes'
Pavel Filipenský [Fri, 31 Jan 2025 09:43:34 +0000 (10:43 +0100)] 
docs-xml:manpages: Fix doc for 'net ads enctypes'

Signed-off-by: Pavel Filipenský <pfilipensky@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
6 months agodocs-xml:manpages: Add missing ')' to ADS KEYTAB
Pavel Filipenský [Fri, 31 Jan 2025 11:07:18 +0000 (12:07 +0100)] 
docs-xml:manpages: Add missing ')' to ADS KEYTAB

Signed-off-by: Pavel Filipenský <pfilipensky@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
6 months agos3,s4: Make case spelling of sAMAccountName consistent
Pavel Filipenský [Thu, 30 Jan 2025 21:25:29 +0000 (22:25 +0100)] 
s3,s4: Make case spelling of sAMAccountName consistent

Signed-off-by: Pavel Filipenský <pfilipensky@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
6 months agos3-libnet: avoid using lp_dns_hostname() in join code
Günther Deschner [Tue, 14 Jan 2025 18:16:31 +0000 (19:16 +0100)] 
s3-libnet: avoid using lp_dns_hostname() in join code

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

This codepath is also used for provisiong non-local machines into AD
during offlinejoin operations. When creating accounts for non-local
machines we certainly need to be able to use arbitrary hostname other
than lp_netbios_name() (which is used internally by lp_dns_hostname()).
This partly reverts 0e96092c1895ecb41d4064111566b4ada71fe457.

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Thu Jan 30 07:35:05 UTC 2025 on atb-devel-224

6 months agoselfest: add test for non-local offlinejoin provision
Günther Deschner [Mon, 13 Jan 2025 19:26:01 +0000 (20:26 +0100)] 
selfest: add test for non-local offlinejoin provision

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

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
6 months agos3-libads: dump ADS_MODSLIST before attempting the LDAP modify
Günther Deschner [Tue, 14 Jan 2025 00:40:05 +0000 (01:40 +0100)] 
s3-libads: dump ADS_MODSLIST before attempting the LDAP modify

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

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
6 months agos3:rpc_server: Handle an np_read_send with len==0 correctly
Stefan Metzmacher [Tue, 27 Aug 2024 12:41:43 +0000 (14:41 +0200)] 
s3:rpc_server: Handle an np_read_send with len==0 correctly

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

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Wed Jan 29 12:17:47 UTC 2025 on atb-devel-224

6 months agos3:smbd: Allow cancel of SMB2 read on ipc handles
Andreas Schneider [Fri, 23 Aug 2024 12:40:10 +0000 (14:40 +0200)] 
s3:smbd: Allow cancel of SMB2 read on ipc handles

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

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Andreas Schneider <asn@samba.org>
6 months agos3:smbd: let aio_add_req_to_fsp() return the pointer to the link
Andreas Schneider [Fri, 23 Aug 2024 12:35:07 +0000 (14:35 +0200)] 
s3:smbd: let aio_add_req_to_fsp() return the pointer to the link

This allows the caller to free the link before the request.

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

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Andreas Schneider <asn@samba.org>
6 months agos3:smbd: Use nt_status_np_pipe() in smbd_smb2_ioctl_pipe_{read,write}_done()
Stefan Metzmacher [Wed, 17 Jul 2024 16:04:56 +0000 (18:04 +0200)] 
s3:smbd: Use nt_status_np_pipe() in smbd_smb2_ioctl_pipe_{read,write}_done()

We should return NT_STATUS_PIPE_DISCONNECTED or
NT_STATUS_PIPE_BROKEN in the same way SMB2 read/write do it.

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

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
6 months agos4:torture: Implement ipc test with len=0
Andreas Schneider [Mon, 26 Aug 2024 12:34:32 +0000 (14:34 +0200)] 
s4:torture: Implement ipc test with len=0

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

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
6 months agos4:torture: Add notify test with multichannel for 'smb2 max async credits'
Andreas Schneider [Fri, 9 Aug 2024 07:12:04 +0000 (09:12 +0200)] 
s4:torture: Add notify test with multichannel for 'smb2 max async credits'

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

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
6 months agos4:torture: Add notify test with two connection for 'smb2 max async credits'
Andreas Schneider [Fri, 9 Aug 2024 06:37:44 +0000 (08:37 +0200)] 
s4:torture: Add notify test with two connection for 'smb2 max async credits'

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

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Andreas Schneider <asn@samba.org>
6 months agos4:torture: Add notify test for 'smb2 max async credits'
Andreas Schneider [Thu, 1 Aug 2024 10:45:14 +0000 (12:45 +0200)] 
s4:torture: Add notify test for 'smb2 max async credits'

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

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Andreas Schneider <asn@samba.org>
6 months agos3:torture: Add IPC test with multichannel for 'smb2 max async credits'
Andreas Schneider [Mon, 26 Aug 2024 08:53:06 +0000 (10:53 +0200)] 
s3:torture: Add IPC test with multichannel for 'smb2 max async credits'

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

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
6 months agos4:torture: Add IPC test with 2 connections for 'smb2 max async credits'
Andreas Schneider [Mon, 26 Aug 2024 08:29:23 +0000 (10:29 +0200)] 
s4:torture: Add IPC test with 2 connections for 'smb2 max async credits'

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

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
6 months agos4:torture: Add IPC test for 'smb2 max async credits'
Andreas Schneider [Sat, 27 Jul 2024 15:14:42 +0000 (17:14 +0200)] 
s4:torture: Add IPC test for 'smb2 max async credits'

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

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Andreas Schneider <asn@samba.org>
6 months agos4:libcli/smb2: add smb2_tree_channel() helper
Stefan Metzmacher [Fri, 9 Aug 2024 07:07:40 +0000 (09:07 +0200)] 
s4:libcli/smb2: add smb2_tree_channel() helper

This can be used after smb2_session_channel() in order
to have a smb2_tree structure representing the same
logic tree connect but uses a different channel/connection.

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

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
6 months agolibcli:smb: Implement smb2cli_notify_set_notify_async()
Andreas Schneider [Fri, 23 Aug 2024 09:46:33 +0000 (11:46 +0200)] 
libcli:smb: Implement smb2cli_notify_set_notify_async()

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

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Andreas Schneider <asn@samba.org>
6 months agolibcli:smb: Implement smb2cli_read_cancel()
Andreas Schneider [Wed, 28 Aug 2024 13:06:11 +0000 (15:06 +0200)] 
libcli:smb: Implement smb2cli_read_cancel()

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

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
6 months agolibcli:smb: Implement smb2cli_read_set_notify_async()
Stefan Metzmacher [Mon, 5 Aug 2024 07:16:58 +0000 (09:16 +0200)] 
libcli:smb: Implement smb2cli_read_set_notify_async()

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

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>