[SCM] Samba Shared Repository - branch master updated

2023-12-13 Thread Andrew Bartlett
The branch, master has been updated
   via  ff52e342887 python: Remove references to removed parameters
   via  f9d4a40 python: Remove unused parameter ‘backup’
   via  891e1da968a python: Remove unused parameter ‘serverrole’
   via  7750edc14e2 python: Remove unused parameter ‘am_rodc’
   via  10d79ef21f7 python: Remove unused parameter ‘am_rodc’
   via  e67196e13cb python: Remove unused parameters ‘backend_store’ and 
‘backend_store_size’
   via  beefbb277a9 python: Remove unused parameters ‘backend_store’ and 
‘backend_store_size’
   via  7e7f7d63ed6 python: Remove unused parameter ‘fill’
   via  9fbd3435512 python: Remove unused parameter ‘keytab_path’
   via  9cc823454ac python: Remove unused parameter ‘erase’
   via  efaa27c498e python: Remove unused parameter ‘backend_store_size’
   via  b6dc21169c7 python: Remove unused parameter ‘root_gid’
   via  6fdf710ba7e python: Remove unused parameters ‘maxuid’ and ‘maxgid’
   via  8c288c6beb6 python: Remove unused parameters ‘maxuid’ and ‘maxgid’
   via  8331142081a python: Remove unused parameter ‘name’
   via  704ad18bf5b python: Remove unused parameter ‘netlogon’
   via  eb727331a37 python: Remove unused parameter ‘samdb’
   via  d9a665a0e44 python: Remove unused parameter ‘lp’
   via  24e7220 python: Remove unused parameter ‘message’
   via  5132771fb71 python: Remove unused parameter ‘targetdir’
   via  8439dcb4842 python: Remove unused parameter ‘backend_store’
   via  e37dfc29671 python: Remove unused parameter ‘lp’
   via  58814bfd392 python: Remove unused parameter ‘lp’
   via  c692653459b python: Remove unused parameter ‘targetdir’
   via  49801372c61 python: Remove unused parameter ‘targetdir’
   via  a84c5212655 python: Remove unused parameter ‘backend_store’
   via  95e0df789c3 python: Remove unused parameter ‘lp’
   via  7064e39fae8 python: Remove unused parameter ‘logger’
   via  a341aca14cb python: Make use of ‘prefix’ parameter
   via  d8b5cb103b1 python: Remove unused parameter ‘lp’
   via  7e65a368d66 python: Remove unused parameter ‘targetdir’
   via  f9b22c6d5e0 python: Make use of ‘serverdn’ parameter
   via  dddaed61ea6 python: Remove unused variable ‘machinesid’
   via  dd9dfb0e664 python: Remove unfinished join method
   via  25f8e507931 libcli/security: allow SDDL conditional ACE round-trip 
for -00 and -0x0
   via  66f341e5c39 libcli/security: allow round-trip for conditional ACE 
hex integers
   via  d33ed631479 libcli/security: allow round-trip for conditional ACE 
octal integers
   via  bbe217604bd libcli/security: tests for conditional ACE integer base 
persistence
   via  b247a11e62e libcli/security: fix tests for SDDL conditional ACE 
round-trip
   via  db6b06578b6 libcli/security: clarify tests for SDDL round trips
   via  a016ce70684 libcli/security: don't allow conditional ACE SIDs to 
have trailing bytes
   via  e004a5a444f libcli/security: SDDL decode stops earlier with too 
many ACEs
  from  3a01ef710d4 tests: Add a test for the idmap_nss : use_upn setting

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


- Log -
commit ff52e342887a9a6054580fec238880646302ecb8
Author: Joseph Sutton 
Date:   Fri Dec 1 15:01:16 2023 +1300

python: Remove references to removed parameters

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

Autobuild-User(master): Andrew Bartlett 
Autobuild-Date(master): Thu Dec 14 04:32:31 UTC 2023 on atb-devel-224

commit f9d4a408a4e5a5f193b5f314af1fa1d3a579
Author: Joseph Sutton 
Date:   Thu Nov 23 21:04:07 2023 +1300

python: Remove unused parameter ‘backup’

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

commit 891e1da968a41c53ae3e2f24c9837930ce4c1007
Author: Joseph Sutton 
Date:   Thu Nov 23 21:03:57 2023 +1300

python: Remove unused parameter ‘serverrole’

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

commit 7750edc14e2a4d38873a5157681b881ae1d8785b
Author: Joseph Sutton 
Date:   Thu Nov 23 21:03:19 2023 +1300

python: Remove unused parameter ‘am_rodc’

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

commit 10d79ef21f708df54098a8fa8051deacc5cd97ae
Author: Joseph Sutton 
Date:   Thu Nov 23 21:02:13 2023 +1300

python: Remove unused parameter ‘am_rodc’

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

commit e67196e13cb4d470650291f17df05ea1ad877045
Author: Joseph Sutton 
Date:   Thu Nov 23 21:01:19 2023 +1300

python: Remove unused parameters ‘backend_store’ and ‘backend_store_size’

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

commit beefbb277a95b876e1fa323f9401da531d73ab9b
Author: Joseph Sutton 
Date:   Thu Nov 23 20:59:59 2023 +1300

python: Remove unused 

[SCM] Samba Shared Repository - branch master updated

2023-12-13 Thread Samuel Cabrero
The branch, master has been updated
   via  3a01ef710d4 tests: Add a test for the idmap_nss : use_upn setting
   via  086a90d52b0 idmap_nss: Install a messaging filter to reload the 
configuration
   via  a7a4d8e5333 idmap_nss: Add a parameter to use UPNs instead of plain 
names
   via  c8e4777a921 idmap_nss: Increase debug on failures
   via  de2f59c61a0 docs: Document idmap_nss "range" option
   via  8e1f2ee5f7c s3:winbind: Register a messaging filter foreach domain 
child
   via  c35937054cd s3:winbind: talloc the static locator child
   via  e3d0574d796 s3:winbind: talloc the static idmap child
  from  f642aff5544 buildtools: Remove ‘keep_underscore’ parameter

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


- Log -
commit 3a01ef710d4f0c11013214a4f8637ebdac8d9f5e
Author: Samuel Cabrero 
Date:   Tue Dec 12 21:17:50 2023 +0100

tests: Add a test for the idmap_nss : use_upn setting

Signed-off-by: Samuel Cabrero 
Reviewed-by: Alexander Bokovoy 

Autobuild-User(master): Samuel Cabrero 
Autobuild-Date(master): Wed Dec 13 16:05:19 UTC 2023 on atb-devel-224

commit 086a90d52b0c4bd388bf5707159ae1a727f8e400
Author: Samuel Cabrero 
Date:   Tue Dec 12 16:02:33 2023 +0100

idmap_nss: Install a messaging filter to reload the configuration

Signed-off-by: Samuel Cabrero 
Reviewed-by: Alexander Bokovoy 

commit a7a4d8e53332f8cae68462afab7dec86c991d96f
Author: Samuel Cabrero 
Date:   Mon Nov 27 08:05:29 2023 +0100

idmap_nss: Add a parameter to use UPNs instead of plain names

idmap config  : backend = nss
idmap config  : use_upn = yes|no

When translating a Unix ID to a SID the module calls get[pwu|grg]id() but 
the
name returned by some NSS modules might be a UPN instead of a plain name. If
the new parameter is enabled the returned name will be parsed and correctly
handled.

On the other hand, when translating a SID to a Unix ID the module first
resolves the SID to a domain + name, and then calls get[pw|gr]name() with 
the
plain name, or the UPN if the new parameter is enabled.

Signed-off-by: Samuel Cabrero 
Reviewed-by: Alexander Bokovoy 

commit c8e4777a921132082ee6421b2b456c82028fed46
Author: Samuel Cabrero 
Date:   Wed Nov 29 12:55:13 2023 +0100

idmap_nss: Increase debug on failures

Signed-off-by: Samuel Cabrero 
Reviewed-by: Alexander Bokovoy 

commit de2f59c61a0549c54546704c07a1f41410fc50d7
Author: Samuel Cabrero 
Date:   Mon Nov 27 10:20:05 2023 +0100

docs: Document idmap_nss "range" option

Signed-off-by: Samuel Cabrero 
Reviewed-by: Alexander Bokovoy 

commit 8e1f2ee5f7c5b3ee4edfa7beca289889a4e99cca
Author: Samuel Cabrero 
Date:   Tue Dec 12 15:55:20 2023 +0100

s3:winbind: Register a messaging filter foreach domain child

Instead of registering the "classic" callback for MSG_SMB_CONF_UPDATED,
install a message filter to allow other parts of the code to also
listen for this message because classic callbacks are delivered only
once (see commit a2436b67e5dd47d955a3bea2b83e0693b627ab96).

Signed-off-by: Samuel Cabrero 
Reviewed-by: Alexander Bokovoy 

commit c35937054cd69580bbf5e3252fd9a1e8958f2f7b
Author: Samuel Cabrero 
Date:   Tue Dec 12 15:49:07 2023 +0100

s3:winbind: talloc the static locator child

Next commits will use talloc_get_type_abort() to get the reference.

Signed-off-by: Samuel Cabrero 
Reviewed-by: Alexander Bokovoy 

commit e3d0574d7969b00723a6b3041a796dd4f29726e8
Author: Samuel Cabrero 
Date:   Tue Dec 12 15:44:21 2023 +0100

s3:winbind: talloc the static idmap child

Next commits will use talloc_get_type_abort() to get the reference.

Signed-off-by: Samuel Cabrero 
Reviewed-by: Alexander Bokovoy 

---

Summary of changes:
 docs-xml/manpages/idmap_nss.8.xml|  38 +
 nsswitch/tests/test_idmap_nss_use_upn.sh |  79 ++
 source3/selftest/tests.py|   4 +-
 source3/winbindd/idmap_nss.c | 249 +--
 source3/winbindd/winbindd.c  |  13 +-
 source3/winbindd/winbindd_dual.c |  34 +++--
 source3/winbindd/winbindd_idmap.c|  29 ++--
 source3/winbindd/winbindd_locator.c  |  21 ++-
 source3/winbindd/winbindd_proto.h|   4 +-
 9 files changed, 425 insertions(+), 46 deletions(-)
 create mode 100755 nsswitch/tests/test_idmap_nss_use_upn.sh


Changeset truncated at 500 lines:

diff --git a/docs-xml/manpages/idmap_nss.8.xml 
b/docs-xml/manpages/idmap_nss.8.xml
index fc03445df2c..a9c6eceedbc 100644
--- a/docs-xml/manpages/idmap_nss.8.xml
+++ b/docs-xml/manpages/idmap_nss.8.xml
@@ -27,6 +27,44 @@

 
 
+
+   IDMAP OPTIONS
+
+   
+   
+   range = low - high
+