[SCM] Samba Shared Repository - branch master updated

2023-03-07 Thread Andrew Bartlett
The branch, master has been updated
   via  403598b3076 s4-dsdb:tests: Correctly handle LdbError
   via  38468aa6e8f s4-dsdb:tests: Fix AD DC performance tests
   via  d5f053711bd ldb: Make ldb_msg_remove_attr O(n)
   via  598eaa34741 tests/krb5: Remove old device info and device claims 
tests
   via  0153f6c1f4d tests/krb5: Add tests for device claims
   via  0ac800d0081 tests/krb5: Add tests for device info
   via  24ee602acb2 tests/krb5: Overhaul check_device_info()
   via  fa3d693b28f tests/krb5: Allow creating a target server account with 
or without compound ID support
   via  53400a6dfeb tests/krb5: Don't specify extra enctypes for the krbtgt
   via  77188f48824 tests/krb5: Allow adding members to a group and 
changing its type in a single operation
   via  75154702d2f tests/krb5: Add test for compressed claim
   via  5c744ff9f79 tests/krb5: Test we get correct values for integer 
syntax claims
   via  3550173c804 tests/krb5: Require domain_sid to be non-None when 
passing a RID to map_to_sid()
   via  d95b4303ea3 tests/krb5: Allow group_setup to be None in 
setup_groups()
   via  98393d7bfa0 tests/krb5: Test more descriptive security descriptor
   via  567f30c5740 tests/krb5: Document and tidy up existing claims tests
   via  23ce6f30e28 tests/krb5: Allow creating accounts supporting claims 
or compound identity separately
   via  ad19dd100f6 tests/krb5: Make arguments to get_target() keyword 
arguments
   via  644c4ae8d0f tests/krb5: Split out device info checking into new 
method
   via  60c07a49d76 tests/krb5: Fix typo
   via  662639e8ee3 tests/krb5: Move some claims tests around
   via  cbd0955bbd7 tests/krb5: Add type to expect a value is one of a set 
of possible types
   via  2c6ff2ad07d tests/krb5: Allow comparing UnorderedLists only with 
one another
   via  3c333037cd2 tests/krb5: Unconditionally check compressed claims
   via  04fd475b434 tests/krb5: Remove unused import
  from  a1780ed8d1b rpcd: With npa->need_idle_server we can have more than 
256 servers

https://git.samba.org/?p=samba.git;a=shortlog;h=master


- Log -
commit 403598b3076896287c84059a93569f0e0f3efb80
Author: Joseph Sutton 
Date:   Fri Feb 17 16:32:42 2023 +1300

s4-dsdb:tests: Correctly handle LdbError

Signed-off-by: Joseph Sutton 
Reviewed-by: Andrew Bartlett 

Autobuild-User(master): Andrew Bartlett 
Autobuild-Date(master): Wed Mar  8 05:37:08 UTC 2023 on atb-devel-224

commit 38468aa6e8fd8db3aec9c860ab5c8edf1be83e3c
Author: Joseph Sutton 
Date:   Fri Feb 17 11:46:09 2023 +1300

s4-dsdb:tests: Fix AD DC performance tests

Calling cmd._run() directly would fail due to the 'command_name'
attribute being absent, so these tests would fail to run. Fix this by
using the samba.netcmd.main.samba_tool helper function.

Check the return code as well for good measure.

Signed-off-by: Joseph Sutton 
Reviewed-by: Andrew Bartlett 

commit d5f053711bd5b78f2eff035b4b287995ae286901
Author: Joseph Sutton 
Date:   Fri Jan 27 08:06:47 2023 +1300

ldb: Make ldb_msg_remove_attr O(n)

Previously it was O(n²).

Signed-off-by: Joseph Sutton 
Reviewed-by: Andrew Bartlett 

commit 598eaa3474191d29ab2f1a356a26e479a441a198
Author: Joseph Sutton 
Date:   Fri Mar 3 11:33:15 2023 +1300

tests/krb5: Remove old device info and device claims tests

They have been made superfluous by newer declarative tests in
claims_tests.py and device_tests.py.

Signed-off-by: Joseph Sutton 
Reviewed-by: Andrew Bartlett 

commit 0153f6c1f4dfc56608e767ec4a8ad25c0f1b1867
Author: Joseph Sutton 
Date:   Fri Mar 3 12:20:38 2023 +1300

tests/krb5: Add tests for device claims

These test the interaction between claims and groups in the PAC.

Signed-off-by: Joseph Sutton 
Reviewed-by: Andrew Bartlett 

commit 0ac800d0081fb893effaa555d3117102556a7b75
Author: Joseph Sutton 
Date:   Fri Mar 3 11:48:22 2023 +1300

tests/krb5: Add tests for device info

These tests verify that the groups in the device info structure in the
PAC are exactly as expected under various scenarios.

Signed-off-by: Joseph Sutton 
Reviewed-by: Andrew Bartlett 

commit 24ee602acb2ec5aea1c52edce8740a1982fb12be
Author: Joseph Sutton 
Date:   Fri Mar 3 13:41:19 2023 +1300

tests/krb5: Overhaul check_device_info()

With expected_device_groups, tests can now specify particular group
arrangements they expect to see.

Signed-off-by: Joseph Sutton 
Reviewed-by: Andrew Bartlett 

commit fa3d693b28f3079e1f813dcbcd74007f238df56f
Author: Joseph Sutton 
Date:   Fri Mar 3 13:24:17 2023 +1300

tests/krb5: Allow creating a target server account with or without compound 
ID support

Signed-off-by: Joseph Sutton 
Reviewed-by: Andrew Bartlett 


[SCM] Samba Shared Repository - branch v4-17-test updated

2023-03-07 Thread Jule Anger
The branch, v4-17-test has been updated
   via  bfbb854d746 rpcd: With npa->need_idle_server we can have more than 
256 servers
   via  743d7600fba rpcd: Do blocking connects to local pipes
   via  32a6eb37fbd rpcd: Increase listening queue
   via  529e76a51df torture3: test rpc scalability
   via  f07883a09ea librpc: Remove unused sync rpc_transport_np_init()
   via  dbb9cb6bfad librpc: Make rpc_pipe_open_np() public and async
  from  f4556250b87 lib:util: File descriptor being closed repeatedly.

https://git.samba.org/?p=samba.git;a=shortlog;h=v4-17-test


- Log -
commit bfbb854d7462e486775d087efda63906869218ed
Author: Volker Lendecke 
Date:   Mon Feb 20 18:46:50 2023 +0100

rpcd: With npa->need_idle_server we can have more than 256 servers

Before this patch the worker-status cut the worker index such that
samba-dcerpcd could not properly update status of the surplus rpc
daemons. This could lead to those daemons to stay around forever,
samba-dcerpcd will never notice they are idle and can exit.

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

Signed-off-by: Volker Lendecke 
Reviewed-by: Jeremy Allison 

Autobuild-User(master): Jeremy Allison 
Autobuild-Date(master): Mon Mar  6 22:35:00 UTC 2023 on atb-devel-224

(cherry picked from commit a1780ed8d1b46e4760319b27a4978e7ce7a1df80)

Autobuild-User(v4-17-test): Jule Anger 
Autobuild-Date(v4-17-test): Tue Mar  7 11:16:46 UTC 2023 on sn-devel-184

commit 743d7600fba554306356a8254f0ca041308fa332
Author: Volker Lendecke 
Date:   Wed Mar 1 14:42:00 2023 +0100

rpcd: Do blocking connects to local pipes

We don't have real async callers yet, and this is the simplest way to
fix our missing light-weight deterministic async fallback mechanism.

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

Signed-off-by: Volker Lendecke 
Reviewed-by: Jeremy Allison 
(cherry picked from commit 0ab7b84ccbd383bb2f696ce258438d4af57fe6f0)

commit 32a6eb37fbdc3aa31beb27c81908d20ae9e1e3fd
Author: Volker Lendecke 
Date:   Wed Mar 1 14:40:37 2023 +0100

rpcd: Increase listening queue

Allow more waiters under load.

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

Signed-off-by: Volker Lendecke 
Reviewed-by: Jeremy Allison 
(cherry picked from commit f23eb1b3b728d7a13add8c6614d9992aad2c3653)

commit 529e76a51dfde8218362ce478e852f53553332d7
Author: Volker Lendecke 
Date:   Mon Mar 6 10:05:41 2023 +0100

torture3: test rpc scalability

With

smbtorture3 //127.0.0.1/ipc\$ rpc-scale -N 50 -o 1000

I am able to immediately trigger bug 15130.

Not running by default, this is a pure load test.

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

Signed-off-by: Volker Lendecke 
Reviewed-by: Jeremy Allison 
(back-ported from commit 86e95b57d6848482dc73c624c2e8d2bdb79c1d21)

commit f07883a09eae34e78dd5d765a56c6d55ec97fb27
Author: Volker Lendecke 
Date:   Mon Mar 6 13:57:20 2023 +0100

librpc: Remove unused sync rpc_transport_np_init()

Signed-off-by: Volker Lendecke 
Reviewed-by: Jeremy Allison 
(cherry picked from commit f3ce9970002459a069344ca5519fb91feacb4a6e)

commit dbb9cb6bfad7308d5cebb589e72a791d20a12284
Author: Volker Lendecke 
Date:   Mon Mar 6 13:55:43 2023 +0100

librpc: Make rpc_pipe_open_np() public and async

Signed-off-by: Volker Lendecke 
Reviewed-by: Jeremy Allison 
(cherry picked from commit 07ebf97a74fb5c0d0504e76c50f3aca8257dab1f)

---

Summary of changes:
 source3/librpc/idl/rpc_host.idl   |   2 +-
 source3/rpc_client/cli_pipe.c | 132 +++
 source3/rpc_client/cli_pipe.h |  13 ++
 source3/rpc_client/local_np.c |  14 +-
 source3/rpc_client/rpc_transport.h|   3 -
 source3/rpc_client/rpc_transport_np.c |  31 
 source3/rpc_server/rpc_host.c |   2 +-
 source3/rpc_server/rpc_worker.c   |   2 +-
 source3/torture/proto.h   |   1 +
 source3/torture/test_rpc_scale.c  | 301 ++
 source3/torture/torture.c |   4 +
 source3/torture/wscript_build |   1 +
 12 files changed, 436 insertions(+), 70 deletions(-)
 create mode 100644 source3/torture/test_rpc_scale.c


Changeset truncated at 500 lines:

diff --git a/source3/librpc/idl/rpc_host.idl b/source3/librpc/idl/rpc_host.idl
index 0fc3f9514aa..c8abb6c4379 100644
--- a/source3/librpc/idl/rpc_host.idl
+++ b/source3/librpc/idl/rpc_host.idl
@@ -66,7 +66,7 @@ interface rpc_host_msg
/**
 * @brief Which of the processes of a helper prog is this from
 */
-   uint8 worker_index;
+   uint32 worker_index;
 
/**