Univention Bugzilla – Bug 55686
Samba share access fails due to Python2/3 bytestring issue in samba4-idmap.py
Last modified: 2023-02-22 13:03:41 CET
root@system:~# smbclient //$(hostname -f)/affecteduser -U affecteduser session setup failed: NT_STATUS_INVALID_SID Cause: ldbsearch -H /var/lib/samba/private/idmap.ldb "xidNumber=b*" objectSid xidnumber shows bytestring representations of the integer Posix-IDs: xidNumber: b'2894' root@system:~# univention-app info UCS: 5.0-2 errata460 Installed: cups=2.2.1 dhcp-server=12.0 samba4=4.16 Upgradable: Comparing the backups of idmap.ldb in /var/univention-backup I see that this is not a one-off Python-3-migration issue during the Update to UCS 5.0-0 but some ongoing problem.
29b65955f3 | Fix xidNumber decoding in samba4-idmap.py 23c6e041cc | Advisory Package: univention-samba4 Version: 9.0.11-6A~5.0.0.202302201422 Branch: ucs_5.0-0 Scope: errata5.0-3
OK: Fixes broken entries on upgrade OK: Doesn't create more broken entries OK: Code review OK: YAML Verified
<https://errata.software-univention.de/#/?erratum=5.0x584>