Univention Bugzilla – Bug 54688
"map acl inherit = yes" share configuration broken since UCS 5.0
Last modified: 2022-04-27 16:11:59 CEST
Since the Python3 migration / UCS 5.0 the setting for "map acl inherit = yes" in a share definition does not work anymore. @diff --git services/univention-samba4/samba-shares.py services/univention-samba4/samba-shares.py index 3cd34b42e2..b7b0f30f99 100644 --- services/univention-samba4/samba-shares.py +++ services/univention-samba4/samba-shares.py@ -239,3 +239,3 @@ def handler(dn, new, old, command): # acl and inherit -> map acl inherit (Bug #47850) - if '1' in new.get('univentionShareSambaNtAclSupport', []) and '1' in new.get('univentionShareSambaInheritAcls', []): + if b'1' in new.get('univentionShareSambaNtAclSupport', []) and b'1' in new.get('univentionShareSambaInheritAcls', []): print('map acl inherit = yes', file=fp)
I wanted to push it as Merge Request but accidentally pushed directly to 5.0-1. Therefor here we go: The fix has been added in both univention-samba and univention-samba4 listeners. A resync of the listener module is done in postinst only if there are objects needed to be fixed. univention-samba4.yaml 0ae11a7f56de | Bug #54688: fix support for shares "map acl inherit = yes" univention-samba4 (9.0.7-1) 0ae11a7f56de | Bug #54688: fix support for shares "map acl inherit = yes" univention-samba4 (9.0.6-12) 7da130f5689f | Bug #54688: resync listener on affected systems bb26dc4f7ff3 | fixup! Bug #54688: fix support for shares "map acl inherit = yes" univention-samba.yaml 0ae11a7f56de | Bug #54688: fix support for shares "map acl inherit = yes" univention-samba (14.0.5-5) 7da130f5689f | Bug #54688: resync listener on affected systems 0ae11a7f56de | Bug #54688: fix support for shares "map acl inherit = yes"
Verified: * Code review * Advisory
<https://errata.software-univention.de/#/?erratum=5.0x295> <https://errata.software-univention.de/#/?erratum=5.0x296>